Skip to content

Commit f5ed428

Browse files
authored
update to chuck 1.5.2.5 (#24)
* update to chuck 1.5.2.5 * improve getter methods
1 parent 2224d85 commit f5ed428

File tree

8 files changed

+356
-81
lines changed

8 files changed

+356
-81
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.13.0 FATAL_ERROR)
22

3-
SET(VERSION 0.3.4)
3+
SET(VERSION 0.3.5)
44
project(ChucKDesigner VERSION ${VERSION})
55
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT ChucKDesignerCHOP)
66

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ Install <a href="https://www.python.org/downloads/release/python-3117/">Python 3
4444
Install CMake and confirm that it's installed by running <code>cmake --version</code> in a command prompt.
4545
<br>
4646
Then in this repository,
47-
<br>
4847
<code>
4948
cmake . -DCMAKE_BUILD_TYPE=Release -Bbuild -DPYTHONVER="3.11"
5049
</code>
5150
<br>
52-
Finally, open <code>build/ChucKDesignerCHOP.sln</code> and compile.
51+
Then, <code>cmake --build build --config Release</code> to compile.
5352
</details>
5453

5554
### MacOS
@@ -70,7 +69,17 @@ If you'd like to build the ChucKDesigner plugins yourself, these are the instruc
7069

7170
### Python interface to ChucK Audio CHOP
7271

73-
The ChucK Audio CHOP's functions:
72+
The ChucK Audio CHOP's getter methods:
73+
74+
* `.get_float(name: str) -> float`
75+
* `.get_int(name: str) -> int`
76+
* `.get_string(name: str) -> str`
77+
* `.get_float_array(name: str) -> List[float]`
78+
* `.get_int_array(name: str) -> List[int]`
79+
80+
Note that these getters return results with a one-frame delay. They will return `None` the first time they're called. If `None` is returned on later calls, it means that the requested global variable wasn't found.
81+
82+
The ChucK Audio CHOP's setter methods:
7483

7584
* `.set_float(name: str, val: float)`
7685
* `.set_int(name: str, val: int)`
@@ -84,6 +93,8 @@ The ChucK Audio CHOP's functions:
8493
* `.broadcast_event(name: str)`
8594
* `.set_log_level(level: int)` **0 is None and 10 is "Crazy"**
8695

96+
### Example
97+
8798
Suppose the ChucK Audio CHOP has compiled this code:
8899

89100
```chuck

0 commit comments

Comments
 (0)