Debian Codegraph @

VERSIONS

raw
1 ------------------
2 ChucK VERSIONS log
3 ------------------
4
5 1.5.5.8 (April 2026)
6 =======
7 => This release contains major update to ChuGL as well as a number
8 of minor language enhancements. There is one potentially "breaking"
9 change: `!` is no longer overloadable; to "make up" for this, `~` is
10 now overloadable as a unary prefix operator (see below); also
11 Nick and Ge unearthed and fixed a boolean logic issue (!!!) with
12 the logical AND and OR operators
13 =============
14 ChuGL v.0.3.0
15 =============
16 - (added) `TextureLoadDesc.srgb` for loading image data into srgb textures
17 - (added) YCrCb video decoding mode to `Video`
18 - (updated) cmake to build on linux. (thanks Lejun)
19 - (added) new operator overloads `GGen[] --> GGen` and `GGen[] --< GGen`
20 for grucking / ungrucking arrays of GGens all at once (thanks Brendan)
21 - (added) `Color.srgb(vec3)` and `Color.linear(vec3)` for converting
22 between linear and srgb color spaces
23 - (added) `PhongMaterial.uvOffset()` and `PhongMaterial.uvScale()` for
24 repeating/scrolling textures
25 - (added) `Webcam` now has linux support!
26 - (added) `int GWindow.minimized()` to detect if the window is currently
27 minimized (thanks to Nick for the misunderstanding)
28 - (added) examples
29 - `deep/video-ycrcb.ck`: demonstrating the YCrCb decoding mode on
30 `Video` UGen
31 - `deep/skybox-shader.ck`: procedural sky rendering via custom skybox
32 shader
33 (bug fixes)
34 - (fixed) bug of FlatMaterial.emissive not being properly set
35 - (fixed) crash caused by using a Material with no Shader
36 - (fixed) bug where main camera (`GG.camera()`) was being incorrectly
37 replaced upon instantiating a new `GScene`
38 - (fixed) segfault caused by setting a null texture to
39 `Material.texture(int, Texture)`
40 - (fixed) `GGen.detach()` and `GGen.detachChildren()` now correctly set the
41 `.parent()` pointers of all detached children to null
42 - (fixed) `GVideo.rate()` now properly returns a float
43 - (fixed) segfault caused by GText on Linux
44 - (fixed) rare race condition on startup caused by the graphics thread
45 broadcasting WindowResizeEvent
46 - (fixed) segfault caused by walking scenegraph and calling
47 `update(float dt)` during GG.autoUpdate()
48 (general improvements)
49 - (added) warning when setting RenderPass.clear(false) on a GScene that has
50 a skybox
51 - (updated) setting `FlatMaterial.color()` and `PhongMaterial.color()` no
52 longer override the alpha value to be 1
53 - (updated) improved performance of default skybox material shader
54 - (updated) Material uniform updates are now batch-written to the GPU,
55 improving renderer performance
56 =============
57 ChucK 1.5.5.8
58 =============
59 (modified) the `!` unary prefix operator is no longer overloadable by the
60 programmer; the reason is to support the ability to quickly test for null
61 references in if/while/until/for and other logic conditionals:
62 ----
63 e.g., `if( obj != null )` can now also be written as `if(obj)`
64 and `if( obj == null ) can now also be written as `if(!obj)`
65 ----
66 (added) abiility to overload `~` as a unary operator:
67 ----
68 // define unary operator overload for '~'
69 fun int @operator ~( Foo foo ) { return !foo.num; }
70 ----
71 NOTE: it is recommended that if you are overloading `!` in your code,
72 please consider using `~` instead.
73 (note) the examples in examples/oper pertaining to operator overloading
74 have been updated to use `~` instead of `!`
75 (updated) can now directly test for null for Object references in
76 if/while/for/until
77 ----
78 Foo foo;
79 if( foo ) { ... }
80 // same effect as
81 if( foo != null ) { ... }
82 ---
83 if( !foo ) { ... }
84 // same effect as
85 if( foo == null ) { ... }
86 (fixed) logical AND and OR now always evaluates to 0 or 1 (previously,
87 astonishingly, depending on the lhs and rhs, it could evaluate to
88 the actual value of rhs (which in practice is "correct", but also
89 potentially violates the very definition of logical AND and OR in
90 ChucK...) (nick,ge)
91 (added) @example statement for associating one or more example ChucK files
92 with class definitions; this will enable CKDoc to generate documention
93 with links to examples (e.g., https://chuck.stanford.edu/smuck/api/)
94 (added) spherical harmonic calculator designed for ChucK's math library
95 (@everettcarpenter)
96 `Math.sh( int order, float azimuth, float zenith )`
97 Returns an array of size (N+1)^2, containing ACN ordered spherical
98 harmonics.
99 (updated) duplicate-name chugins (regardless of path) are no longer
100 loaded; (previously such chugins are loaded and duplicate API queries
101 are ignored). This fixes potential issues if the duplicate chugin
102 persist state (e.g., registering shred watchers from ChuGL.chug)
103 (added) examples/basic/noise-machine.ck (a toddler noise machine)
104
105
106 1.5.5.7 (January 2026)
107 =======
108 => This release contains minor but important updates to arrays,
109 vec2/3/4, ChuGL, and options for replacing chugin/@import path
110 (in prepration for the soon-to-come ability to create standalone
111 executable application containers for chuck programs for
112 software distribution)
113 ============
114 ChuGL v0.2.9
115 ============
116 (fixed) transparency depth sorting when using an orthographic camera;
117 the original math was so scuffed (thanks Ben)
118 (fixed) crash caused by changing material of GGee primitives, see
119 https://github.com/ccrma/chugl/issues/8 (thanks Nathan)
120 (fixed) calling Material.storageBuffer(...) with an empty chuck array no
121 longer crashes
122 (fixed) GWindow.sizeLimits(...) to allow non-integer aspect ratios
123 e.g. 1.6:1
124 (added) example:
125 deep/meshlines.ck: 3D line rendering that supports per-vertex line
126 width, dashed lines, and more
127 =============
128 ChucK 1.5.5.7
129 =============
130 (updated) semantics and behavior for all array types: typical usage should
131 proceed always with regard to the *size* of the array; regions outside of
132 current size are consider out of bound, even if within array capacity
133 - .capacity() will no longer modify either the size or the within-size
134 contents of the array, but rather serve to *reserve* a mininum number
135 of elements
136 - indexing an array beyond size (even if within capacity) will now result
137 in an ArrayOutOfBounds exception
138 (added) negation unary operator for vec2/3/4 type (literals and variables)
139 (thanks AndrewAday)
140 (added) command-line options for specifying chugin search paths; these will
141 REPLACE the respective search paths; can specific empty <PATH> or multiple
142 paths using delimiters (':' on macOS and Linux and ';' on Windows):
143 --chugin-path-system:<PATH>
144 (chugins in system path are auto-loaded when chuck starts; native chuck
145 libraries are not auto-loaded, but will be in the @import search path)
146 --chugin-path-packages:<PATH>
147 (chugins and native chuck libraries in packages path are not auto-loaded,
148 but will be in the @import search path, and have a special directory
149 search semantics)
150 --chugin-path-user:<PATH>
151 (chugins and native chuck libraries in users path are not auto-loaded,
152 but will be in the @import search path)
153 (added) command-line option to add to the default system search path;
154 --chugin-path-auto-load:<PATH>
155 this can used to specify additional locations containing chugins to be
156 auto-loaded; NOTE unlike the above options, this will NOT replace the
157 default system path; (use with care)
158
159
160 1.5.5.6 (November 2025)
161 =======
162 => This release offers new features in ChucK and ChuGL along with many
163 quality-of-life improvements; Happy ChucKing!
164 ============
165 ChuGL v0.2.8
166 ============
167 (added) game-dev friendly gamepad support!
168 - (see https://chuck.stanford.edu/chugl/examples/basic/gamepad.ck)
169 (added) Material blend modes! Additive, multiplicative, subtractive, custom, etc.
170 - (see https://chuck.stanford.edu/chugl/examples/basic/blend.ck)
171 (added) GCamera `.aspect()` and `.autoUpdateAspect()`
172 (added) `TextureLoadDesc.read` to read the texture data into a chuck array on load
173 (added) `UI_DrawList` methods that ended in `...Ex` were renamed to take advantage
174 of method overloading, e.g. `.addLineEx(...)` renamed to `.addLine()`
175 (added) general improvements to `UI_DrawList` and `UI_DrawFlags` docs
176 (added) `GWindow.snooze()` which puts the graphics window in a low-power mode that
177 only refreshes upon receiving user input. Useful for editing tools / static apps /
178 art installations
179 (added) new Examples
180 - basic/gamepad.ck
181 https://chuck.stanford.edu/chugl/examples/basic/gamepad.ck
182 - basic/blend.ck
183 https://chuck.stanford.edu/chugl/examples/basic/blend.ck
184 - deep/lines3d.ck
185 https://chuck.stanford.edu/chugl/examples/deep/links3d.ck
186 - deep/custom-material.ck
187 https://chuck.stanford.edu/chugl/examples/deep/custom-material.ck
188 - rendergraph/shadertoy.ck
189 https://chuck.stanford.edu/chugl/examples/rendergraph/shadertoy.ck
190 bug fixes
191 (fixed) camera raycast methods (e.g. `NDCToWorldPos`) fixed when using a
192 render-target that is *not* the same resolution as the GWindow
193 (basically we assumed camera aspect was always same as GWindow
194 aspect when in reality it is determined by color target its rendering too)
195 (fixed) Texture.load() bug where some textures were incorrectly loaded with negative dimensions.
196 (fixed) `GWindow.sizeLimits()` not correctly updating window size (thanks Ben)
197 =============
198 ChucK 1.5.5.6
199 =============
200 (added) LiSa now has a .read( string filename ) function as well as an overloaded constructor
201 that can directly read into an audio file into LiSa (without needing a separate SndBuf);
202 this now only shortens the code, but offers 100X performance increase during file loading
203 LiSa( string path )
204 construct a LiSa with the 'path' to a sound file to read.
205 string .read( string path )
206 read audio file at 'path' into LiSa
207 (added) similar overloaded contructors for multichannel LiSa
208 LiSa2( string path )
209 LiSa4( string path )
210 LiSa6( string path )
211 LiSa8( string path )
212 LiSa10( string path )
213 LiSa16( string path )
214 (updated) examples using the new LiSa file loading
215 examples/special/LiSa-load.ck
216 examples/special/LiSa-track4.ck
217 examples/special/LiSa-track5.ck
218 (added) examples/special/LiSa-load-classic.ck (to commemorate the old ways that we have all
219 been using since 2007)
220 (added) `super` keyword for calling superclass functions (that have potentially been overridden)
221 thanks to @NiccoloAbate for the implmentation; additional code by @nshaheed and @gewang
222 e.g., super.foo();
223 (added) `super` keyword usage examples
224 examples/class/super-1-simple.ck
225 examples/class/super-2-skiplevel.ck
226 examples/class/super-3-single.ck
227 examples/class/super-4-multi.ck
228 (added) new Paulstretch extreme time-stretching
229 see example/analysis/paulstretch.ck
230 (added) `GainDB` unit generator (nshaheed)
231 the same as the Gain UGen, but the constructor sets the gain in deciBels rather
232 than linear scaling.
233 GainDB( float dbVal )
234 the constructor
235 float .db( float val )
236 set gain (in dB)
237 float .db()
238 get gain (in dB)
239 (added) `Gain` has gained the above .db methods as well
240 (added) examples/basic/gain.ck
241 (added) SndBuf2( string path ) overloaded constructor
242 (added) StringTokenizer custom delimiters
243 StringTokenizer( string line )
244 construct a StringTokenizer with a string to tokenize;
245 this will use the default whitespace delimiters.
246 StringTokenizer( string line, string delimiters )
247 construct a StringTokenizer with a string to tokenize, as well as custom delimiters; if the latter is empty string, default
248 whitespace characters will be used.
249 string delims( string delimiters )
250 sets the delimination characters as a string. If the argument
251 is an empty string, default whitespace characters " \f\n\r\t\v"
252 will be used. Also, calling this method resets the state for
253 the token retrieval loop (e.g., .more() and .next())"
254 string delims()
255 returns the string delimination characters as a string.
256 (updated) examples/string/token.ck
257 shows additional string tokenizer functionality
258 (added) string methods to replace a character using a string; previously
259 characters can only be replaced using an integer with the corresponding
260 ASCII code.
261 string charAt2( int index, string theCar )
262 set the character (as a string) at the specified index;
263 if `theChar` is an empty string, the character in question is
264 erased from the string; if `theChar` is longer than 1 character,
265 only its first character will be used.
266 string charAt2()
267 get the character at the specified index, and return it as a string.
268 (updated) examples/string/strops2.ck
269 shows the charAt2() and charAt2( int, string ) methods in action
270 (added) Math.equals( float lhs, float rhs, float epsilon)
271 an overloaded version of Math.equals( float, float) with custom epsilon
272 (added) overloaded consstructors ctor(freq) and ctor(freq, Q) for following filters:
273 LPF, HPF, BPF, BRF, RLPF, RHPF, ResonZ, in the form of
274 CTOR( float freq ) CTOR( float freq, float Q )
275 (added) overloaded constructors for the following STK effects:
276 JCRev ( float mix )
277 NRev ( float mix )
278 PRCRev ( float mix )
279 Chorus ( float modFreq )
280 Chorus ( float modFreq, float modDepth)
281 Chorus ( float modFreq, float modDepth, float mix )
282 Modulate ( float vibratoRate )
283 Modulate ( float vibratoRate, float vibratoGain)
284 Modulate ( float vibratoRate, float vibratoGain, float randomGain )
285 PitShift ( float shift )
286 PitShift ( float shift, float mix )
287 (added) examples/deep/cage.ck
288 two implementation of 4'33", accompanied by philosophical pondering...
289 (added) examples/deep/room.ck
290 a ChucK implementation of Alvin Lucier's "I am sitting in a room"
291 (added) examples/deep/young.ck
292 an interactive implementation of La Monte Young's Composition 1960 #7
293 (fixed) overloaded contructors memory leaks for Delay, DelayA, DelayL,
294 Echo, ADSR
295 (fixed) inaccuracies in setting delay values in certain Delay-based
296 contructors
297
298
299 1.5.5.5 (September 2025)
300 =======
301 --> "ChucK to School 2025" ChuGL v0.2.7 release!
302 ============
303 ChuGL v0.2.7
304 ============
305 (added) `GModel` for loading 3D asset models (currently supports OBJ)
306 (added) `GPolyhedron` and `PolyhedronGeometry` for builtin platonic solids
307 (added) `GG.bloom()` and `GG.bloomPass()` to streamline adding bloom to the default scene
308 (added) `GWindow.files()` to detect draggin+dropping files onto the screen (see basic/gwindow.ck example!)
309 (added) `Material.wireframe(int)` to easily toggle whether a mesh is rendered as a wireframe
310 (added) `Texture.save(string)` to save a GPU texture to a .png
311 (added) `Geometry.indexCount()` to control the number of indices drawn in an indexed draw
312 (added) `GWindow.droppedFiles()` to handle drag+dropping files onto the window
313 (added) new `GText` features
314 - `GText.characters(int)` to control the number of characters rendered on a GText
315 - `GText.width(int)` to set text wrap width
316 - `GText.align(int)` to set left/center/right alignment
317 - `GText.size(int)` to scale text size while respecting wrap and alignment
318 (added) `Material.wireframe(int)` to render meshes as wireframes
319 (added) "the Kunwoo Kim Collection" -- NEW interactive visualizers for teaching
320 - education/additive-synthesis.ck
321 - education/basic-filters.ck
322 - education/granular-synthesis.ck
323 - education/karplus-strong.ck
324 - education/panning.ck
325 - education/spectrum-interp.ck
326 - education/thx-visual.ck
327 - education/vocoder.ck
328 - education/fm-synthesis.ck
329 (updated) examples:
330 - basic/gmodel.ck (introducing GModel, an asset loading GGen)
331 - basic/gtext.ck (added new GText features)
332 - basic/gwindow.ck (added new GWindow features)
333 - basic/ggen-primitives.ck (see new GPolyhedron)
334 - basic/geo-and-mat.ck (see new PolyhedronGeometry)
335 (updated) all ChuGL examples have been updated, streamlined, and commented
336 - https://chuck.stanford.edu/chugl/examples/
337 (added) external data files for specific examples:
338 - https://chuck.stanford.edu/chugl/examples/data/
339 (fixed) major bugs addressed:
340 - incorrect transparency sorting on scenes with a large number of materials
341 - scene background color not affecting clearcolor, causing semi-transparent objects (e.g. GText) to render incorrectly
342
343
344
345 1.5.5.2 (July 2025)
346 =======
347 --> new ChuGL v0.2.6 (see ChuGL release notes below)
348 ~~~~~
349 ChucK 1.5.5.2
350 =============
351 (fixed) windows MIDI support (which was previously broken in 1.5.5.1)
352 (fixed) examples/analysis/xsynth.ck (thanks Celeste Betancur & Andrew Zhu Aday)
353 * now performs a proper multi-band cross-synthesis using the magnitude
354 in each band of signl X to modulate the corresponding frequency bin
355 in signal Y to produce output Z
356 (added) examples/analysis/xsynth.ck-stereo.ck same as above + stereo delay
357 (added) examples/machine/platform.ck -- get underlying OS name + system time
358 (added) Machine methods
359 string Machine.os()
360 get the underlying operating system name; possible values include
361 "mac", "linux", "windows", "web", "ios", "android", "unknown"
362 float Machine.timeOfDay()
363 returns the time in seconds since Epoch 1970-01-01 00:00:00 +0000 (UTC).
364 The returned time has microsecond resolution
365 vec2 Machine.timeOfDay2()
366 identical to Machine.timeOfDay(), only the return value is a vec2
367 where x is time in seconds, and y is fractional time in microseconds.
368 y is guaranteed to be between 0 and 1,000,000. x + y yields the total
369 time. Useful for situations needing less than 64-bit precision e.g.,
370 floats in OSC are 32-bit and one must send the x and y values
371 separately -- otherwise a significant amount of timing resolution
372 would be lost
373 ============
374 ChuGL v0.2.6
375 ============
376 (added) Transparency!! (alpha-blended and sorted back to front)
377 - See examples/basic/transparency.ck
378 (added) Shadow Mapping (a basic first version)
379 - Implemented shadow mapping for GDirLight and GSpotLight
380 (GPointLight currently not supported)
381 - See examples/deep/shadows.ck
382 (reworked) Render graph API
383 - `RenderPass` is now the base class of `ScenePass` (which renderas a GScene
384 to a target texture, formerly this was called `RenderPass`) and
385 `ScreenPass` (which renders a full-screen quad, useful for post processing
386 effects)
387 - Added new `RenderPass` methods `.clear()`, `.scissor()`,
388 `.scissorNormalized()`, `.viewport()` and `.viewportNormalized()`
389 - Added `ScenePass.msaa(int)` which can be used to toggle MSAA antialiasing
390 - Add resolution, time, delta_time, frame_count, mouse state, and chuck VM
391 sample rate info to shader #FRAME_UNIFORMS. Simplifies writing generative
392 shaders in shadertoy-style.
393 (added) UI improvements:
394 - Add `UI.knob(...)` widgets
395 - Add `UI.image(...)` and `UI.imageButton(...)` methods, which allow adding
396 ChuGL Textures to UI.
397 (update) Textures
398 - Changed `TextureDesc.mips()` semantics. Set to `true` to generate a full
399 mip chain, set to `false` to not create any mips beyond level 0.
400 - Add `TextureDesc.resizable`, `TextureDesc.widthRatio` and
401 `TextureDesc.heightRatio` to create resizable textures, i.e. textures that
402 change in dimensions relative to window resolution. (helpful to make your
403 app robust against changing screen sizes)
404 - Add `Texture.write(int ptr)` which copies data from a pointer from a
405 separate ChuGin. Use with caution!
406 - change default surface texture to be non-srgb, add `OutputPass.gamma()` to
407 control whether or not to apply gamma correction. (this simplifies getting
408 accurate colors in basic 2D scenes without complex lighting.
409 (updated) various bug fixes
410 - fix `GGen.lookAt(vec3 pos)` bug when up vector and forward vectors were
411 collinear.
412 - added `GGen.lookAt(vec3 pos, vec3 up)` which takes a custom up vector.
413 - fix `GText.defaultFont()` not setting custom font path correctly
414 - fix segfault caused by sending large amount of data to `UI.plotLines()`
415 - setting `TextureLoadDesc.gen_mips` to false no longer erroneously
416 generates a mip chain
417 - fix `UI.beginChild(...)` not properly returning a value
418 - Add normal matrix to #DRAW_UNIFORMS shader include to enable correct
419 calculations of normal vectors for Meshes with non-uniform scale
420 (added) GText: Add antialias method `GText.antialias()`
421 (added) New Examples
422 - basic/transparency.ck
423 how to use transparent materials
424 - rendergraph/slime.ck
425 slime mold simulation using compute passes!
426 - deep/pokemon_cries.ck
427 Gameboy APU emulator that synthesis all Gen I pokemon cries!
428 - deep/shadows.ck
429 shadowmapping for directional and spot lights!
430 (updated) Under the Hood
431 - Large architecture refactor to use a rendergraph + gpu resource cache
432 + sorted drawcall structs to organize and dispatch GPU commands.
433 - Caching GPU resources (namely BindGroups and TextureViews) significantly
434 improves performance and increases the maximum number of draw calls that
435 can be issued each frame
436
437
438 1.5.5.1 (May 2025)
439 =======
440 (updated) the underlying MIDI implementation been updated
441 (updated RtMidi from 1.0.4 to 6.0.0 | thanks to @cviejo)
442 this updates MIDI support, including:
443 * (macOS) MIDI timecode is now sent when using MidiOut
444 * (inux) JACK MIDI support
445 (fixed) chump (package manager, Windows)
446 * now correctly unzips packages for package installation
447 * (updated chump from 0.0.1 to 0.0.2)
448 (fixed) array.zero() now works properly with multi-dimensional arrays; previously
449 it would zero out the top-level array elements (which are actually the next
450 level of inner arrays, since multi-dimensional array in chuck are arrays of
451 arrays of arrays...)
452 (fixed) -=> for vec2 -=> v (where v is a vec2) was incorrect and would lead to
453 a crash
454 (fixed) LiSa.playPos reporting; addressed off-by-one error and made consistent
455 reporting semantics for loop/no-loop/bi-dir
456 (updated) examples/array/array_zero.ck now includes example of using .zero() with
457 multi-dimensional arrays (thanks to @terryzfeng for reporting this issue)
458 (developer) added c++ host example #5 to demonstrate adding language APIs
459 to ChucK from a c++ host:
460 src/host-examples/example-5-custom-api.cpp
461
462
463 1.5.5.0 (March 2025)
464 =======
465 (added) ChuMP: ChucK Manager of Packages! v0.0.1 (alpha)
466 INTRODUCING ChuMP, the official ChucK package manager! ChuMP currently exists
467 as a command-line interface tool (`chump`), which can be used to install,
468 update, and manage ChucK components ranging from chugins to ChucK libraries
469 to datesets. ChuMP also includes tools (e.g., Chumpinate) for creating new
470 packages, which the ChucK community is heartily invited to do
471 |
472 Selected available packages at time of release
473 ------------------------------------------
474 run `chump list` to see a list of pacakges
475 ------------------------------------------
476 * smuck: a framework for symbolic music notation and playback in ChucK
477 (see below)
478 * FluidSynth: a UGen for loading and rendering FluidSynth soundfonts
479 * Rave: a UGen to load and run RAVE (Realtime Audio Variational autoEncoder)
480 * WarpBuf: a UGen for real-time and high-quality independent time-stretching
481 and pitch shifting of audio files; also supports Ableton .asd files
482 * Hydra: a wrapper around the python configuration framework Hydra
483 * Line: a UGen envelope of arbitrary ramps (ala Max/PD's line~ object)
484 * Patch: a tool for update control values from UGens
485 * PlinkyRev: a stereo reverb UGen; port of the Plinky synth's reverb
486 * Rec: helper functions for recording to audio files. Supports recording
487 from dac, ugens, and arrays of ugens
488 * (many more packages are on the way!)
489 -------------------------------------------
490 * Chumpinate: two classes (Package & PackageVersion) to help create
491 new packages for distribution using ChuMP
492 -------------------------------------------
493 |
494 For more information, please visit:
495 ---------------------------------
496 https://chuck.stanford.edu/chump/
497 ---------------------------------
498 (added) SMucK: Symoblic Music in ChucK! v0.1.0 (alpha)
499 |
500 INTRODUCING SMucK, a framework for writing, processing, and playback of symbolic
501 music in ChucK.
502 |
503 to install (using ChuMP):
504 -----------------------
505 > `chump install smuck`
506 -----------------------
507 |
508 to start using from ChucK code:
509 ---------------
510 @import "smuck"
511 ---------------
512 |
513 for tutorials, examples, and documentation:
514 ---------------------------------
515 https://chuck.stanford.edu/smuck/
516 ---------------------------------
517 (reworked) basic @doc functionality for language-defined classes to add
518 inline CKDoc documentation for class definitions and function defintions.
519 (reworked; now different from 1.5.4.4) @doc now appears *before* the entity
520 to be documented; now @doc can be also used with class variables
521 ----------------------------------------
522 // add inline documenation (processed at compile-time)
523 @doc "this is a description for the class Foo"
524 class Foo
525 {
526 // add inline documenation (processed at compile-time)
527 @doc "a function in Foo, bar() likes calling his friends"
528 fun void bar()
529 { }
530
531 // add inline documentation for a class variable
532 @doc "this here is a variable called varFoo"
533 5 => int varFoo;
534 }
535 // these @doc information will appear wherever CKDoc is generated
536 // or displayed, for example:
537 Foo.help();
538 ----------------------------------------
539 (added) the ability to hide variables and functions in ckdoc by adding
540 "(hidden)" in the @doc string, for example:
541 ----------------------------------------
542 @doc "putting (hidden) anywhere in the doc string hides the next thing"
543 15 => int varBarHidden;
544 ----------------------------------------
545 (added) examples/basic/blit4.ck
546 (added) ChAI: PCA reduce function call input dimension check
547 (added) ChAI: SVM predict function call input dimension check
548 (added) KNN nearest neighbor function call input value check
549 (fixed) @import issue that can result in certain entries in import path
550 to be skipped over.
551 (fixed) @import issue resulting from inconsistent casing in filepaths
552 (fixed) an issue with the record-to-WAV-file examples:
553 `rec-auto.ck` and `rec-auto-stereo.ck` where they would output an
554 empty WAV file when trying to record (FYI this was caused by a
555 combination of changes to UGen garbage collection since 1.5.4.2
556 and neglecting to remove the temporary workaround in these example files)
557 (developer) chugins API now supports querying for the local install path
558 of a chugin, using: QUERY->getinfo(QUERY, CHUGIN_INFO_INSTALL_DIR);
559 NOTE: this requires updated chugin.h header (1.5.4.5 or higher) and
560 the latest chuck host (1.5.4.5 or higher)
561
562
563 1.5.4.5 (March 2025)
564 =======
565 NOTE: 1.5.4.5 is identical to 1.5.5.0 but without ChuMP
566
567
568 1.5.4.4 (January 2025)
569 =======
570 (added) basic @doc functionality for language-defined classes to add inline
571 CKDoc documentation for class definitions and function defintions.
572 (added, experimental -- NOTE: the semantics of this was rewored in 1.5.4.5)
573 function to retrive CKDoc descriptions for classes and functions:
574 string CKDoc.describe( Object target );
575 ----------------------------------------
576 class Foo
577 {
578 // add inline documenation (processed at compile-time)
579 @doc "this is a description for the class Foo"
580
581 fun void bar()
582 {
583 // add inline documenation (processed at compile-time)
584 @doc "a function in Foo, bar() likes calling his friends"
585 }
586 }
587 // print class description
588 CKDoc.describe( Foo );
589 // with an instance, can also get info about instanced functions
590 Foo f;
591 <<< CKDoc.describe( f ) >>>;
592 <<< CKDoc.describe( f.bar ) >>>;
593 ----------------------------------------
594 (fixed) proper emission of classes by name, e.g., `<<< SinOsc >>>;`
595 (fixed) attempts to assign to a constant right-hand-side variable
596 e.g., `null @=> SinOsc;` now results in a compiler error
597 NOTE: in the above example, SinOsc is a variable of type 'Type'
598 and is created alongside the SinOsc class/type; such Type variables
599 associated with class definitions are automatically marked as constant
600 (fixed) crash due to functions / classes references a local variable defined
601 at file-scope; code emission is now internally re-ordered to compile
602 file-scope code segments -> function definitions -> class definitions
603 (fixed) foreach `auto` variable typing for multi-dimenion array, e.g.,
604 --------
605 // two dim array
606 for( auto x : [[1,2],[3,4]] ) {
607 for( auto y : x ) {
608 // print
609 <<< y >>>;
610 }
611 }
612 --------
613 =======
614 (fixed) miniAudicle export and record functionalities; these resulted in
615 empty WAV file (in 1.5.4.2 and 1.5.4.3), due to updates to garbage collection
616 policy for UGens. exporting and recording should now work, once again
617
618
619 1.5.4.3 (December 2024)
620 =======
621 new ChuGL v0.2.5 (see ChuGL release notes below)
622 ~~~
623 ChucK 1.5.4.3
624 =======
625 (added, at last) class STATIC variable initialization for primitive
626 and Objects types. (Previously, static variables needed to be
627 instantiated and initialized separately.) Now variables of any
628 type can be declared as static variable and they will be automatically
629 initialized on a per-class basis. Example:
630 ----------------------------------------
631 class Foo
632 {
633 // declare a static int in class Foo
634 5 => static int THE_NUM;
635 // declare a static SinOsc in class Foo
636 static SinOsc THE_UGEN(440);
637 }
638 // can be accessed as before
639 <<< Foo.THE_NUM, Foo.THE_UGEN.freq() >>>;
640 ----------------------------------------
641 SEMANTICS for static variables
642 ----------------------------------------
643 as before, static variable can only be DECLARED:
644 a) within a class definition
645 b) outside of any class function defintion
646 c) at the outer-most class scope (cannot be in nested { })
647 -----------------------------------------
648 COMPILE-TIME checks:
649 1) a statement containing a static variable declaration
650 CANNOT access member data/functions
651 2) otherwise, a statement can access both static and member data.
652 3) a statement containing a static variable declaration
653 CANNOT access local (i.e., outside of class def) vars or funcs
654 even in non-public classes
655 -----------------------------------------
656 RUNTIME checks:
657 4) static initialization statements are run in immediate mode
658 meaning no time advances; this is enforced at runtime; any
659 time advances, including waiting on events, will result in
660 a runtime exception
661 -----------------------------------------
662 (added) examples/class/static-init.ck
663 examples/import/import-test-3.ck
664 (added) '/usr/lib/chuck' to @import system search paths on Linux and MacOS.
665 .chug files in system paths will auto-load on start up (.ck files will
666 not auto-load and needs to be @imported in order to be used); also
667 @import will now include this directory when resolving fileanems.
668 (added) "ChucK => Music Programming Language" title to --about
669 (fixed) object instantiation refcount integrity; now correctly accounts
670 for the situation where the object reference count is 0 during
671 constructors (before assignment to a variable) and the constructor
672 performs operations that previously could cause itself to be garbage
673 collected
674 (fixed) now properly emits function calls vs. function values
675 (fixed) class definitions that encounter compiler errors (or are
676 in files that have compiler errors) are now correctly rolled back
677 in the type system; previously it was possible to instantiate
678 partial class definition defined in previously compiled code/file,
679 with undefined outcome
680 =======
681 ChuGL v0.2.5 Release Notes
682 =======
683 (added) input functions to get *all* keys held/pressed/released this frame
684 GWindow.keys()
685 GWindow.keysDown()
686 GWindow.keysUp()
687 (added) new RenderPass methods to set the output resolution, msaa sample
688 count,target scene and target camera for rendering garbage collection
689 mechanism for all UGens(added) HUD pass to ChuGL's default rendergraph.
690 Can now easily add 2d HUD overlay to 3D scenes by grucking ggens to
691 GG.hud()
692 (added) examples/basic/hud.ck
693 (fixed) crash caused by ShaderDesc and other internal reference counting
694 logic
695 =======
696
697
698 1.5.4.2 (November 2024)
699 =======
700 new ChuGL v0.2.4 (see ChuGL release notes below)
701 =======
702 (updated) --chugin-path:<path> no longer auto-loads chugins found in the
703 specified paths; instead the specified paths are added to the import
704 system user paths, and the .chug and .ck files within the specified
705 paths can be @imported.
706 (updated) improved internal garbage collection mechanism for all UGens;
707 now UGens are garbage collected and disconnected from all its UGen
708 connections, as soon as it is now longer referenced from code (previously,
709 this was deferred until the end of origin shred the UGen was created on,
710 which poses potentially significant memory build-up if a shred repeatedly
711 instantiated/connected UGens without exiting). Overall, this internal
712 update should result in improved CPU performance and memory behavior in
713 various scenarios.
714 (fixed) long-standing SndBuf issue, especially prevalent on macOS:
715 "System error : Too many open files." this was due a combination of
716 (fixed) memory leak involving string operations (e.g., string + string);
717 internally, string operations now are appropriately handled by the
718 operator overloading mechanism
719 (fixed) < <= > >= operators for strings
720 (fixed) an issue chugin system auto-load and --chugin-probe was skipping
721 over the first element when scanning directories
722 (fixed) vec2/vec3/vec4 implicit cast logic for +=> and -=> operations
723 (previously, this would cause a crash in some cases)
724 (fixed) vec2/vec3/vec4 function call from literal (non-variable) value
725 (e.g., @(1,0).magnitude(); previously this yielded a compiler error)
726 (added) examples/stk/tubebell-algo5.ck
727 (added) vector dot product methods for vec2, vec3, and vec4
728 float vec2.dot( vec2 rhs )
729 float vec3.dot( vec3 rhs )
730 float vec4.dot( vec4 rhs )
731 (added) vector cross product method for vec3 and vec4 (as 3D shorthand)
732 NOTE: this is the same as vec3*vec3 or vec4*vec4
733 NOTE: 4D cross product is mathematically undefined; vec4 cross product
734 ignores the `w` components and computes a 3D cross product;
735 `w` is also set to zero in the resulting vec4
736 vec3 vec3.cross( vec3 rhs )
737 vec4 vec4.cross( vec4 rhs )
738 (added) Type.of( vec2 ) function to get the associate Type
739 (added) --auto-load-chugin-path:<path> flag -- this behaves as
740 --chugin-path previously did: chugins in the specified path(s) are
741 auto-loaded; .ck files can be @imported
742 (fixed) --chugin:<name> and --chugin-path:<path> now correctly auto-expand
743 paths
744 (updated) Shred(.parent(), .ancester(), .childMemSize(), .childRegSize())
745 now will operate with respect to the shred reference rather than always
746 w.r.t. the calling shred (e.g., shred that is running when these functions
747 are called)
748 (added) Shred.pc(), .regSP(), .memSP() -- for debugging, info, amusement
749 =======
750 ChuGL v0.2.4 Release Notes
751 =======
752 New Features:
753 - Should now support both X11 and Wayland on Linux
754 - PolygonGeometry: provides (decently) robust/performant triangulation, useful for animating or
755 drawing deformable 2d shapes
756 - WireframeMaterial: renders a mesh as a wireframe
757 - Texture.copy(...): can now copy data between textures
758 - Texture.read(...): read back texture data from GPU --> CPU
759 ~~~
760 Improvements:
761 - Significantly reduced startup time from loading large OBJ models or building geometry with
762 many vertices (tangent frame calculation has been moved from the CPU --> GPU)
763 - Optimized webcam implementation (now consumes less memory and requires fewer memory transfers)
764 ~~~
765 New examples
766 - deep/ray_triangle_intersection.ck: 3d ray-triangle intersection testing. Thanks Shenran!!
767 - deep/fish.ck: procedurally animating a fish, showcases PolygonGeometry
768 - deep/webcam_echo.ck: webcam delay effect via texture copying
769 - basic/triangulate.ck: polygon triangulation with PolygonGeometry
770 - basic/texture_read.ck: showcases reading texture data from GPU into chuck
771 ~~~
772 Bug Fixes:
773 - Crash when using Video textures
774 - Fix race condition in Webcam destructor
775 - GText now supports empty strings, and can properly disconnect from the scenegraph
776 - AssLoader will take model ambient color (Ka) into account
777 =======
778
779
780 1.5.4.1 (November 2024)
781 =======
782 (patch release)
783 - (fixed, linux) a crash when the OTF handles an OTF command (add or replace)
784 - (added) support for crawling subdirectories for importing for packages
785 to be managed by the upcoming ChuMP (ChucK Manager of Packages)
786 - (updated) --chugin-probe now prints .ck files in the import search paths
787 NOTE: as of 1.5.4.1 chuck auto-loads ONLY chugins in the system search
788 paths; all other chugins and all chuck files in the import search paths
789 must be @imported in order to be used.
790
791
792 1.5.4.0 (November 2024)
793 =======
794 \/\/\/\/\/
795 LICENSE UPDATE: ChucK source code is dual-licensed under the MIT License
796 and the GNU General Public License 2.0 (or any later version). You can
797 choose either license in order to use the source code. Previoiusly, ChucK
798 was GPL-only. Please the LICENSE.MIT and LICENSE.GPL in the source
799 distribution for details.
800 ----
801 NOTE: as before, miniAudicle source code remains GPL for now; chugins
802 each have their own license(s). WebChucK, ChuGL, Chunity, Chunreal
803 respectively have MIT licenses
804 /\/\/\/\/\
805 ********** new language feature ************
806 @import system for .ck and .chug files
807 ********************************************
808 - for language specification and examples regarding @import:
809 ***************************************************
810 https://chuck.stanford.edu/doc/language/import.html
811 ***************************************************
812 - the @import system imports classes and operator overloads from another
813 .ck file, or from a chugin; it is designed to faciliate creating,
814 using, and distributing multi-file programs and libraries
815 - @import SYNTAX:
816 @import "Foo.ck" // import Foo.ck
817 @import "Bar.chug" // import Bar.chug chugin
818 @import { "AAA.ck", "BBB.chug", "CCC" } // multiple imports on one line
819 @import "/Users/ge/chuck/examples/import/foo-user.ck" // absolute path
820 @import "../dir/Blarg.ck" // relative path
821 @import "Foo" // can use implicit filename; @import will search and
822 match for .ck, .chug, and .chug.wasm, in each directory in the
823 chugin/import search paths
824 - @import picks up all (and only) *public* definitions (classes and
825 operator overloads);
826 -- this implies that @import will only add new definitions to the type
827 system, but will NEVER automatically run any code; client code must
828 first instantiate class or use an operator to execute the contents
829 of imported files
830 -- this makes it possible to write unit-test code for public classes
831 in the same file in which it is defined; any code outside of public
832 class/operator definition will NOT be type-checked or run (this
833 code will only scanned for syntax)
834 - @imports are resolved at compile-time, before the rest of the host file
835 is evaluated; this makes it possible for a a host .ck file to @import
836 one or more files and make use of their contents immediately (when it
837 comes to dependency management, this compile-time import mechanism is
838 more powerful than the run-time Machine.add()).
839 - @import can work recursively; can @import files that @import other
840 files
841 - @import has built-in cycle-detection; if an @import cycle is detected,
842 a compiler error will be issued and that compilation will be failed
843 *******************
844 ChuGL 0.2.3 Release
845 *******************
846 - Video textures!
847 - Currently supporting MPEG1 Video decoding and playback
848 - Webcam/video camera integration
849 - ChuGL can now run at a fixed framerate across all machines/monitors
850 - `GG.fps(int fps)` to set the target framerate (lower values improve
851 chuck's audio performance)
852 - defaults to 60fps
853 - Added skybox support to GScene and environment lighting to PhongMaterial
854 - New Examples
855 - basic/skybox.ck
856 - basic/webcam.ck
857 - basic/video.ck
858 - Fix memory leak on creating new Shaders
859 - (updated behavior) the one-public-class-per-file restriction has been
860 lifted; i.e., it is now possible to define more than one public class
861 in a single .ck file; this update is intended to give programmers and
862 library creators more flexibility in organizing their public class
863 definiition
864 - (updated behavior) .ck files found in chugin/import search paths (e.g.,
865 ~/.chuck/lib) NO LONGER automatically loads; instead these now must
866 be explicitly @imported to be used (FYI just the file name will
867 suffice, assuming there are no filename conflicts elsewhere in the
868 import paths)
869 *******************
870 - (added) member function in Object to get the instantiated type of an
871 object, regardless of the apparent type
872 Type Object.typeOfInstance()
873 Get the instanced type of this object.
874 - (fixed) specific internal UGen connection error now handled without
875 exiting
876 - (fixed, windows) single letter filenames without extensions (e.g., "A")
877 now are distinguished from windows drive letters (e.g., "A:\")
878 - (fixed) Type.of() now reports more specific array type (e.g.,
879 `string[]`) instead ofgeneric `@array`
880 - (fixed) type system [user] namespace now instantiated correctly at
881 initialization; previously [global] was used until a clearVM was
882 performed -- this caused incorrect behavior with certain functionality,
883 including a crash in Type.children(); relatedly a long-standing
884 bug was fixed in the type system scope::lookup mechanism that added
885 NULL entries during lookup
886 - (fixed) modulo `%` by zero (int or float) now throws an exception;
887 previously this would either produce an incorrect result or cause a
888 crash
889 - (updated) .sort() a string array will now sort alphabetically (instead
890 of by Object refs)
891 - (updated, internal) dynamic array types are now cached and reused,
892 preventing potential memory build-up across compilations
893 - (updated) chugin probe no longer recursively crawl directories
894 - (updated) variable dependency check now treats sporked functions same
895 as function calls; unfulfilled dependencies will result in a compiler
896 error; previously, correctness in this regard was left to the
897 programmer but could cause a crash. this update is more stringent than
898 is always necessary (due to spork being parallel and the timing
899 behavior, the dependency sometimes are resolved in actuality.
900 however, ChucK team deems potentially over-aggressive dependency
901 checking for sporked functions is preferrable to unexpected and
902 hard-to-debug crashes.
903 ============
904 For example:
905 ============
906 ```
907 // spork a function (that depends on foo)
908 spork ~ printArray();
909
910 // initialize foo
911 5 => int foo;
912
913 // function that needs foo
914 fun void printArray()
915 {
916 // need 'foo' initialized here
917 if( foo == 5 ) <<< "success" >>>;
918 }
919
920 // give the sporked shred a chance to run
921 me.yield();
922 ```
923 ===============
924 compiler error:
925 ===============
926 error: sporking 'printArray()' at this point potentially skips
927 initialization of a needed variable:
928
929 [9] spork ~ printArray();
930 ^
931 error: ...(note: this skipped variable initialization is needed by 'fun
932 void printArray()')
933
934 [12] 5 => int foo;
935 ^
936 error: ...(note: this is where the variable is used within 'fun void
937 printArray()' or its subsidiaries)
938
939 [18] if( foo == 5 ) <<< "success" >>>;
940 ^
941 ...(hint: try calling 'printArray()' after the variable initialization)
942 ==============
943
944
945 1.5.3.2 (October 2024)
946 =======
947 *** ChuGL maintanance patch ***
948 - (updated) backend WebGPU version to wgpu-22.1.0.5
949 - (added) OpenGL fallback on machines where modern graphics APIs (vulkan, metal, direct3d)
950 are not supported
951 - (fixed) shreds can now exit a GG.nextFrame() loop without hanging the window
952 - (added) GG.unregisterShred() to manually unregister a graphics shred
953 - (added) new examples
954 - deep/particles.ck : musical partical system
955 - deep/sprite_animation.ck : sprite animation via sprite sheets
956 - (fixed) race condition on window resize
957 *******************************
958 - (added) MidiFileIn.bpm()
959 "Same as beatsPerMinute()."
960 - (added) MidiFileIn.ticksPerQuarter();
961 "Get the ticks per quarter (TPQ) value from the MIDI file header."
962 - (added) MidiFileIn.tpq();
963 "Same as ticksPerQuarter()."
964 - (fixed) documentation for MidiMsg.when:
965 "Duration since the last MidiMsg (only valid for MidiFileIn)."
966 - (fixed, windows) SndBuf issue when compiled with UNICODE (FYI SndBuf is still ANSI,
967 but this averts an error due to char width mismatch)
968 - (changed, developer) chuck global manager getGlobalUGenSamples() now handles multi-channel
969 implications for Chunity support for stereo
970 - (added) new examples (FM Synthesis)
971 examples/stk/jacobass-algo1.ck
972 (such groove, much Algorithm 1)
973 examples/stk/nylon-guitar-algo1.ck
974 (updated/renamed from honkeytonk-algo3.ck)
975
976
977 1.5.3.1 (October 2024)
978 =======
979 *** ChuGL maintanance patch ***
980 - (fixed) crash caused by calling UI functions before calling GG.nextFrame();
981 now prints a warning with a hint to call GG.nextFrame()
982 - (fixed) CPU and memory spikes when minimizing a ChuGL window
983 - (fixed) crash caused by immediately disconnecting GGen after -->
984 *******************************
985 - (fixed) ADSR constructors now work correctly
986 - (fixed) compiler now reports line numbers and caret position correctly after
987 a multi-line string literal
988
989
990 1.5.3.0 (September 2024)
991 =======
992 - (major update) ****** ChuGL.chug v0.2.0 (alpha) ******
993 * complete under-the-hood engine rewrite
994 * now uses WebGPU instead of OpenGL as the core graphic library
995 * some minor API changes, see: https://chuck.stanford.edu/chugl/api/
996 * new and updated examples, see: https://chuck.stanford.edu/chugl/examples/
997 * for more information, visit: https://chuck.stanford.edu/chugl/
998 *********************************************
999 - (added, macOS and Linux) --chugin: and --chugin-path:
1000 flags now expands '~' in filepath
1001 - (developer) fixed QUERY->getinfo(); previously the function pointer was
1002 NULL and would caused a crash if called
1003 - (developer) updated set/getParam() key names:
1004 was: CHUCK_PARAM_USER_CHUGINS now: CHUCK_PARAM_CHUGIN_LIST_USER
1005 was: CHUCK_PARAM_USER_CHUGIN_DIRECTORIES now: CHUCK_PARAM_CHUGIN_LIST_USER_DIR
1006
1007
1008 1.5.2.5 (July 2024)
1009 =======
1010 - (updated) chugin API version from 10.1 to 10.2
1011 - (added) chugin API for callback on shutdown
1012 - (added) chugin API for setting array elements (thanks azaday)
1013 - (added) overloaded constructors (more to come)
1014 ==================
1015 Envelope( dur durationToTarget )
1016 Construct an Envelope with duration to reach target (assumed to be 1.0);
1017 FYI this does not start the Envelope until .keyOn() is called.
1018 Envelope( float secondsToTarget )
1019 Construct an Envelope with duration (in seconds) to reach target (assumed to be 1.0);
1020 FYI this does not start the Envelope until .keyOn() is called.
1021 Envelope( dur durationToTarget, float target )
1022 Construct an Envelope with duration to reach target;
1023 FYI this does not start the Envelope until .keyOn() is called.
1024 Envelope( float durationToTarget, float target )
1025 Construct an Envelope with duration (in seconds) to reach target;
1026 FYI this does not start the Envelope until .keyOn() is called.
1027
1028 ADSR( dur attack, dur decay, float sustain, dur release )
1029 Construct an ADSR with attack, decay, sustain, and release values. Attack,
1030 decay, and release values are durations; sustain is a float value typically
1031 between 0 and 1.
1032 ADSR( float attack, float decay, float sustain, float release )
1033 Construct an ADSR with attack, decay, sustain, and release values. Attack,
1034 decay, and release values are in seconds; sustain is a float value
1035 typically between 0 and 1.
1036
1037 Delay( dur delay, dur max )
1038 Construct a Delay with delay length and delay max.
1039 Delay( dur delay )
1040 Construct a Delay with delay length and, implicitly, delay max.
1041
1042 DelayA( dur delay, dur max )
1043 Construct a DelayA with delay length and delay max.
1044 DelayA( dur delay )
1045 Construct a DelayA with delay length and, implicitly, delay max.
1046
1047 DelayL( dur delay, dur max )
1048 Construct a DelayL with delay length and delay max.
1049 DelayL( dur delay )
1050 Construct a DelayL with delay length and, implicitly, delay max.
1051
1052 Echo( dur delay, dur max )
1053 Construct an Echo with delay length and delay max.
1054 Echo( dur delay )
1055 Construct an Echo with delay length and, implicitly, delay max.
1056 ==================
1057 - (added) new member functions
1058 ==================
1059 dur Envelope.ramp( dur durationToTarget, float target );
1060 Over the given duration, ramp toward the specified target; returns the given
1061 duration.
1062 dur Envelope.ramp( float secondsToTarget, float target );
1063 Over the given duration (in seconds), ramp toward the specified target; returns
1064 the given duration.
1065
1066 void Delay.set( dur delay, dur max )
1067 Set delay length and delay max; delay should be <= max.
1068
1069 void DelayA.set( dur delay, dur max )
1070 Set delay length and delay max; delay should be <= max.
1071
1072 void DelayL.set( dur delay, dur max )
1073 Set delay length and delay max; delay should be <= max.
1074
1075 void Echo.set( dur delay, dur max )
1076 Set delay length and delay max; delay should be <= max.
1077 ==================
1078 - (added) examples/basic/envelope2.ck -- to show Envelope.ramp() in action
1079 - (added) new MidiOut message voice message convenience functions (thanks @cviejo;
1080 previously these are possible only through `MidiOut.send( MidiMsg msg )`:
1081 ==================
1082 int send( int status, int data1, int data2 );
1083 Send out a MIDI message consisting of one status byte and two data bytes.
1084 int channelPressure(int channel, int pressure)
1085 Send out a channelPressure message.
1086 int controlChange(int channel, int controller, int value)
1087 Send out a controlChange message.
1088 int noteOff(int channel, int note, int velocity)
1089 Send out a noteOff message.
1090 int noteOn(int channel, int note, int velocity)
1091 Send out a noteOn message.
1092 int pitchBend(int channel, int value)
1093 Send out a pitchBend message.
1094 int pitchBend(int channel, int lsb, int msb)
1095 Send out a pitchBend message with fine and coarse values.
1096 int polyPressure(int channel, int note, int pressure)
1097 Send out a polyPressure message.
1098 int programChange(int channel, int program)
1099 Send out a programChange message.
1100 ==================
1101 - (added) examples/midi/midiout2.ck -- demonstrates using the above channel
1102 voice messages
1103 - (added) examples/deep/smb.ck -- a ChucK rendition of Super Mario Bros.
1104 original theme by Koji Kondo; (meticulously) modeled in ChucK by
1105 Wesley Burchell in 2017
1106 - (added) examples/basic/delay2.ck -- example showing DelayL constructor
1107 and modulating delay line length
1108 - (added) examples/basic/blit3.ck -- lounge blit; made for svork concert
1109 lounge music for premiere in May 2024
1110 - (added) examples/special/scream-o-matic/scream-o-matic.ck -- using
1111 multiple LiSas for granular synthesis, to make continuous
1112 scream generator
1113 - (added) command line query system `--query:<name>`
1114 - (added) CKDoc JSON output (terry feng)
1115 - (added) Type type added to CKDoc script and deployed online:
1116 https://chuck.stanford.edu/doc/reference/utils.html#Type
1117 - (added) CKDoc.sort( int ) -- toggle alphabetical sorting of functions and variables
1118 within Type documentation generation (thanks azaday)
1119 - (fixed) globals events system synchronization (FYI this fixes a long-running,
1120 elusive Chunity crashing bug involving various syncers)
1121 - (fixed) STK Moog parameters now consistent (should sound more Moog-y)
1122 - (fixed) local non-control structure local scope Objects now correctly cleaned
1123 up at the end of local scope
1124 - (updated) more and clearer error messages when initializing real-time audio
1125 - (developer) streamline makefile targets 'test' 'doc' 'clean'
1126
1127
1128 1.5.2.4 (April 2024)
1129 =======
1130 - (fixed) runtime exception line number reporting
1131 - (fixed) 3rd-time array ugen link modulo connection between different # of channels
1132 - (fixed) LiSaX crashing on duplicate constructor and destructors (thanks @eswartz)
1133 - (fixed) LiSaX memory leak on creation due to duplicate constructor
1134 - (reinstated) the UGen `bunghole` (a tribute to cultural icon Beavis); equivalent to
1135 blackhole in functionality
1136
1137
1138 1.5.2.3 (April 2024)
1139 =======
1140 - (fixed) regression issue with connecting arrays of mono UGens to
1141 non-mono ugens; e.g., `Gain a[2] => dac;`
1142 FYI examples/stereo/ugen-array.ck now works once again
1143 - (updated) examples/array/array_ugens.ck contains additional
1144 examples of array of ugens connecting with stereo ugens
1145
1146
1147 1.5.2.2 (March 2024)
1148 =======
1149 - (added) Open Sound Control (OSC) address wildcard support
1150 (developer note) internally updated OSC implmentation to liblo v0.32
1151 - (added) OSC wildcard examples
1152 examples/osc/wildcards/r-wildcards.ck
1153 examples/osc/wildcards/s-multi.ck
1154 - (modified) semantics for connecting (=>) arrays of UGens;
1155 1) LHS[X] => RHS: each elements in LHS => to RHS
1156 // Gain A[3] => Gain B;
1157 2) LHS[X] => RHS[X]: one to one mapping
1158 // Gain C[3] => Gain D[3];
1159 3) LHS[X] => RHS[Y]: one to one mapping up to min(X,Y), after
1160 which elements in the smaller array will modulo to the beginning
1161 and connect to remaining elements in larger array
1162 // Gain E[2] => Gain F[3];
1163 4) LHS => RHS[X]: LHS => to each element in RHS
1164 // Gain G => Gain H[3];
1165 - (added) connecting (=^) arrays of Unit Analyzers (UAnae)
1166 - (added) examples/array/array_ugen.ck
1167 - (added) Math.min( int, int ) and Math.max( int, int )
1168 NOTE: these overload the existing (float,float) min/max functions
1169 - (fixed) error reporting for =^ =v --> --< operators
1170 - (fixed) all oscillators Osc( freq, phase ) constructors; previously the phase
1171 was not set correctly
1172 - (fixed) crash in cleaning up certain global objects (specifically those
1173 with default constructors), including OscIn, and ChuGL classes
1174 GGen, Geometry, FileTexture
1175 - (fixed) incorrect CKDoc .help() labeling non-constructors as
1176 constructors in user-defined classes
1177 - (developer) added internal/audio-thread-callable setters for global
1178 int / float arrays
1179
1180
1181 1.5.2.1 (December 2023) ChuGL (alpha) => standard distribution
1182 =======
1183 - (added) ChuGL (alpha) is now part of the standard chuck distribution
1184 (macOS and windows; on linux, build from source)
1185 https://chuck.stanford.edu/chugl/
1186 - (note) this alpha release of ChuGL (ChucK Graphics Library: a real-time
1187 audiovisual programming framework) only works with command-line `chuck`
1188 and does not work from within miniAudicle (miniAudicle support is on
1189 the ChuGL development roadmap)
1190 =======
1191 - (added) chugins can now implement a "info query function" to provide
1192 chugin-specific infomation to be accessible from host, including:
1193 * chugin version (not to be confused with compatibility version)
1194 * chugin author(s)
1195 * chugin description
1196 * (optional) chugin URL
1197 * (optional) contact email
1198 for example, in the chugin source:
1199 ```
1200 // chugin info func
1201 CK_DLL_INFO( MyChugin )
1202 {
1203 // set info
1204 QUERY->setinfo( QUERY, CHUGIN_INFO_CHUGIN_VERSION, "v3.6.1" );
1205 QUERY->setinfo( QUERY, CHUGIN_INFO_AUTHORS, "Ana B. Croft" );
1206 QUERY->setinfo( QUERY, CHUGIN_INFO_DESCRIPTION, "what does it do?" );
1207 QUERY->setinfo( QUERY, CHUGIN_INFO_URL, "https://foo.com/FooBar" );
1208 QUERY->setinfo( QUERY, CHUGIN_INFO_EMAIL, "[email protected]" );
1209 }
1210 ```
1211 - (updated) revert chugin/host compatibility policy
1212 chugin major version must == host major version
1213 chugin minor version must <= host minor version
1214 (previously in 1.5.2.0) chugin AND host API version must match
1215
1216
1217 1.5.2.0 (November 2023) "Better Late Than Never...constructors"
1218 =======
1219 - (added) class constructors
1220 - (added) overloadable class constructors definitions
1221 ============
1222 constructors can be invoked when declaring a variable or with `new`:
1223 ```
1224 // connecting UGens, with construtors
1225 SinOsc foo(440) => Gain g(.5) => dac;
1226 // `new` and assignment
1227 new TriOsc(440,pi/2) @=> Osc @ oscillator;
1228 // can combine constructors with arrays
1229 string arr("foo")[10];
1230 ```
1231 ============
1232 constructors can be defined and overloaded in class definitions:
1233 ```
1234 class Foo
1235 {
1236 // a member variable
1237 1 => int num;
1238
1239 // constructor "default"
1240 fun @construct() { 2 => num; }
1241
1242 // another constructor
1243 fun @construct( int x ) { x => num; }
1244
1245 // yet another constructor
1246 fun @construct( int x, int y ) { x*y => num; }
1247
1248 // alternate way of define a constructor, using the class name
1249 fun Foo( int x, int y, int z ) { x*y*z => num; }
1250
1251 // destructor
1252 fun @destruct() { <<< "bye:", this.num >>>; }
1253 }
1254
1255 // constructor "default"
1256 Foo f1();
1257 // another constructor
1258 Foo f2(15);
1259 // yet another constructor
1260 new Foo(8,9) @=> Foo @ f3;
1261 // yet another constructor
1262 new Foo(10,11,12) @=> Foo @ f4;
1263 // print
1264 <<< f1.num, f2.num, f3.num, f4.num >>>;
1265 ```
1266 - (added) examples/class/constructors.ck
1267 - (added) examples/class/destructor.ck
1268 - (added) CKDoc and .help() support for constructors
1269 - (added) overloaded functions can now have different return types;
1270 for example:
1271 ```
1272 // foo() overload 1 returns float
1273 fun float foo( float b ) { return b; }
1274 // foo() overload 2 returns int
1275 fun int foo( int a ) { return a; }
1276 ```
1277 - (fixed) Type.of("int[][]").isArray() now correctly returns true
1278 - (fixed) overzealous dependency validation for member variable usage
1279 from other classes
1280 - (fixed) overzealous dependency validation for file-level variable
1281 usage from functions
1282 - (fixed) disambiguating overloaded functions to choose the "closest" match
1283 by function call argument type inheritance "distance" to function
1284 argument type
1285 - (added) Shred.parent() and Shred.ancestor()
1286 - (added) compiler error for ambiguous function calls when there is no
1287 "closest" match
1288 - (fixed) array popFront() crash on Object-based arrays
1289 - (updated) ChucK API doucmentation for constructors
1290 - (added) overloaded constructors added (more to come)
1291 ==================
1292 Gain( float gain );
1293 Construct a Gain with default value.
1294 SndBuf( string path );
1295 Construct a SndBuf with the 'path' to a sound file to read.
1296 SndBuf( string path, float rate );
1297 Construct a SndBuf with the 'path' to a sound file to read, and a default playback 'rate' (1.0 is normal rate)
1298 SndBuf( string path, float rate, int pos );
1299 Construct a SndBuf with the 'path' to a sound file to read, a default playback 'rate' (1.0 is normal rate), and starting at sample position 'pos'
1300 Step( float value );
1301 Construct a Step with a default value.
1302 string( string str );
1303 Construct a string as a copy of another string.
1304 Osc( float freq );
1305 Construct a Osc at specified frequency.
1306 Osc( float freq, float phase );
1307 Construct an Osc at specified frequency and phase.
1308 (similarly for SinOsc, TriOsc, SqrOsc, SawOsc, PulseOsc, Phasor)
1309 ==================
1310 chugins API update
1311 ==================
1312 - (updated) chugin API version updated to 10.1
1313 -- complete decoupling of chugins interface and chuck core
1314 implementation details
1315 -- new chugins runtime API functions to provide access
1316 to chuck core operations that is safe across the shared/dynamic
1317 library boudaries between chugins and a chuck host
1318 (see Chuck_DL_Api in chuck_dl.h for details)
1319 - (updated) all chugins can now include a single header `chugin.h`
1320 with no additional header dependencies
1321 [see: https://github.com/ccrma/cheaders/tree/main/include]
1322 FYI: this single-header `chugin.h` is generated from a minimal
1323 set of chuck core header files: chuck_def.h chuck_symbol.h
1324 chuck_absyn.h and chuck_dl.h
1325 - (updated) it is highly recommended that all chugins update to
1326 using chugin.h; it is still possible to include chuck headers
1327 directly (either chuck_dl.h or chuck.h), but must #define
1328 __CHUCK_CHUGIN__ macro (if using chugin.h, this macro is always
1329 defined at the top of file)
1330 - (updated) chugin AND host API version must now match
1331 (previously only the major version must match)
1332 - (added) chugins runtime API support for creating arrays from chugins
1333 - (added) chugins support for overloading constructors
1334
1335
1336 1.5.1.8 (October 2023) "Halloween Release"
1337 =======
1338 (note) memory management is ghoulishly frightful!
1339
1340 - (fixed) an issue with memory management / reference counting across
1341 overloaded operations that return Object
1342 - (fixed) an issue with reference count cleanup on recursive functions
1343 that return Objects
1344 - (fixed) an issue with reference count cleanup on 'new' operator,
1345 e.g., (new Foo).f();
1346 - (updated) reduced memory management dependency between language-defined
1347 objects and their "parent" shreds
1348 - (updated) --color:ON and --color now will always output ANSI color
1349 codes, regardless of TTY status; (FYI --color:AUTO is unchanged
1350 and is the same as default, i.e., enable color terminal if TTY
1351 detected; disable otherwise
1352 - (added, developer) chugins API float array access
1353
1354
1355 1.5.1.7 (October 2023) "vec2"
1356 =======
1357 - (added) new type 'vec2' 2D vector type
1358 for 2D animation (ChuGL) as well as texture mapping UV or ST
1359 coordinates; access fields with .x/.y OR .u/.v OR .s/.t
1360 - (added) new examples/vector/vec2.ck
1361 - (reworked) memory management across function calls that return
1362 Object types; now correctly tracks all instances within a
1363 statement and balances reference counts; previously there was
1364 a chance that object refcount were not correctly released,
1365 causing incorrect behavior including memory leaks.
1366 "dangling object references tracking and cleanup"
1367 examples include (assumption: foo() returns an Object):
1368 `foo().bar;` or `foo(), foo()` (multi-expression stmt) or
1369 `while( foo().bar ) { ... }` (loop stmt) and many more.
1370 - (fixed) incorrect reference count for certain usages of 'null'
1371 where the expression was interpreted incorrectly as a
1372 function call, e.g., obj == null
1373
1374
1375 1.5.1.6 (October 2023) patch release
1376 =======
1377 - (fixed) a serious issue accessing vec3/vec4 fields (.x, .y, .z. .w)
1378 where the operand stack was incorrectly cleaned, which could lead
1379 to stack overflow. This issue has been addressed.
1380
1381
1382 =======
1383 NOTE: 1.5.1.5 is the alpha-release / soft launch of ChuGL, a unified
1384 audiovisual programming framework built into the ChucK programming
1385 language. It offers real-time, unified audio synthesis and 3D/2D graphics
1386 programming in a single strongly-timed language.
1387 ------
1388 https://chuck.stanford.edu/chugl/
1389 =======
1390
1391
1392 1.5.1.5 (October 2023) "operator overloading + chugins API 9.0"
1393 =======
1394 - (added) operator overloading is here!
1395 Most operator can now be overloaded, within their respective existing
1396 forms in the language (e.g., binary operators such as '+' and '=>'
1397 can be overloaded as binary operators, but not as unary operators).
1398 Similar to class definitions, operator overloads are local in scope
1399 to the file context, unless declared with 'public'. operator
1400 overloading marked as 'public' will persists until 1) the VM stops or
1401 2) the VM is cleared/reset.
1402 //-----------------------------------------------------------
1403 // the general format for overload an operator is as follows:
1404 //-----------------------------------------------------------
1405 // let's say we define a custom class...
1406 public class Foo { int num; }
1407
1408 // PUBLIC operator overloading (transcends contexts and files;
1409 // will persist until stop VM or clear VM. NOTE the use of 'public'
1410 // instead of 'fun' (fun for all!)
1411 public Foo @operator =^( Foo lhs, Foo rhs )
1412 { /* do stuff for Foo =^ Foo */ return rhs; }
1413
1414 // LOCAL binary operator overload for '=>' (local to this context)
1415 fun Foo @operator =>( Foo lhs, Foo rhs )
1416 { /* do stuff for Foo => Foo */ return rhs; }
1417
1418 // define binary operator overload for '+'
1419 fun Foo @operator +( Foo lhs, Foo rhs )
1420 { Foo retval; lhs.num + rhs.num => retval.num; return retval; }
1421
1422 // define binary operator overload for '*'
1423 fun Foo @operator *( Foo lhs, Foo rhs )
1424 { Foo retval; lhs.num * rhs.num => retval.num; return retval; }
1425
1426 // define unary operator overload for '!'
1427 fun int @operator !( Foo foo )
1428 { return !foo.num; }
1429
1430 // define postfix operator overload for '++'
1431 fun Foo @operator ( Foo foo ) ++
1432 { foo.num++; return foo; }
1433
1434 //-----------------------------------------------------------
1435 // using the new overloaded operators
1436 //-----------------------------------------------------------
1437 // create 2 Foos
1438 Foo a, b; 1 => a.num; 2 => b.num;
1439 // operator in action (follows default ck operator precedence)
1440 a + b * b + a @=> Foo c;
1441 // post ++ on c
1442 c++;
1443 // should print 7
1444 <<< c.num >>>;
1445 //-----------------------------------------------------------
1446 - (added) new examples showing basic operator overloading usage
1447 examples/oper/overload_overview.ck
1448 examples/oper/overload_pre_post.ck
1449 examples/oper/overload_public.ck
1450 examples/oper/overload_gru.ck
1451 - (added) the "gruck operator" --> (graphical chuck operator) as part
1452 of ChuGL (ChucK Graphics Library), which will be part of the ChucK
1453 language
1454 - (added) Machine function to on-the-fly control operator overloading stack
1455 static void resetOperators();
1456 Reset operator overloading state to default startup state;
1457 removes all public @operator overloads; use with care.
1458 - (added) new Machine function for getting number of shreds currently in VM
1459 static int numShreds();
1460 Get the number of shreds currently in the VM.
1461 - (added) improved exception reporting and stack-overflow detection and
1462 handling. Overall, these change improve system robustness and runtime
1463 information.
1464 - (added) two new (and somewhat arcane) Shred methods to support "extreme
1465 shredding" use cases:
1466 ----
1467 int childMemSize( int sizeInBytes );
1468 Set size hint of per-shred call stack ("mem") for children
1469 shreds subsequently sporked from the calling shred (NOTE this
1470 size hint does not affect the calling shred--only its
1471 descendants); if sizeInBytes <= 0, the size hint is set to
1472 the VM default. (FYI This is an arcane functionality that
1473 most programmers never need to worry about. Advanced usage:
1474 set size hint to small values (e.g., 1K) to support A LOT
1475 (e.g., >10000) of simultaneous shreds; set size hint to large
1476 values (e.g., >65K) to spork functions with extremely deep
1477 recursion, or to support A LOT (>10000) of declared local
1478 variables. Use with care.)
1479 int childMemSize();
1480 Get the memory stack size hint (in bytes) for shreds sporked
1481 from this one.
1482 int childRegSize( int sizeInBytes );
1483 Set size hint of per-shred operand stack ("reg") for children
1484 shreds subsequently sporked from the calling shred (NOTE this
1485 size hint does not affect the calling shred--only its
1486 descendants); if sizeInBytes <= 0, the size hint is set to
1487 the VM default. (FYI This is an arcane functionality
1488 that most programmers never need to worry about. Advanced
1489 usage: set size hint to small values (e.g., 256 bytes) to
1490 support A LOT (>10000) of simultaneous shreds; set size hint
1491 to large values (e.g., >20K) to spork functions with
1492 extremely lengthy (>10000) statements, including array
1493 initializer lists. Use with care.)
1494 int childRegSize();
1495 Get the operand stack size hint (in bytes) for shreds sporked
1496 from this one.
1497 ----
1498 - (added) FileIO.open() now takes "special:auto" as the filename (output
1499 only) to write to a new file with auto-generated filename in the
1500 current directory (based on the current system time, precise to
1501 second;NOTE files created into way at the same system time will have
1502 the same auto-generated filename and may conflict or fail to open).
1503 The "auto" prefix and extension can be set and retrieved using the
1504 following new functions to FileIO:
1505 ---
1506 string autoExtension();
1507 Get auto extension for "special:auto" filename generation
1508 (applicable to file writing only).
1509 string autoPrefix();
1510 Get auto prefix for "special:auto" filename generation
1511 (applicable to file writing only).
1512 void autoPrefixExtension( string prefix, string extension );
1513 Set auto prefix and extension for "special:auto" filename
1514 generation (applicable to file writing only).
1515 ---
1516 - (fixed) float *=> vec4 now works as intended (instead of producing a
1517 a compilation error)
1518 - (fixed) on Windows and --verbose level SYSTEM or higher, when a chugin
1519 fails to load, instead of displaying a cryptic error code (e.g.,
1520 "reason: 1920"), the error code is translating into an error message
1521 and displayed (e.g., "reason: The file cannot be accessed by the system.")
1522 (azaday)
1523 - (fixed) on certain systems, program ending with a single-line // comment
1524 could crash; affects miniAudicle, WebChucK, Machine.eval() containing
1525 code that ending with a trailing comment
1526 - (fixed) on-the-fly programming (OTF) system was incorrectly cleaning
1527 up file descriptors and leading to instability
1528 - (updated) ConsoleInput.prompt( text ) now no longer prints an extra
1529 space (" ") after prompt text
1530 - (updated) chugins headers version incremented to 9.0
1531 - (added; chugins development) overhauled dynamic linking API to access
1532 chuck host-side operations; this greatly expands chugins capabilities
1533 but will unfortunately require API changes that will break chugin
1534 builds that uses the existing API.
1535 (check out chuck_dl.h: `namespace Chuck_DL_Api`)
1536 - (added; chugins development) ability to overload operators from chugin
1537 query functions in C++:
1538 // add binary operator overload; args included
1539 f_add_op_overload_binary add_op_overload_binary;
1540 // add unary (prefix) operator overload; arg included
1541 f_add_op_overload_prefix add_op_overload_prefix;
1542 // add unary (postfix) operator overload; arg included
1543 f_add_op_overload_postfix add_op_overload_postfix;
1544 - (added; chugins development) capability to invoke chuck language-side
1545 member functions (in chuck) from chugins (in C++)
1546 // invoke Object member function (defined either in chuck or c++)
1547 // NOTE this will call the member function in IMMEDIATE MODE,
1548 // marking it as a time-critical function when called in this
1549 // manner; any time/event operations therein will throw an exception
1550 Chuck_DL_Return API->vm->invoke_mfun_immediate_mode(
1551 Chuck_Object * obj, t_CKUINT func_vt_offset, Chuck_VM * vm,
1552 Chuck_VM_Shred * shred, Chuck_DL_Arg * ARGS, t_CKUINT numArgs );
1553 - (added; chugins development) new API->type API for C++/chugins to
1554 lookup types in the type system, virtual function offsets (useful
1555 for API->vm->invoke_mfun_immediate_mode() above)
1556 - (added and updated; chugins development) across all existing
1557 chugins DL API and many additions; the chugins runtime API 9.0
1558 =============================
1559 // C++ chugins runtime API for VM access (access from chugins using API->vm->...)
1560 // get sample rate | 1.5.1.4
1561 t_CKUINT srate( Chuck_VM * vm );
1562 // get chuck now | 1.5.1.4
1563 t_CKTIME now( Chuck_VM * vm );
1564 // create a new lock-free one-producer, one-consumer buffer | 1.5.1.4
1565 CBufferSimple * create_event_buffer( Chuck_VM * vm );
1566 // queue an event; num_msg must be 1; buffer should be created using create_event_buffer() above | 1.5.1.4
1567 t_CKBOOL queue_event( Chuck_VM * vm, Chuck_Event * event, t_CKINT num_msg, CBufferSimple * buffer );
1568 // invoke Chuck_Object member function (defined either in chuck or c++) | 1.5.1.4 (ge & andrew)
1569 // NOTE this will call the member function in IMMEDIATE MODE,
1570 // marking it as a time-critical function when called in this manner;
1571 // any time/event operations therein will throw an exception
1572 Chuck_DL_Return invoke_mfun_immediate_mode( Chuck_Object * obj, t_CKUINT func_vt_offset,
1573 Chuck_VM * vm, Chuck_VM_Shred * shred, Chuck_DL_Arg * ARGS, t_CKUINT numArgs );
1574 // throw an exception; if shred is passed in, it will be halted
1575 void throw_exception( const char * exception, const char * desc, Chuck_VM_Shred * shred );
1576 // log a message in the chuck logging system
1577 void em_log( t_CKINT level, const char * text );
1578 // system function: remove all shreds in VM; use with care
1579 void remove_all_shreds( Chuck_VM * vm );
1580 --------------------------------
1581 // C++ chugins runtime API for object access (access using API->object->...)
1582 // function pointer get_type()
1583 Type get_type( Object object );
1584 // add reference count
1585 void add_ref( Object object );
1586 // release reference count
1587 void release( Object object );
1588 // get reference count
1589 t_CKUINT refcount( Object object );
1590 // instantiating and initializing a ChucK object by type, with reference to a parent shred
1591 // if addRef == TRUE the newly created object will have a reference count of 1; otherwise 0
1592 // NOTE set addRef to TRUE if you intend to keep a reference of the newly created object around
1593 // NOTE set addRef to FALSE if the created object is to be returned without keeping a reference around
1594 Object create( Chuck_VM_Shred *, Type type, t_CKBOOL addRef );
1595 // instantiating and initializing a ChucK object by type, with no reference to a parent shred
1596 // if addRef == TRUE the newly created object will have a reference count of 1; otherwise 0
1597 Object create_without_shred( Chuck_VM *, Type type, t_CKBOOL addRef );
1598 // instantiate and initialize a ChucK string by type
1599 // if addRef == TRUE the newly created object will have a reference count of 1; otherwise 0
1600 String create_string( Chuck_VM *, const char * value, t_CKBOOL addRef );
1601 // function pointers for get_mvar_*()
1602 t_CKBOOL get_mvar_int( Object object, const char * name, t_CKINT & value );
1603 t_CKBOOL get_mvar_float( Object object, const char * name, t_CKFLOAT & value );
1604 t_CKBOOL get_mvar_dur( Object object, const char * name, t_CKDUR & value );
1605 t_CKBOOL get_mvar_time( Object object, const char * name, t_CKTIME & value );
1606 t_CKBOOL get_mvar_string( Object object, const char * name, String & value );
1607 t_CKBOOL get_mvar_object( Object object, const char * name, Object & value );
1608 // function pointer for set_string()
1609 t_CKBOOL set_string( String string, const char * value );
1610 // array_int operations
1611 t_CKBOOL array_int_size( ArrayInt array, t_CKINT & value );
1612 t_CKBOOL array_int_push_back( ArrayInt array, t_CKUINT value );
1613 t_CKBOOL array_int_get_idx( ArrayInt array, t_CKINT idx, t_CKUINT & value );
1614 t_CKBOOL array_int_get_key( ArrayInt array, const std::string & key, t_CKUINT & value );
1615 --------------------------------
1616 // C++ chugins runtime API for type access (new; access using API->type->...)
1617 // lookup type by name
1618 Type lookup( Chuck_VM *, const char * name );
1619 // get vtable offset for named function; if overloaded, returns first;
1620 // (returns < 0 if not found)
1621 t_CKINT get_vtable_offset( Chuck_VM *, Type type, const char * value );
1622 // test if two chuck types are equal
1623 t_CKBOOL is_equal(Type lhs, Type rhs);
1624 // test if lhs is a type of rhs (e.g., SinOsc is a type of UGen)
1625 t_CKBOOL isa(Type lhs, Type rhs);
1626 =============================
1627
1628
1629 1.5.1.3 (September 2023) "ChucK to School"
1630 =======
1631 (note) this release of chuck addresses a number of issues from long-time
1632 language bugs to documentation updates to expanding Machine functions
1633 for VM/shred management to improved Open Sound Control support. Over
1634 the dozen releases since chuck-1.5.0.0, this release is strongly-timed
1635 for students and instructors coming back to school in Fall 2023!
1636 (One of our ongoing priorities is to make the language + tools
1637 better for teaching, research, and of course music making.)
1638
1639 - (updated) Machine.add()/replace()/remove()/status() now re-implemented
1640 internally for both performance and greater compatibility (now can
1641 be used with no dependencies on OTF system, make it possible to call
1642 these from systems like WebChucK).
1643 - (added) new and updated Machine functions
1644 ---------
1645 ** new ** static int removeLastShred();
1646 Remove the most recently added shred in the VM (could be the
1647 shred calling this function); returns the ID of the removed
1648 shred.
1649 ** new ** static int resetShredID();
1650 Reset shred IDs to 1 + the highest current shred ID in the VM;
1651 can be used as shred management to keep shred IDs low, after
1652 a lot of sporks. Returns what the next shred ID would be.
1653 ** new ** static void removeAllShreds();
1654 Remove all shreds in the VM (including the shred calling this
1655 function).
1656 ** new ** static void clearVM();
1657 Reset the type system, removing all user-defined types and all
1658 global variables; removes all shreds in the VM (including the
1659 shred calling this function). Use with care.
1660 ** new ** static void printStatus();
1661 Print (to terminal or console) the current status of the VM.
1662 ** new ** static void printTimeCheck();
1663 Print (to terminal or console) the current time information in
1664 the VM.
1665 -------------
1666 ** updated ** static int add( string path );
1667 Compile and spork a new shred from file at 'path' into the VM;
1668 returns the new shred ID. It is possible to include arguments
1669 with the file being added, e.g., `Machine.add(
1670 "foo.ck:bar:3:5.0" )`.
1671 ** updated ** static int replace( int id, string path );
1672 Replace shred with new shred from file. Returns new shred ID,
1673 or 0 on error. It is possible to include arguments, e.g.,
1674 `Machine.replace( outID, "foo.ck:bar:3:5.0" )`.
1675 ** updated ** static int remove( int id );
1676 Remove shred from VM by shred ID (returned by Machine.add).
1677 ** updated ** static int status();
1678 Print the current status of the VM;
1679 legacy version of printStatus().
1680 -------------
1681 - (updated) Machine.add( filepath ) no longer introduces a potential
1682 real-time audio interruption on macOS ** for all filepath that does
1683 not contain ~ **; currently, path resolution for ~ or ~[username] in
1684 macOS consistently causes audio clicks, likely due to implementation
1685 of underlying system function (e.g., wordexp()) to resolve ~
1686 (hypothesis: wordexp() function performs IO-blocking)
1687 - (added) function to expand platform specific file path
1688 static string expandPath( string path );
1689 Expand platform-specific filepath to an absolute path, which
1690 is returned. On macOS and Linux expandPath() will attempt to
1691 resolve `~` or `~[username]`; on Windows expandPath() will
1692 attempt to resolve %USERNAME%. (Known issue: (macOS)
1693 expandPath currently introduced an audio click; it
1694 recommended to call expandPath() at the beginning; e.g.,
1695 expanding path ahead of time could avoid a click instead of
1696 calling Machine.add() on a filepath with `~`.)
1697 - (added) a new (3rd) string.replace() function
1698 void replace( string from, string to );
1699 Replace all instances of 'from' in the string with 'to'.
1700 (for reference the existing string.replace() function)
1701 void replace( int position, string str );
1702 Replace characters from 'position' with contents of 'str'.
1703 void replace( int position, int length, string str );
1704 Replace 'length' characters from 'position' with contents of 'str'.
1705 - (added) examples/string/replace.ck
1706 - (updated) move real-time audio system warnings to log level "WARN"; this
1707 should result in less clutter printed, in particular on Linux/ALSA.
1708 - (updated) CKDoc now prints class functions before variables
1709 - (added, chugin development) new backend chugin <=> chuck host API
1710 functions for array.size(), array.get_idx(), array.get_key()
1711 (@nshaheed)
1712 - (fixed) various documentation misspellings (thanks @barak)
1713 - (fixed) variable look-up priorities when multiple variables of the same
1714 name are declared in various situations in the same file (shadowing);
1715 this resolves issues within a subclass incorrectly accessing
1716 variables of the same name (declared as local variable vs. member in
1717 a parent class vs. global-scope variables), depending on where it's
1718 accessed from.
1719 ---
1720 updated convention for value lookup priority (in case of shadowing)
1721 1) first look in the same scope
1722 2) if not found, and if inside a class def, look up-scope within
1723 class (but no further)
1724 3) if not found, and if inside a class def, look in parent (for
1725 inherited value)
1726 4) if still not found, look all the way up to global scope
1727 ---
1728 for example: chuck/src/test/01-Basic/194-value-lookup-order.ck
1729 ---
1730 - (fixed) using => to connect from/to empty UGen array declaration no
1731 longer results in a crash; instead there is now a compiler error:
1732 ```
1733 a.ck:8:17: error: cannot connect '=>' to empty array '[ ]' declaration...
1734 [8] [foo] => SinOsc bars[];
1735 ^
1736 a.ck: ...(hint: declare 'bars' as an non-empty array)
1737 a.ck: ...(or if assignment was the intent, use '@=>' instead)
1738 ```
1739 - (fixed) duplicate function declaration no longer causes a crash after
1740 reporting the error
1741 ```
1742 // example of duplicate function declarations
1743 fun void bar() { }
1744 fun void bar() { }
1745 ```
1746 - (fixed) assigning to constants such as `pi`, `second`, or `Math.PI` now
1747 results in a compiler error; previously the outcome was undefined and
1748 in certain case could cause a crash.
1749 - (fixed) concatenating a function reference with a string now produces a
1750 compiler error; previously this would lead to a runtime crash.
1751 ```
1752 a.ck:17:9: error: cannot perform '+' on string and '[function]'
1753 [17] <<< " " + f.getFoo >>>;
1754 ^
1755 a.ck:17:13: error: ...(hint: to call the function, add '()' and any arguments)
1756 [17] <<< " " + f.getFoo >>>;
1757 ^
1758 ```
1759 - (fixed) an issue appending arrays to arrays for non-integer types
1760 ```
1761 float foo[0][0]; float bar[0];
1762 foo << bar;
1763 ```
1764 - (fixed) an issue with OscOut on Windows, which can crash on object cleanup
1765 due to incorrect windows-specific socket closing
1766 - (fixed; reworked) OSC dispatch for multiple OscIn clients listening on
1767 the same OSC address; the crash has bee resolved, and the OSC
1768 incoming server message dispatch has been reworked
1769 - (re-added) 'Chubgraph' has been "re-deprecated", which actually means
1770 older code that use 'Chubgraph' instead of 'Chugraph" will now work
1771 again, with the deprecation warning (previously `Chubgraph` would
1772 result in a compiler error):
1773 `deprecated: 'Chubgraph' --> use: 'Chugraph' instead`
1774 - (updated) minor improvements in compiler error reporting; more
1775 accurate position accuracy for binary operators, including =>,
1776 @=>, and =^
1777 - (updated) log level 3 (SEVERE) has been renamed to (HERALD)
1778 - (updated) improved stability on ctrl-c shutdown for real-time audio
1779 and HID management
1780 - (added) examples/effects/autotune.ck
1781 ---
1782 - (added) WebChucK support for Machine.add()/replace()/remove()/removeAll()
1783 - (added) WebChucK IDE now supports the ability to upload .ck files for
1784 Machine (@terryzfeng) https://chuck.stanford.edu/ide/
1785 - (updated) for Chugin developers, the `chuginate` tool has been
1786 modernized (spencer and ge) -- 0) chuginate updated from using
1787 python2 to python3; 1) in addition to a boilerplate C++ project for
1788 a chugin, chuginate now also generates a boilerplate NAME-test.ck
1789 ChucK program; 2) more informative comments in the boilerplate C++
1790 code; 3) updated makefiles for all platforms.
1791
1792
1793 1.5.1.2 (August 2023)
1794 =======
1795 - (updated) the long-time and often cryptic "cannot bind to port: 8888"
1796 message has been reworked: 1) an explanation has been added to the
1797 possible cause (e.g., another chuck VM is running and currently
1798 has the port open) and implication (this chuck VM will not receive
1799 OTF commands over the network); 2) the printing of this message has
1800 been moved by default to log level 2 (SYSTEM) with further information
1801 on log level 5 (INFO) UNLESS the '--loop` flag is present, which
1802 signals intention to use the VM as an OTF command listener (and the
1803 warning is more likely to be relevant information). This should
1804 hopefully reduce confusion, as well as improve automations that
1805 examine the output of chuck. (thanks to @barak for elucidating the
1806 issue!)
1807 - (added) --cmd-listener:{on|off} enables or disables listening for
1808 network OTF (on-the-fly programming) command messages (e.g., add,
1809 replace, remove, etc.). The default is ON; setting to OFF will prevent
1810 chuck VM from attempting to open network server listener. (NOTE: this
1811 option does NOT affect in-language networking, e.g., with Open Sound
1812 Control.)
1813
1814
1815 1.5.1.1 (August 2023)
1816 =======
1817 (note) this patch release fixes a number of issues related to recently added
1818 language features; it also adds some "syntactic sugar" in the form of
1819 allowing trailing commas in array initializer lists, as well as a set
1820 of range() functions for generating arrays of ranges of value.
1821
1822 - (added) trailing commas in array initializer lists are now permitted
1823 ```
1824 // an array initializer list (aka array literal), as usual
1825 [1,2,3] @=> int foo[];
1826
1827 // now also permitted: trailing comma after last element
1828 [1,2,3,] @=> int bar[];
1829 ```
1830 - (added) Std functions for generating arrays containing a range of
1831 values (nshaheed)
1832 static int[] Std.range( int stop );
1833 Return array containing the range [0,stop).
1834 static int[] Std.range( int start, int stop );
1835 Return array containing the range [start,stop).
1836 static int[] Std.range( int start, int stop, int step );
1837 Return array containing values from start up to (but not including) stop,
1838 hopping by step.
1839 - (re-added) backtick(`)-delimited strings; context: needed for FaucK
1840 (FAUST in ChucK) through the Faust chugin
1841 - (fixed) issue related to multiple empty statements (e.g., ;;;;) being
1842 incorrectly handled by the function control path analysis
1843 - (fixed) issue related to incorrect out-of-order dependencies across
1844 different files / contexts (thanks Michael Heuer for investigating)
1845 - (fixed) class member/static variables can now be accessed, as before,
1846 from anywhere in the same file, regardless of order of declaration
1847 (thanks Michael Heuer for investigating)
1848 ```
1849 Foo foo;
1850 // using val above declaration is part of language semantics
1851 // (but due to regression bug was broken in 1.5.0.8)
1852 // this should work once again
1853 5 => foo.val;
1854
1855 class Foo
1856 {
1857 int val;
1858 }
1859 ```
1860 - (updated) 'auto' type is now disallowed as a top-level class variables,
1861 instance or static; since these variables could be used from outside the class,
1862 1) this potentially leads to more intentional code and 2) currently there is no
1863 mechanism to resolve the 'auto' until type checking stage such that out-of-order
1864 access of class variables are resolved.
1865 ```
1866 // class definition
1867 class Foo
1868 {
1869 // ok
1870 for( auto x : [1,2,3] ) { <<< x >>>; }
1871 // ok
1872 fun void bar() { 4 => auto y; }
1873 // ok
1874 if( true ) { 5 => auto x; }
1875 // ok
1876 { 6 => auto x; }
1877 // not ok *** compiler should report error
1878 7 => auto m_var;
1879 // not ok *** compiler should report error
1880 8 => static auto m_var;
1881 }
1882 ```
1883 - (fixed) a memory leak associated with array declarations
1884 - (fixed) chout and cherr now properly accounts for IO redirect out of
1885 chuck; this addresses issue with miniAudicle console output, and
1886 also affects other C++ hosts embedding chuck core.
1887
1888
1889 1.5.1.0 (August 2023)
1890 =======
1891 (note) this release (1.5.1.0) updates a long-standing policy regarding
1892 `return`statements in function declarations; adds @array.sort(), a new
1893 command-line option, general bug fixes and stability improvements.
1894
1895 (note) much has been added between 1.5.0.0 and 1.5.1.0, including:
1896 * new for-each loop syntax for iterating through arrays (1.5.0.8)
1897 * enhanced and more accurate compiler error reporting; now
1898 highlights code and pinpointing error location in code (1.5.0.5)
1899 * color terminal support for CLI chuck (1.5.0.5)
1900 * expanded class library support in IO, random number generation,
1901 Machine.eval(), chugins management, and array
1902 * new features in CLI chuck, miniAudicle, WebChucK & IDE
1903 * (developer) The Great ChucK Repo Cleanup of 2023 (1.5.0.2)
1904 * (developer) streamlined c++ integration for those wishing to
1905 incorporate ChucK core into other c++ hosts (1.5.0.7)
1906 https://github.com/ccrma/chuck/tree/main/src/host-examples
1907 * (see below for more information)
1908 ===
1909 - (update) `return` statements in function definitions:
1910
1911 PREVIOUSLY: chuck does not require all control paths in non-void
1912 functions to explicitly return values -- in cases of missing `return`
1913 statements at the end of a function, ChucK implicitly sets the return
1914 value to some form of 0 or null, depending on the return type.
1915
1916 NEW: the chuck compiler now rejects non-void function definitions in
1917 which not all control paths return a value, and will print a compiler
1918 error in the form of:
1919
1920 "error: not all control paths in 'fun int f()' return a value"
1921
1922 RATIONALE: while *** this may break some existing code (apologies!) ***
1923 that assumed the previous return semantics (or forgot to return a value
1924 or accidentally declared a function as returning something when it should
1925 return `void`), we believe this change will be more beneficial in the
1926 long-term and will lead to clearer, more intentional code.
1927
1928 example:
1929 ```
1930 // as of chuck-1.5.1.0, will result in a compiler error
1931 fun int foo()
1932 {
1933 // no return
1934 }
1935 ```
1936
1937 ChucK performs syntactical analysis of function control paths:
1938 ```
1939 // this is valid code, even though the function does not end in a `return`
1940 fun float foo( int v )
1941 {
1942 if( v == 1 ) return 1;
1943 else if( v == 2 ) return 2;
1944 else return 3;
1945 }
1946
1947 // this code will result in a compiler error, since there is no `else`
1948 // and no subsequent `return`
1949 fun float foo( int v )
1950 {
1951 if( v == 1 ) return 1;
1952 else if( v == 2 ) return 2;
1953 }
1954 ```
1955 - (added) array sorting
1956 void sort()
1957 Sort the contents of the array in ascending order.
1958 ** array sorting semantics, by type **
1959 int[]: sort by value
1960 float[]: sort by value
1961 complex[]: sort by magnitude (2-norm) with phase as tie-breaker
1962 polar[]: sort by magnitude with phase as tie-breaker
1963 vec3[]: sort by magnitude with x then y then z
1964 vec4[]: sort by magnitude with x then y then z then w
1965 - (added) new examples
1966 |- examples/array/array_sort.ck
1967 - (added) IO (cherr, chout, FileIO) for complex, polar, vec3, vec3
1968 e.g., cherr <= #(1,1) <= IO.nl();
1969 e.g., chout <= #(1,1)$polar <= IO.nl();
1970 - (added) overloaded Std.getenv() variant (thanks @ynohtna)
1971 string getenv(string value)
1972 Get the value of an environment variable, returning the provided
1973 default if unset.
1974 - (added) --pid-file:<FILENAME> CLI option (thanks @ynohtna)
1975 "If this flag is specified with argument, chuck will attempt to write
1976 its process ID to the given file upon startup, and then remove that
1977 file upon shutdown. This assists external process supervision
1978 (through tools like monit,etc) for long-running installations that
1979 need auto-rebooting, instant kill switches for live performances,
1980 and other programmatic external process control."
1981 - (fixed) for-each for complex, polar, vec3, vec4 types;
1982 (e.g., `for( vec3 n : myVec3Array ) { ... }`
1983 - (fixed) compiler issue (introduced in 1.5.0.8) where a declaration in
1984 the middle of a three-part chuck statement incorrectly reports error
1985 that variable already declared (e.g., `440 => float f => osc.freq;`)
1986 - (fixed) error reporting printing for a few binary and unary operators:
1987 spork ~, typeof, sizeof, new, <-, ->
1988 - (fixed) implicit cast from 'int' to 'float' in function returns;
1989 (e.g., `fun float foo() { return 5; }`)
1990
1991
1992 1.5.0.8 (August 2023)
1993 =======
1994 (note) this release introduces a for-each control structure for more
1995 easily iterating over arrays, as well as an experimental 'auto' type.
1996 array support has also been expanded; internally, engine support has been
1997 added for a number of features in WebChucK and WebChucK IDE, including
1998 retrieving and display the chuck 'now', along with a number of critical
1999 chuck parameters; updated ChucK c++ integration
2000
2001 - (added) new 'for' control structure in this general syntax:
2002 for( VAR : ARRAY )
2003 { ... }
2004 where VAR is a declared variable of the same base type as the ARRAY,
2005 in each iteration of the for loop body, VAR will take on the value of
2006 each element in ARRAY, until the end of ARRAY is reached. For example:
2007 ```
2008 // create empty array
2009 float array[0];
2010 // append
2011 array << 1 << 2.5 << 3;
2012 // for each element 'x' in array
2013 for( float x : array )
2014 {
2015 // print the element
2016 <<< x >>>;
2017 }
2018 ```
2019 or loop over an array literal of values:
2020 ```
2021 // iterating over an array literal
2022 for( int x : [ 1, 2, 3 ] ) { <<< x >>>; }
2023 ```
2024 - (added) new examples using for-each control structure
2025 examples/array/foreach-1.ck
2026 examples/array/foreach-2.ck
2027 examples/array/foreach-3.ck
2028 examples/array/foreach-4.ck
2029 examples/array/foreach-5.ck
2030 examples/array/foreach-6.ck
2031 examples/ctrl/ctrl_foreach.ck
2032 - (added) new 'auto' type; in certain declarations, infers the actual
2033 type of a variable from context. For example:
2034 ```
2035 // 'a' will be automatically typed as 'float'
2036 1.5 => auto a;
2037 // 'arr' will be automatically typed as 'int[]'
2038 [1,2,3] @=> auto arr[];
2039 // can use in the new for-each control structure
2040 for( auto x : arr )
2041 // x is automatically typed as 'int'
2042 { <<< x >>>; }
2043 ```
2044 - (added) new examples for 'auto'
2045 examples/type/type_auto.ck
2046 examples/array/foreach-auto1.ck
2047 examples/array/foreach-auto2.ck
2048 - (added) new array operations
2049 void erase(int position)
2050 Remove element at 'position' from the array.
2051 void erase(int begin, int end)
2052 Remove element(s) in the range [begin,end).
2053 void popFront()
2054 Remove the first element of the array.
2055 See full array API reference with examples:
2056 https://chuck.stanford.edu/doc/reference/base.html#@array
2057 - (added) new array examples
2058 examples/array/array_append.ck
2059 examples/array/array_erase.ck
2060 examples/array/array_erase2.ck
2061 - (update) map-only function @array.find(string) has been renamed to
2062 @array.isInMap(string) to avoid confusion with vector
2063 - (added) error checking for out-of-order dependency issues where
2064 a function is called (or a class instantiated) that would skip
2065 a needed variable initialization; this addresses a long-standing
2066 issue that has caused much confusion because previously the issue
2067 failed but silently.
2068 ---
2069 For example, consider this 'foobar.ck' code
2070 ```
2071 // does not work here: precedes 'bar' initialization
2072 foo();
2073 // where 'bar' initializes
2074 5 => int bar;
2075 // FYI calling foo() works here: after 'bar' initializes
2076 // foo();
2077
2078 // the function definition
2079 fun void foo()
2080 {
2081 // needs 'bar' to be initialized
2082 <<< "bar:", bar >>>;
2083 }
2084 ```
2085 The new resulting compiler error:
2086 ```
2087 > chuck foobar.ck
2088 foobar.ck:4:1: error: calling 'foo()' at this point skips
2089 initialization of a needed variable:
2090 [4] foo();
2091 ^
2092 foobar.ck:7:10: error: ...(note: this skipped variable
2093 initialization is needed by 'fun void foo()')
2094 [7] 5 => int bar;
2095 ^
2096 foobar.ck:16:17: error: ...(note: this is where the variable
2097 is used within 'fun void foo()')
2098 [16] <<< "bar:", bar >>>;
2099 ^
2100 error-depend-var.ck: ...(hint: try calling 'foo()' after the
2101 variable initialization)
2102 ```
2103 ---
2104 Similar errors are reported for class definitions that reference
2105 file-top-level variables, etc.
2106 - (added) error reporting for public class definitions that access
2107 out-of-class local variables and functions; this is necessary
2108 to disallow since public classes can be instantiated from any
2109 context (file or code)
2110 - (updated, documentation) STK classes HnkyTonk and FrencHrn now
2111 properly included in the API reference, and with more examples:
2112 https://chuck.stanford.edu/doc/reference/ugens-stk.html#HnkyTonk
2113 https://chuck.stanford.edu/doc/reference/ugens-stk.html#FrencHrn
2114 - (added) new STK examples
2115 https://chuck.stanford.edu/doc/examples/stk/honkeytonk-algo1.ck
2116 https://chuck.stanford.edu/doc/examples/stk/honkeytonk-algo3.ck
2117 https://chuck.stanford.edu/doc/examples/stk/frenchrn-algo2.ck
2118 - (added) new examples for Event and SndBuf and repeat
2119 examples/event/event-extend2.ck
2120 examples/basic/doh.ck
2121 examples/ctrl/ctrl_repeat.ck
2122 - (added) error checking for public class definitions using an external
2123 file-level, non-global variable
2124 - (updated, developer) core VM code streamlined for cleaner operation
2125 regarding shreds status, remove.all, and access to these from C++;
2126 can now use a callback function to get replies from VM queue_msg()
2127 - (updated, developer) re-worked ChucK::compileFile() and
2128 ChucK::compileCode() to immediately make sporked shred ID available
2129 - (developer, added) a 4th example host code in C++ showing how to embed
2130 ChucK core as a component inside a host C++ program and get shred info
2131 example-4-shreds.cpp (working with shreds and VM msg queue)
2132 - (updated, developer) WebChucK API expansion including the following
2133 methods available in javascript that calls down to ChucK core:
2134 chuck.now()
2135 void chuck.setParamInt( string, number )
2136 void chuck.setParamFloat( string, number )
2137 void chuck.setParamString( string, string )
2138 number chuck.getParamInt( string )
2139 number chuck.getParamFloat( string )
2140 string chuck.getParamString( string )
2141 - (updated, developer) VM instruction dump (through +d flag) now
2142 prints control structures and other statements
2143 ===
2144 WebChucK/IDE-- a number of UI updates with underlying VM support:
2145 https://chuck.stanford.edu/ide/
2146 https://chuck.stanford.edu/webchuck/
2147 ===
2148 miniAudicle (macOS) critical install bug (which affects those who
2149 installed chuck-1.5.0.5 through 1.5.0.7 on macOS) is now addressed, if
2150 you are experiencing strangeness with opening CK files, try this
2151 troubleshooting recommendation:
2152 https://chuck.stanford.edu/release/images/mA-install-duplicate.jpg
2153
2154
2155 1.5.0.7 (July 2023)
2156 =======
2157 (note) this patch release contains general internal maintenance for
2158 developers; it also accompanies a critical bug fix in miniAudicle
2159
2160 - (update/fixed) now --version and --about command-line flags will
2161 correctly print all available audio drivers options, e.g.,
2162 ```
2163 chuck version: 1.5.0.7-dev (chai)
2164 macOS | 64-bit
2165 audio driver: CoreAudio
2166 http://chuck.cs.princeton.edu/
2167 http://chuck.stanford.edu/
2168 ```
2169 ```
2170 > chuck --version
2171 chuck version: 1.5.0.7 (chai)
2172 Linux | 64-bit
2173 audio drivers: ALSA | PulseAudio | JACK
2174 http://chuck.cs.princeton.edu/
2175 http://chuck.stanford.edu/
2176 ```
2177 ```
2178 > chuck --version
2179 chuck version: 1.5.0.7 (chai)
2180 Microsoft Windows | 64-bit
2181 audio drivers: ASIO | DirectSound | WASAPI
2182 http://chuck.cs.princeton.edu/
2183 http://chuck.stanford.edu/
2184 ```
2185 - (developer, updated) internal streamlining of chuck core, which is
2186 now completely decoupled from knowledge of system audio I/O;
2187 this makes chuck core cleaner, more portable, and easier to integrate
2188 as a component
2189 - (developer, added) examples hosts code in C++ showing how to embed
2190 ChucK core as a component inside a host C++ program:
2191 src/host-examples/
2192 example-1-minimal.cpp (no real-time audio)
2193 example-2-audio.cpp (real-time audio)
2194 example-3-globals.cpp (communication between C++ and ChucK)
2195 - (developer, added) chuck core can now be built without specifying
2196 additional macros, added new core build flavor: 'vanilla'
2197 ```
2198 src/core> make vanilla
2199 ```
2200 Builds all source inside src/core, no flags and no linking
2201 (The vanilla build is not intended for production but for development.)
2202 - (developer, updated) internal cleanup of platform macros:
2203 __PLATFORM_APPLE__
2204 __PLATFORM_LINUX__
2205 __PLATFORM_WINDOWS__
2206 __PLATFORM_EMSCRIPTEN__
2207 __PLATFORM_ANDROID__
2208 (with additional sub-platform macros)
2209
2210
2211 1.5.0.6 (July 2023)
2212 =======
2213 - (fixed, high priority) VM replace print crash
2214 - (updated) VM operation message colors
2215
2216
2217 1.5.0.5 (July 2023)
2218 =======
2219 - (added) color TTY support for command-line chuck is here! ChucK in
2220 color! compiler errors, probes, logs, on-the-fly programming (OTF),
2221 and other messages are now output in color, when chuck detects it is
2222 outputting to a TTY (e.g., interactive terminal).
2223 - (added) color TTY can can be explicitly enabled/disabled using
2224 --color and --no-color when running chuck on the command line
2225 - (added) color TTY support for --verbose --probe and --chugin-probe
2226 ===
2227 - (added) chuck compiler now highlights code when reporting
2228 compiler errors, pinpointing the error location
2229 ```
2230 terminal> chuck test/06-Errors/error-no-memb2.ck
2231 error-no-memb2.ck:3:5: error: class 'SinOsc' has no member 'test'
2232 [3] foo.test();
2233 ^
2234 terminal> chuck test/06-Errors/error-syntax-1.ck
2235 error-syntax-1.ck:5:12: syntax error
2236 [5] */ it @ is not ! valid => syntax!
2237 ^
2238 ```
2239 - (added) error message when given a directory name instead of .ck file
2240 ```
2241 terminal> chuck myFolder
2242 [chuck]: cannot parse file: 'myFolder' is a directory
2243 ```
2244 - (added) --disable-error-show-code command line flag to not print code
2245 highlighting when reporting compiler errors this is a compatibility flag
2246 and is mainly used for unit testing
2247 ===
2248 - (updated) Machine.eval() execution semantics
2249 *** NEW: Machine.eval() now will immediately spork and run
2250 the evaluated code as a new shred, and automatically yield the current
2251 shred to give the new shred a chance to run, without advancing time.
2252 *** PREVIOUSLY: Machine.eval() sent an ADD message, this incurs a
2253 one sample delay and does not run immediately
2254 ---
2255 For example, this one line program under the NEW behavior will print
2256 1 before "foo"; the PREVIOUS behavior would print "foo" first and will
2257 not print 1 until time is advanced by a > 0 amount
2258 ```
2259 Machine.eval( "<<< 1 >>>;" );
2260 <<< "foo" >>>;
2261 ```
2262 - (updated) examples/machine/eval.ck -- updated to reflect the above
2263 - (added) examples/machine/eval-global.ck -- shows the new Machine.eval()
2264 in action to synchronously modify a shared global variable
2265 - (added) examples/machine/version.ck -- ever wonder which chuck language
2266 version you are currently using?
2267 - (added) scientific notations for floating point
2268 <<< 123e4 >>>; // prints 1230000.000000 :(float)
2269 - (added) hexidecimal float literals
2270 <<< 0x1p-4 >>>; // prints 0.062500 :(float)
2271 - (updated) chugins with errors during query are no longer loaded,
2272 and is more clearly reported (LOG level -v3 or above)
2273 - (updated) more robust parsing of code literals
2274 - (updated, developer) repaying ancient debt -- AST tree cleanup
2275 - (updated, developer) reworking chuck_vm_debug system
2276 - (updated, developer) renaming global names CK_* or ck_* to minimize
2277 conflict when using chuck-core as component
2278
2279
2280 1.5.0.4 (June 2023)
2281 =======
2282 - (added) Math.randomize() -- implicitly randomize RNG seed
2283 ---
2284 "Randomize the seed of the random number generator (RNG), using an
2285 non-deterministic mechanism. Whereas srandom() explicitly seeds the
2286 RNG and will produce a deterministic sequence of pseudo-random
2287 numbers, randomize() "shakes things up" and causes RNG to start
2288 generating from a practically unpredicable seed. The quality of
2289 randomize() depends on the underlying implementation."
2290 - (added) examples
2291 |- math/randomize.ck -- shows Math.randomize() in action
2292 |- math/maybe.ck -- can't decide? flip a coin with maybe
2293 |- math/int-dist.ck -- simulates distribution of Math.random2()
2294 - (updated) improved RNG behavior that probably no one will notice
2295 - (fixed) assignments into a full array declaration now results in a
2296 compiler error (previously this would cause a crash). for example:
2297 === code ===
2298 [1,2] @=> int foo[2];
2299 === resulting compiler error ===
2300 cannot assign '@=>' to full array declaration...
2301 |- hint: declare right-hand-side as empty array
2302 |- e.g., int foo[]
2303 - (note) as before, assignments into a full non-array declaration still
2304 works, effectively treating the right-hand-side declaration as a
2305 reference:
2306 === code ===
2307 // effective same as new Object @=> Object @ foo;
2308 // works as before
2309 new Object @=> Object foo;
2310 - (added) --chugin-probe command-line flag to probe (and verify version)
2311 for chugins and auto-load chuck sources in the search paths; print
2312 results and any version mismatches (e.g., `chuck --chugin-probe`)
2313 also, explicited named chugins can be probed using --chugins:[FILE]
2314 (e.g., `chuck --chugin:Foo.chug --chugin:Bar.chug --chugin-probe`)
2315 - (added) chugins loading in search directories now will recursively
2316 search in subdirectories
2317 - (added, macOS + Linux) ~/.chuck/lib added to the list of default
2318 search directories; this makes it easier to locally install/organize
2319 chugins (and auto-load .ck files) without administrator privilege
2320 ---
2321 macOS
2322 /usr/local/lib/chuck
2323 /Library/Application Support/ChucK/chugins
2324 ~/Library/Application Support/ChucK/chugins
2325 ~/.chuck/lib
2326 Linux
2327 /usr/local/lib/chuck
2328 ~/.chuck/lib
2329 Windows
2330 C:\Windows\system32\ChucK
2331 C:\Program Files\ChucK\chugins
2332 C:\Program Files (x86)\ChucK\chugins
2333 C:\Users\%USERNAME%\Documents\ChucK\chugins
2334 ---
2335 - (updated) chuck --verbose output now streamlined and more effectively
2336 describes what is happening under-the-hood; e.g.,
2337 `chuck [FILENAMES] -v2` to see SYSTEM output
2338 `chuck [FILENAMES] -v5` to see INFORM output
2339 `chuck [FILENAMES] -v10` to see ALL!!! output
2340 - (updated) setting chuck log level is no longer logged below INFORM
2341 log-level
2342 - (fixed, developer) distinct notions of base type reference and array
2343 reference; for example SinOsc @ foo[] -> `SinOsc @` is base type
2344 reference and `foo[]` is array reference
2345 - (fixed, developer) instruction dumps (via +d flag) more correctly
2346 prints reference-related (@) declarations and new operations
2347
2348
2349 1.5.0.3 (June 2023)
2350 =======
2351 - (fixed) chuck audio I/O now correctly carries out extended probing
2352 for default input and output devices with differing sample rates,
2353 e.g., with some bluetooth mic/headphones whose input is limited
2354 to 24kHZ, including some AirPods.
2355 - (note) beyond the above, this release is a follow-up maintenance
2356 release; please see 1.5.0.1 and earlier release notes to see recent
2357 feature updates
2358 - (updated) examples/README now has more useful information
2359 - (updated) README.md streamlined and linux build instructions improved.
2360 - (updated, developer) `make linux-all` (or simply `make linux`) now
2361 builds all supported drivers (e.g., ALSA, PulseAudio, JACK); this is
2362 equivalent in outcome to `make linux-alsa linux-pulse linux-jack`
2363 - (updated, developer) makefile streamlined
2364
2365
2366 1.5.0.2 (June 2023)
2367 =======
2368 (note) this is primarily a maintenance release; please see 1.5.0.1
2369 and earlier release notes to see recent feature updates
2370
2371 - (fixed) (jack, linux/unix) port name now accounts for regex meta
2372 characters (thanks @gyroplast and @garyscavone)
2373 - (developer) house cleaning on the chuck git repository
2374 |- migrated large files out of 'chuck' and into a new 'chuck-media' repo
2375 |- streamlined release notes and moved to top level
2376 |- removed outdated files
2377 |- added additional information including ChucK History into README.md
2378 -- NOTE TO DEVELOPERS --
2379 The Great ChucK Repo Cleanup of 2023 has been completed! As a
2380 result, the overall chuck repo size has been reduced from 721MB to
2381 25MB. Since git works by cloning the entire repo and all history, this
2382 massively improves the speed of git clone, git submodule update --init in
2383 repos that reference chuck, and the size of each chuck clone on disk.
2384 To accomplish this, we had to "rewrite the git history," which is
2385 a semi-cataclysmic process for git repos. As a result, all existing
2386 clones of the chuck, miniAudicle, and chunity repos as well as branches
2387 and pull-requests that reference the older repo *** are now invalid ***.
2388 Please do a fresh clone of the chuck/miniAudicle/chunity repos and copy
2389 any important changes to these fresh clones before making any further
2390 changes to avoid headaches!
2391 NOTE: do not use git pull with your existing, pre-cleanup chuck
2392 repo as it will seem to work BUT will put your local repo into a messed
2393 up state. A fresh git clone is necessary before proceeding with chuck
2394 development! We believe that the cleaner, smoother ChucK dev experience
2395 will be worth this short-term inconvenience. Apologies for any confusion
2396 that may arise, and thank you for being involved in ChucK development!
2397 A "legacy" pre-cleanup fork of the repository before the Cleanup
2398 has been archived here: https://github.com/spencersalazar/chuck-legacy
2399 ---
2400 miniAudicle (added: few helpful features)
2401 - (added) menu "Help" now has items that will open websites in
2402 the default browser:
2403 "ChucK Class Library Reference..."
2404 https://chuck.stanford.edu/doc/reference/
2405 "ChucK Documentation..."
2406 https://chuck.stanford.edu/doc/
2407 "ChucK Community..."
2408 https://chuck.stanford.edu/community/
2409 - (updated) menu "Help" now correctly directs user to miniAudicle
2410 and ChucK websites:
2411 "ChucK website..."
2412 https://chuck.stanford.edu/
2413 "miniAudicle website..."
2414 https://github.com/ccrma/miniAudicle/
2415 - (added, Windows/Linux) Device Browser now has an "Audio driver"
2416 drop-down box that can select an available driver to view its
2417 associated audio devices
2418
2419
2420 1.5.0.1 (June 2023)
2421 =======
2422 - (added) WvOut support for multiple bit-depths: 16-bit signed int,
2423 24-bit signed int, 32-bit signed int, 32-bit float, 64-bit float
2424 - (added) the above can be optionally specified in new overloaded WvOut methods:
2425 string aifFilename( string value, int datatype );
2426 Open an AIFF file for writing, with datatype (e.g., IO.INT16,
2427 IO.INT24, IO.INT32, IO.FLOAT32, IO.FLOAT64).
2428 string sndFilename( string value, int datatype );
2429 Open SND file for writing, with datatype (e.g., IO.INT16, IO.INT24, IO.INT32,
2430 IO.FLOAT32, IO.FLOAT64).
2431 string wavFilename( string value, int datatype );
2432 Open WAVE file for writing, with datatype (e.g., IO.INT16, IO.INT24, IO.INT32, IO.FLOAT32, IO.FLOAT64).
2433 string matFilename( string value, int datatype );
2434 Open MATLAB file for writing; NOTE: datatype for MATLAB files can
2435 only be IO.FLOAT64.
2436 string rawFilename( string value, int datatype );
2437 Open a RAW file for writing; NOTE: datatype for raw files can
2438 only be IO.INT16
2439 - (added) examples/stk/wvout-24bit.ck shows writing to a 24-bit audio file
2440 - (added) new IO flags: IO.INT24, IO.INT64, IO.FLOAT32, IO.FLOAT64
2441 IO.UINT8, IO.SINT8, IO.UINT16, IO.SINT16, IO.UINT32, IO.SINT32,
2442 IO.UINT64, IO.SINT64
2443 - (fixed) (Windows) HID joystick input
2444 |- note: certain joystick devices (including some XBox One gamepads)
2445 are recognized but do not receive input data; a workaround is to
2446 install explicitly HID drivers for these devices; see
2447 |- https://www.snes9x.com/phpbb3/viewtopic.php?t=27510&sid=661fbbc1609037a8ec2e5f10e003f5a0
2448 |- (from above URL): open Device Manager, expand "Human Interface Devices",
2449 right click "XINPUT compatible HID device", "Update driver",
2450 "Browse my computer", "Let me pick". should be three options.
2451 Try "HID-compliant game controller". If you want to undo the
2452 change, same thing but update "HID-compliant game controller"
2453 and pick the XINPUT ***
2454 - (updated) BINARY mode for IO now able to read signed vs. unsigned integers,
2455 specified using using .readtInt( flags ), where 'flags' is one of the above
2456 IO flags; in BINARY mode, IO.INT8/16/32 now returns unsigned integers, same as
2457 IO.UINT8/16/32; to read in signed two's complement integers, use the new
2458 IO.SINT8/16/32/64 flags
2459 - (added) FileIO.readFloat( int flags) and FileIO.write( float val, int flags )
2460 these overloaded versions of readFloat() and write() respectively have a 'flags'
2461 argument to specify the kind of float (IO.FLOAT32 or IO.FLOAT64)
2462 - (added) examples/io/read-wav-raw.ck -- illustrates directly parsing a WAV file
2463 using FileIO in binary mode (author: Perry R. Cook)
2464 - (added) examples/special/scream-o-matic/ -- using LiSa + granular
2465 synthesis for a scream texture generator.
2466 - (fixed) potential-crash-on-shutdown type system issue
2467 - (fixed) CNoise incorrect bias on pink noise (thank you anthonyhawes)
2468 - (updated) on all platforms, Math.random*() functions now internally
2469 use a standard Mersenne Twister RNG (mt19937); this greatly improves
2470 the quality of RNG output, especially on Windows
2471 - (updated) on Linux, better default runtime driver selection for
2472 Jack and ALSA
2473 - (updated/developer) chuck core minimum c++ level raised to c++11;
2474 projects need compile chuck core with earlier dialect of c++ would need
2475 to modify the source code accordingly
2476 - (updated/developer) makefile for linux-jack
2477 - (updated/developer) migrated RegEx module from base chuck to chugin
2478 - (added/developer) DL Api array4 operations from chugin
2479 - (added/developer) ChuckArray4::contains_object() returns whether
2480 array4 contains object references or integers
2481 ---
2482 miniAudicle
2483 - (updated) on Windows and Linux; miniAudicle now has a "Audio driver"
2484 drop-down selection in the Preferences dialog window; this selections
2485 allows for run-time selection of different drivers, e.g., "DirectSound",
2486 "WASAPI", or "ASIO" on Windows, as well as "Jack", "Pulse", or "ALSA" on
2487 Linux
2488 - (fixed) miniAudicle linux compilation using Qt6
2489 |- FYI: needs qscintilla-qt6-devel and qscintilla-qt6)
2490 [Many thanks to Fernando Lopez-Lezcano and Nils Tonn??tt]
2491
2492
2493 =======
2494 1.5.0.0 (May 2023)
2495 =======
2496 ***************************************************************************
2497 * chuck-1.5.0.0 (chai)
2498 ***************************************************************************
2499 * significant addition: ChAI (Chuck + AI)
2500 * significant update: WebChucK (ChucK in web browser) + WebChucK IDE
2501 * also: new features, new bug fixes, and new bugs!
2502 ***************************************************************************
2503 (NOTE) WebChucK (ChucK on browsers) [beta] was released during the
2504 development of this version.
2505
2506 WebChucK IDE (program chuck on the web):
2507 https://chuck.stanford.edu/ide/
2508
2509 WebChucK landing page (including using WebChucK in your web projects)
2510 https://chuck.stanford.edu/webchuck/
2511 ---
2512 (NOTE) ChAI (ChucK + AI), first appeared in beta as part of chuck-1.4.2.0;
2513 ChAI was used in the course Music 356 / CS 470 "Music and AI" [*] at
2514 Stanford University, taught by Ge Wang and Yikai Li (TA); Many thanks to
2515 the immensely creative students of "Music and AI". The v1.0 version of the
2516 ChAI API and modules is hereby released, with new additions on the way.
2517
2518 ChAI landing page:
2519 https://chuck.stanford.edu/chai/
2520
2521 "Music and AI" (Winter 2023 Stanford University) -- taught with ChAI
2522 https://ccrma.stanford.edu/courses/356-winter-2023/
2523 ---
2524 (HISTORICAL NOTE for ChAI)
2525 Much of ChAI and its ways of thinking and doing can be foundationally
2526 attributed to the work of Dr. Rebecca Fiebrink, her landmark Ph.D. Thesis,
2527 /Real-time Human Interaction With Supervised Learning Algorithms for Music
2528 Composition and Performance/ (2011) [1], the Wekinator framework [2], her
2529 teaching at the intersections of AI, HCI, and Music [3], as well as earlier
2530 collaborations between Rebecca and Ge [4,5] including SMIRK [6] (Small Musical
2531 Information Retrieval toolKit; 2008; MARSYAS and the MIR work of Dr. George
2532 Tzanetakis; early efforts in on-the-fly learning), the unit analyzer
2533 framework [7] (2007; afford real-time audio feature extraction). All of
2534 these have directly or indirectly contributed the creation of ChAI.
2535 Additionally, ChAI benefitted from the teaching and design philosophy of
2536 Dr. Perry R. Cook (Ph.D. advisor to Rebecca, George, and Ge at Princeton,
2537 and ChucK co-author), who argued for real-time human interaction, parametric
2538 sound synthesis, and the importance of play in the design of musical tools.
2539
2540 [1] Fiebrink, Rebecca. 2011. /Real-time Human Interaction With Supervised
2541 Learning Algorithms for Music Composition and Performance/ Ph.D. Thesis.
2542 Princeton University. https://www.cs.princeton.edu/techreports/2010/891.pdf
2543 [2] http://www.wekinator.org/
2544 Wekinator | Software for real-time, interactive machine learning
2545 [3] Fiebrink, Rebecca. "Machine Learning for Musicians and Artists" MOOC
2546 https://www.kadenze.com/courses/machine-learning-for-musicians-and-artists/info
2547 [4] Fiebrink, R., G. Wang, P. R. Cook. 2008. "Foundations for On-the-fly
2548 Learning in the ChucK Programming Language." /International Computer Music
2549 Conference/. https://mcd.stanford.edu/publish/files/2008-icmc-learning.pdf
2550 [5] Fiebrink, R., G. Wang, P. R. Cook. 2008. "Support for Music Information
2551 Retrieval in the ChucK Programming Language." /International Conference
2552 on Music Information Retrieval/ (ISMIR).
2553 https://mcd.stanford.edu/publish/files/2008-ismir-proto.pdf
2554 [6] http://smirk.cs.princeton.edu/
2555 sMIRk | Small Music Information Retrieval toolKit
2556 [7] Tzanetakis, G. and P. R. Cook. 2000 "MARSYAS: A Framework for Audio
2557 Analysis." Organised Sound. 4:(3)
2558 [8] Tzanetakis, G. and P. R. Cook. 2002 "Musical Genre Classification of
2559 Audio Signals." IEEE Transaction on Speech and Audio Processing. 10(5).
2560 [9] Wang, G., R. Fiebrink, P. R. Cook. 2007. "Combining Analysis and
2561 Synthesis in the ChucK Programming Language." /International Computer
2562 Music Conference/. https://mcd.stanford.edu/publish/files/2007-icmc-uana.pdf
2563 ---
2564 - (added) Wekinator [ChAI] (thanks Rebecca Fiebrink and Yikai Li)
2565 |- A Wekinator utility that maps input vectors to output vectors,
2566 commonly used for interactive machine learning combining
2567 human-computer interaction and ML. Based on Rebecca Fiebrink's
2568 Wekinator framework.
2569 |- (inheritance) Wekinator -> Object
2570 -------------------
2571 void add();
2572 Add current inputs and outputs to the observations.
2573 void add( float[] inputs, float[] outputs );
2574 Add given inputs and outputs to the observations.
2575 void add( int output_index, float[] inputs, float[] outputs );
2576 Add given inputs and outputs to the observations for the specified output.
2577 void clear();
2578 Clear everything except the global properties.
2579 void clearAllObs();
2580 Clear all observations.
2581 void clearAllObs( int output_index );
2582 Clear all observations for the specified output.
2583 void clearObs( int lo, int hi );
2584 Clear the observations by id range.
2585 void clearObs( int output_index, int lo, int hi );
2586 Clear the observations by id range for the specified output.
2587 void deleteLastRound();
2588 Delete the last round of observations.
2589 void exportObs( string filename );
2590 Export the observations to a file.
2591 void exportObs( int output_index, string filename );
2592 Export the observations for the specified output to a file.
2593 int getAllRecordStatus();
2594 Get the record status for all outputs.
2595 int getAllRunStatus();
2596 Get the run status for all outputs.
2597 void getObs( float[][] obs );
2598 Get the observations in the Wekinator.
2599 void getObs( int output_index, float[][] obs );
2600 Get the observations for the specified output in the Wekinator.
2601 void getOutputProperty( int output_index, string property_name, int[] property_value );
2602 Get the output property of the Wekinator. See the Wekinator documentation for more information.
2603 float getOutputPropertyFloat( int output_index, int property_type, string property_name );
2604 Get the output property of the Wekinator. See the Wekinator documentation for more information.
2605 int getOutputPropertyInt( int output_index, string property_name );
2606 Get the output property of the Wekinator. See the Wekinator documentation for more information.
2607 int getOutputPropertyInt( int output_index, int property_type, string property_name );
2608 Get the output property of the Wekinator. See the Wekinator documentation for more information.
2609 int getOutputRecordStatus( int output_index );
2610 Get the record status for the specified output.
2611 int getOutputRunStatus( int output_index );
2612 Get the run status for the specified output.
2613 float getPropertyFloat( int property_type, string property_name );
2614 Get the property of the Wekinator. See the Wekinator documentation for more information.
2615 int getPropertyInt( int property_type, string property_name );
2616 Get the property of the Wekinator. See the Wekinator documentation for more information.
2617 int getRound();
2618 Get the current recording round.
2619 void importObs( string filename );
2620 Import the observations from a file.
2621 void input( float[] inputs );
2622 Set the inputs of the Wekinator.
2623 int inputDims( int n );
2624 Set the number of input dimensions to Wekinator.
2625 int inputDims();
2626 Get the number of input dimensions to Wekinator.
2627 void load( string filename );
2628 Load the Wekinator from a file.
2629 int modelType( int model_type );
2630 Set the model type of the Wekinator. Options: AI.Regression: AI.MLP, AI.LR,
2631 AI.Classification: AI.KNN, AI.SVM, AI.DT
2632 int modelType();
2633 Get the model type id of the Wekinator.
2634 string modelTypeName();
2635 Get the model type name of the Wekinator.
2636 void nextRound();
2637 Bump the recording round.
2638 int numObs();
2639 Get the number of observations in the Wekinator.
2640 int numObs( int output_index );
2641 Get the number of observations for the specified output in the Wekinator.
2642 void output( float[] outputs );
2643 Set the outputs of the Wekinator.
2644 int outputDims( int n );
2645 Set the number of output dimensions to Wekinator.
2646 int outputDims();
2647 Get the number of output dimensions to Wekinator.
2648 void predict( float[] inputs, float[] outputs );
2649 Predict outputs for the given inputs.
2650 void randomizeOutputs();
2651 Randomize the outputs of the Wekinator.
2652 void save( string filename );
2653 Save the Wekinator to a file.
2654 void setAllRecordStatus( int status );
2655 Set the record status for all outputs.
2656 void setAllRunStatus( int status );
2657 Set the run status for all outputs.
2658 void setOutputProperty( int output_index, string property_name, int property_value );
2659 Set the output property of the Wekinator. See the Wekinator documentation for more information.
2660 void setOutputProperty( int output_index, int property_type, string property_name, int property_value );
2661 Set the output property of the Wekinator. See the Wekinator documentation for more information.
2662 void setOutputProperty( int output_index, int property_type, string property_name, float property_value );
2663 Set the output property of the Wekinator. See the Wekinator documentation for more information.
2664 void setOutputProperty( int output_index, string property_name, int[] property_value );
2665 Set the output property of the Wekinator. See the Wekinator documentation for more information.
2666 void setOutputRecordStatus( int output_index, int status );
2667 Set the record status for the specified output.
2668 void setOutputRunStatus( int output_index, int status );
2669 Set the run status for the specified output.
2670 void setProperty( int property_type, string property_name, int property_value );
2671 Set the property of the Wekinator. See the Wekinator documentation for more information.
2672 void setProperty( int property_type, string property_name, float property_value );
2673 Set the property of the Wekinator. See the Wekinator documentation for more information.
2674 int taskType( int task_type );
2675 Set the task type of the Wekinator. Options: AI.Regression, AI.Classification
2676 int taskType();
2677 Get the task type id of the Wekinator.
2678 string taskTypeName();
2679 Get the task type name of the Wekinator.
2680 void train();
2681 Train models for all outputs.
2682 - (added) new examples in ai/wekinator [ChAI]
2683 |- wekinator-basic.ck -- example of basic Wekinator usage
2684 |- wekinator-custom.ck -- more extensive customization for Wekinator
2685 |- wekinator-import.ck -- example of importing observations from file
2686 - (added) MLP [ChAI] (thanks Yikai Li)
2687 |- a multilayer perceptron (MLP)--a basic artificial neural
2688 network--that maps an input layer to an output layer across a
2689 number of fully-connected hidden layers. This implementation can be
2690 trained either 1) by using one of the comprehensive .train()
2691 functions OR 2) by iteratively calling .forward() and .backprop()
2692 for each input-output observation, and using .shuffle() for each
2693 epoch. Commonly used for regression or classification.
2694 |- (inheritance) MLP -> Object
2695 -------------
2696 void backprop( float[] output, float learningRate );
2697 (Manually) backpropagate from the output layer, for a single input-output
2698 observation; compute the gradient of the loss function with respect to
2699 the weights in the network, one layer at a time.
2700 void forward( float[] input );
2701 (Manually) forward-propagate the input vector through the network.
2702 void getActivations( int layer, float[] activations );
2703 Get the activations of the given layer, after a manual .forward().
2704 void getBiases( int layer, float[] biases );
2705 Get the biases of the given layer.
2706 void getGradients( int layer, float[] gradients );
2707 Get the gradients of the given layer, after a manual .backprop().
2708 int getPropertyInt( int modelType, string key );
2709 Get int property of name 'key' for the given model type (options: AI.MLP, AI.KNN, AI.SVM).
2710 float getPropertyFloat( int modelType, string key );
2711 Get float property of name 'key' for the given model type (options: AI.MLP, AI.KNN, AI.SVM).
2712 void getWeights( int layer, float[][] weights );
2713 Get the weights of the given layer.
2714 void init( int[] unitsPerLayer );
2715 Initialize the MLP with the given number of neurons per layer, as
2716 specified in 'unitsPerLayer'.
2717 void init( int[] nodesPerLayer, int[] activationPerLayer );
2718 Initialize the MLP with the given number of nodes per layer and the given
2719 ctivation function per layer, as specified in 'activationPerLayer'
2720 (options: AI.Linear, AI.Sigmoid, AI.ReLU, AI.Tanh, or AI.Softmax).
2721 void init( int[] nodesPerLayer, int activationFunction );
2722 Initialize the MLP with the given number of nodes per layer and the given
2723 activation function for all layers (options: AI.Linear, AI.Sigmoid,
2724 I.ReLU, AI.Tanh, or AI.Softmax).
2725 int load( string filename );
2726 Load a MLP model from file.
2727 int predict( float[] input, float[] output );
2728 Predict the output layer from an input layer.
2729 void setProperty( int modelType, string key, int value );
2730 Set int property of name 'key' for the given model type (options: AI.MLP, AI.KNN, AI.SVM).
2731 void setProperty( int modelType, string key, float value );
2732 Set float property of name 'key' for the given model type (options: AI.MLP, AI.KNN, AI.SVM).
2733 int save( string filename );
2734 Save the MLP model to file.
2735 void train( float[][] inputs, float[][] outputs );
2736 Train the MLP with the given input and output observations with default
2737 learning rate=.001 and epochs=100.
2738 (Also see MLP.train(inputs,outputs,learningRate,epochs).)
2739 void train( float[][] inputs, float[][] outputs, float learningRate, int epochs );
2740 Train the MLP with the given input and output observations, the learning
2741 rate, and number of epochs.
2742 static void shuffle( float[][] X, float[][] Y );
2743 (Manually) shuffle the given input and output vectors.
2744 - (added) new examples in ai/mlp [ChAI]
2745 |- mlp.ck -- example training a basic artificial neural network
2746 |- mlp-manual.ck -- example of step-by-step training an MLP, printing each stage
2747 |- mlp-load.ck -- loading a saved MLP model from file
2748 |- mlp-save.ck -- saving the MLP model to file'
2749 |- model.txt -- an example model file
2750 - (added) Word2Vec [ChAI] (thanks Yikai Li)
2751 |- A word embeddings utility that maps words to vectors; can load a
2752 model and perform similiarity retrieval.
2753 |- (inheritance) Word2Vec -> Object
2754 ------------------
2755 int contains( string word );
2756 Query if 'word' is in the current model.
2757 int dim();
2758 Get number of dimensions for word embedding.
2759 void getSimilar( string word, int k, string[] output );
2760 Get the k most similar words to the given word.
2761 void getSimilar( float[] vec, int k, string[] output );
2762 Get the k most similar words to the given vector.
2763 void getVector( string word, float[] output );
2764 Get the vector of the given word.
2765 int load( string path );
2766 Load pre-trained word embedding model from the given path.
2767 int load( string path, int useKDTreeDim );
2768 Load pre-trained word embedding model from the given path; will use
2769 KDTree for similarity searches if the data dimension is less than
2770 or equal to 'useKDTreeDim'. Set 'useKDTreeDim' to 0 to use linear
2771 (brute force) similarity search; set 'useKDTreeDim' to less than 0
2772 to always use KDTree.
2773 void minMax( float[] mins, float[] maxs );
2774 Retrieve the minimums and maximums for each dimension.
2775 int size();
2776 Get number of words in dictionary.
2777 int useKDTree();
2778 Get whether a KDTree is used for similarity search.
2779 - (added) new examples in ai/word2vec [ChAI]
2780 |- poem-i-feel.ck -- a stream of unconsciousness poem generator
2781 |- poem-randomwalk.ck -- another stream of unconsciousness generator
2782 |- poem-spew.ck -- yet another stream of unconsciousness generator
2783 |- poem-ungenerate.ck -- interactive prompt un/de-generator
2784 (need to use command line chuck)
2785 |- word2vec-basic.ck -- demos load(), getVector(), getSimilar()
2786 |- word2vec-prompt.ck -- command line interactive tool
2787 (need to use command line chuck)
2788 - (added) Chroma unit analyzer (thanks Yikai Li)
2789 |- A unit analyzer that computes pitch chroma
2790 |- see examples/ai/features/chroma.ck
2791 - (added) Kurtosis unit analyzer (thanks Yikai Li)
2792 |- A unit analyzer that computes kurtosis
2793 |- see examples/ai/features/kurtosis.ck
2794 - (added) SFM unit analyzer (thanks Yikai Li)
2795 |- A unit analyzer that computes spetral flatness measure
2796 |- see examples/ai/features/sfm.ck
2797 - (moved) examples/analysis/features => examples/ai/features
2798 - (added) new examples in examples/ai/features
2799 |- features-combined -- real-time extraction of multiple features
2800 |- mfcc-basic.ck -- shows MFCC unit analyzer / feature extractor
2801 |- mfcc-mean.ck -- averaged MFCC feature extraction
2802 |- chroma.ck -- shows Chroma unit analyzer
2803 |- kurtosis.ck -- shows Kurtosis unit analyzer
2804 |- sfm.ck -- shows SFM (spectral flatness measure) unit analyzer
2805 - (added) PCA [ChAI] (thanks Yikai Li)
2806 |- A principle component analysis (PCA) utility, commonly used
2807 for dimensionality reduction.
2808 |- (inheritance) PCA -> Object
2809 -------------------
2810 static void reduce( float[][] input, int D, float[][] output );
2811 Dimension-reduce 'input' (NxM) to 'output' (NxD) as the projection
2812 of the input data onto its first 'D' principle components
2813 - (added) example: ai/pca/pca.ck
2814 - (reworked) KNN [ChAI] (thanks Yikai Li)
2815 |- A basic k-NN utility that searches for k nearest
2816 neighbors from a set of observations / feature
2817 vectors. (Also see KNN2. The differrence between KNN
2818 and KNN2 is that KNN does not deal with labels whereas
2819 KNN2 is designed to work with labels.)
2820 |- (inheritance) KNN -> Object
2821 -------------------
2822 void search( float[] query, int k, int[] indices );
2823 Search for the 'k' nearest neighbors of 'query' and
2824 return their corresponding indices.
2825 void search( float[] query, int k, int[] indices,
2826 float[][] observations );
2827 Search for the 'k' nearest neighbors of 'query' and
2828 return their corresponding indices and observations
2829 int train( float[][] x );
2830 Train the KNN model with the given observations 'x'
2831 void weigh( float[] weights );
2832 Set the weights for each dimension in the data.
2833 - (added) KNN2 [ChAI] (thanks Yikai Li)
2834 |- A k-NN utility that predicts probabilities of class
2835 membership based on distances from a test input to its
2836 k nearest neighbors. (Also see KNN. The differrence
2837 between KNN and KNN2 is that KNN does not deal with
2838 labels whereas KNN2 is designed to work with labels.)
2839 |- (inheritance) KNN2 -> Object
2840 -------------------
2841 int predict( float[] query, int k, float[] prob );
2842 Predict the output probabilities 'prob' given unlabeled test
2843 input 'query' based on distances to 'k' nearest neighbors.
2844 void search( float[] query, int k, int[] labels );
2845 Search for the 'k' nearest neighbors of 'query' and return
2846 their labels.
2847 void search( float[] query, int k, int[] labels, int[] indices );
2848 Search for the 'k' nearest neighbors of 'query' and return
2849 their labels and indices.
2850 void search( float[] query, int k, int[] labels, int[] indices,
2851 float[][] observations);
2852 Search for the 'k' nearest neighbors of 'query' and return
2853 their labels, indices, and observations.
2854 int train( float[][] x, int[] labels );
2855 Train the KNN model with the given samples 'x' and
2856 corresponding labels.
2857 void weigh( float[] weights );
2858 Set the weights for each dimension in the data.
2859 - (renamed) unit analyzer pilF is now UnFlip; pilF deprecated
2860 - (added) example: ai/knn/knn-search.ck
2861 - (added) example: ai/knn/knn2-classify.ck
2862 - (added) example: ai/knn/knn2-search.ck
2863 --------------
2864 - (updated) real-time audio backend has been updated
2865 *** thank you Dana Batali ***
2866 - (added) all platform: driver support
2867 - (added) Windows: ASIO, WASAPI, DirectSound
2868 - (added) linux: now can build multiple drivers into single executable
2869 > make linux-pulse linux-alsa linux-jack
2870 - (fixed) macOS bluetooth/Apple AirPods audio input device error;
2871 |- CONTEXT: Apple AirPods (and a number of other Bluetooth headphones)
2872 show up in macOS as its own audio input device and supports only one
2873 sample rate (24K in the case of AirPods). ChucK, like most full-duplex
2874 audio software, requires matching sample rates for audio input and
2875 output. By default, it would try to initialize with a sample rate of
2876 44.1K or 48K and would fail initialization due to the rate mismatch
2877 with the AirPods.
2878 |- FIX: ChucK now has additional logic when initializing default audio
2879 devices, and will automatically try to match with a different input
2880 devices when needed.
2881 - (fixed) VM timing issue when real-time audio initialization switches to
2882 a different sample rate when the requested/default sample rate is not
2883 available
2884 - (added) new default duration 'eon' == day * 365.256363004 * 1000000000.0 (thanks nshaheed)
2885 example: eon => now; // a long long time from now
2886 - (added) new static method for all Objects
2887 Type Object.typeOf()
2888 Get the type of this object (or class).
2889 - (added) new Type type
2890 |- A representation of a ChucK type.
2891 |- (inheritance) Type -> Object
2892 --------------
2893 int arrayDepth();
2894 Return the number of array dimensions associated with this Type (e.g., 'int[][]' has 2; 'int' has 0).
2895 Type[] children();
2896 Retrieve this Type's children Types.
2897 int equals( Type another );
2898 Return whether this Type is same as 'another'.
2899 int isArray();
2900 Return whether this Type is some kind of an array.
2901 int isPrimitive();
2902 Return whether this is a primitive Type (e.g., 'int' and 'dur' are primitives types; 'Object' and its children Types are not).
2903 int isa( Type another );
2904 Return whether this Type is a kind of 'another'.
2905 int isa( string another );
2906 Return whether this Type is a kind of 'another'.
2907 string name();
2908 Return the name of this Type.
2909 string baseName();
2910 Return the base name of this Type. The base of name of an array Type is the type without the array dimensions (e.g., base name of 'int[][]' is 'int')
2911 string origin();
2912 Return a string describing where this Type was defined (e.g., "builtin", "chugin", "cklib", "user").
2913 Type parent();
2914 Return this Type's parent Type; returns null if this Type is 'Object'.
2915 static Type find( string typeName );
2916 Find and return the Type associated with 'typeName'; returns null if no Types currently in the VM with that name.
2917 static Type[] getTypes( int attributes, int origins );
2918 Retrieve all top-level Types in the ChucK runtime type system that fit the attributes and origins flags. Flags that can bitwise-OR'ed for attributes: Type.ATTRIB_OBJECT, Type.ATTRIB_PRIMITIVE, TYPE_SPECIAL -- and for origins: Type.ORIGIN_BUILTIN, Type.ORIGIN_CHUGIN, Type.ORIGIN_CKLIB, Type.ORIGIN_USER.
2919 static Type[] getTypes();
2920 Retrieves all top-level Types currently in the type system.
2921 static Type of( Object obj );
2922 Return the Type of 'obj'
2923 static Type of( int val );
2924 Return the Type associated with 'int'.
2925 static Type of( float val );
2926 Return the Type associated with 'float'.
2927 static Type of( time val );
2928 Return the Type associated with 'time'.
2929 static Type of( dur val );
2930 Return the Type associated with 'dur'.
2931 static Type of( complex val );
2932 Return the Type associated with 'complex'.
2933 static Type of( polar val );
2934 Return the Type associated with 'polar'.
2935 static Type of( vec3 val );
2936 Return the Type associated with 'vec3'.
2937 static Type of( vec4 val );
2938 Return the Type associated with 'vec4'.
2939 --------------
2940 static int ATTRIB_OBJECT;
2941 Attribute bit for non-primitive Object types.
2942 static int ATTRIB_PRIMITIVE;
2943 Attribute bit for primitive types.
2944 static int ATTRIB_SPECIAL;
2945 Attribute bit for special types (e.g., @array and @function).
2946 static int ORIGIN_BUILTIN;
2947 Origin bit for "builtin".
2948 static int ORIGIN_CHUGIN;
2949 Origin bit for "chugin".
2950 static int ORIGIN_CKLIB;
2951 Origin bit for "cklib".
2952 static int ORIGIN_USER;
2953 Origin bit for "user".
2954 - (added) new examples in examples/type
2955 |- polymorph.ck -- an example of polymorphism in ChucK
2956 |- type_query.ck -- querying for a list of types from the ChucK runtime type system
2957 |- type_type.ck -- example showing some functionalities of the Type type
2958 ---------------
2959 - (added) new CKDoc class
2960 |- A ChucK documentation generator. Based on Spencer Salazar's ckdoc utility.
2961 |- (inheritance) CKDoc -> Object
2962 ---------------
2963 void addGroup( Type[] types, string name, string shortName, string description );
2964 Add a group of types to be documented, including group 'name', a 'shortName' to be used for any files, and a group 'description'.
2965 void addGroup( string[] typeNames, string name, string shortName, string description );
2966 Add a group of types (by type name) to be documented, including group 'name', a 'shortName' to be used for any files, and a group 'description'.
2967 void clear();
2968 Clear all added groups.
2969 string examplesRoot( string path );
2970 Set the examples directory root path; returns what was set.
2971 string examplesRoot();
2972 Get the current examples directory root path.
2973 string genCSS();
2974 Generate CSS; return as string.
2975 void genGroups( string[] results );
2976 Generate documentation for all added groups, return each in a separate entry
2977 string genIndex( string indexTitle );
2978 Generate top-level index; return as string.
2979 string genType( Type type );
2980 Generate documentation for a single Type.
2981 string genType( string typeName );
2982 Generate documentation for a single Type (by name).
2983 int numGroups();
2984 Get the number of groups added.
2985 int outputFormat( int which );
2986 Set which output format to use; see CKDoc.HTML, CKDoc.TEXT, CKDoc.MARKDOWN, CKDoc.JSON.
2987 int outputFormat();
2988 Set which output format is selected; see CKDoc.HTML, CKDoc.TEXT, CKDoc.MARKDOWN, CKDoc.JSON.
2989 int outputToDir( string path, string indexTitle );
2990 Generate everything as files into the output directory.
2991 static int HTML;
2992 Output HTML format.
2993 static int JSON;
2994 Output JSON format (not implemented).
2995 static int MARKDOWN;
2996 Output MARKDOWN format (not implemented).
2997 static int NONE;
2998 No output format.
2999 static int TEXT;
3000 Output TEXT format (not implemented).
3001 ---------------
3002 - (added/updated) now ChucK API reference documentation is generated from
3003 the type system using CKDoc, ensuring alignment between documention
3004 and type system.
3005 - (added) array.zero()
3006 |- zero out the contents of the array; size is unchanged.
3007 - (added) negative indexing for arrays (thanks nshaheed)
3008 |- [1,2,3,4] @=> int a[]; a[-1]; // evaluates to 4
3009 - (added) array.shuffle()
3010 |- shuffle the contents of the array.
3011 - (added) example: array/array_negative.ck
3012 - (added) example: array/array_shuffle.ck
3013 - (added) example: array/array_zero.ck
3014 - (updated) LiSa (all channel variants) internal restructure to allow
3015 for more flexible usage patterns | also # voices defaults to 16
3016 - (added) example: special/LiSa-stereo.ck
3017 - (added) Math functions
3018 float map( float value, float x1, float y1,
3019 float x2, float y2 );
3020 Map 'value' from range [x1,y1] into range [x2,y2]; 'value'
3021 can be outside range[x1,y1].
3022 float map2( float value, float x1, float y1,
3023 float x2, float y2 );
3024 Map 'value' from range [x1,y1] into range [x2,y2]; 'value'
3025 will be clamped to [x1,y1] if outside range.
3026 (Math.remap() is the same as Math.map2())
3027 float clampi( int value, int min, int max );
3028 Clamp integer 'value' to range [min, max].
3029 float clampf( float value, float min, float max );
3030 Clamp float 'value' to range [min, max].
3031 float cossim( float[] a[], float[] b[] );
3032 Compute the cosine similarity between arrays a and b.
3033 float cossim( vec3 a, vec3 b );
3034 Compute the cosine similarity between 3D vectors a and b.
3035 float cossim( vec4 a, vec4 b );
3036 Compute the cosine similarity between 4D vectors a and b.
3037 float euclidean( float[] a[], float[] b[] );
3038 Compute the euclidean distance between arrays a and b.
3039 float euclidean( vec3 a, vec3 b );
3040 Compute the euclidean distance between 3D vectors a and b.
3041 float euclidean( vec4 a, vec4 b );
3042 Compute the euclidean distance between 4D vectors a and b.
3043 - (added) examples/math
3044 |- map.ck -- shows mapping using Math.map() and Math.map2()
3045 |- math-help.ck -- just prints Math API using Math.help();
3046 - (added) Machine functions
3047 int eval( string code );
3048 Evaluate a string as ChucK code, compiling it and spork it as a child
3049 shred of the current shred.
3050 int eval( string code, string args );
3051 Evaluate a string as ChucK code, with optional arguments (bundled in
3052 'args' as "ARG1:ARG2:...", compiling it and spork it as a child shred of
3053 the current shred.
3054 int eval( string code, string args, int count );
3055 Evaluate a string as ChucK code, with optional arguments (bundled in
3056 'args' as "ARG1:ARG2:...", compiling it and sporking 'count' instances as
3057 a child shreds of the current shred.
3058 int loglevel( int level );
3059 Set log level
3060 |- 0: NONE
3061 |- 1: CORE
3062 |- 2: SYSTEM
3063 |- 3: SEVERE
3064 |- 4: WARNING
3065 |- 5: INFO
3066 |- 6: CONFIG
3067 |- 7: FINE
3068 |- 8: FINER
3069 |- 9: FINEST
3070 |- 10: ALL
3071 static int loglevel();
3072 Get log level
3073 - (added) examples in machine
3074 |- eval.ck -- demonstrate Machine.eval(), noting its behavior wrt
3075 to schreduler
3076 - (modified) MFCC -- added (back) a missing and crucial log10() to
3077 to the MFCC computation and updated implementation; output
3078 range magnitudes now in the hundreds
3079 - (enhanced) overloaded functions with non-matching return types now
3080 provide additional information in the compiler error message
3081 - (fixed) overloaded functions with identical arguments now will
3082 correctly result in a compiler error
3083 - (fixed) attempting to assign to reserved/const values (e.g., 'day')
3084 now will correctly result in a compiler error
3085 - (fixed, hopefully) no more LPF and HPF filter explosion for small
3086 values of .freq (<.2), large values of .freq (>Nyquist frequency),
3087 or Q < 1 with high frequency below Nyquist; now LPF.freq and HPF .Q
3088 are internally clamped to values between [1,SRATE/2];
3089 - (fixed) SndBuf crash in cases where file size is integer multiple
3090 of .chunks and .chunks > 0 and reaching the end of the file
3091 - (fixed) SndBuf.valueAt(n) for n == file size in samples now returns 0;
3092 previously this special case returned .valueAt(n-1)
3093 - (fixed) SndBuf assertation failure if SndBuf.chunks was set AFTER
3094 loading a file; now .chunks will ONLY take effect for the next
3095 SndBuf.read
3096 - (renamed) int LiSa.loop0(int) and int LiSa.loop0(); previously these
3097 were incorrectly overloaded as "loop()" and was unavailable
3098 - (fixed) FileIO.seek() previously fails if EOF is reached in reading
3099 a file; FileIO.seek() now functions after EOF is reached.
3100 - (fixed) FileIO.more() now looks ahead for EOF
3101 - (updated) all cherr prints now flushes immediately
3102 - (updated) IO.newline() or a solitary "\n" now automatically flushes
3103 chout
3104 - (added) examples in examples/io
3105 |- read-byte.ck -- reading raw bytes from file in binary mode
3106 |- read-float.ck -- reading floats from file (in ASCII mode)
3107 |- seek.ck -- shows FileIO.seek usage for rewind a file read
3108 |- write-byte.ck -- writing raw bytes to file in binary mode
3109 - (added) examples in examples/events
3110 |- event-x-bpm-1.ck -- example using custom Events to synchronize
3111 multiple shreds to a common clock
3112 |- event-x-bpm-2.ck -- same as event-x-bpm-2.ck but using arrays
3113 - (added) absyn tree printing for instruction dumping abysn2str()
3114 - (added) Machine.refcount() and refcount printing for object references
3115 - (fixed) Stk WvIn, WvOut, and VoicForm handling of chuck strings,
3116 addressing related instability and averting potential crashes
3117 - (fixed) Stk WvOut for MAT (MATLAB) format; previously closing a
3118 MAT file in WvOut results in an assertation failure; this has been
3119 addressed.
3120 - (fixed) WvOut and WaveLoop playback for non-16bit data formats;
3121 previously was normalizing to 16-bit signed int, regardless of
3122 data format
3123 - (updated and fixed) memory system upgrade (part 1); scope-sensitive
3124 cleanup for each return statement; clarified reference counting
3125 semantics; function argument release for builtin functions; improved
3126 post-function call object cleanup; auto-reference-increment on
3127 returned objects from all builtin/imported functions;
3128 - (updated) built-in abstract classes FM, StkInstrmnt, BLT, and
3129 FilterBasic, when used directly, issues a WARNING level log
3130 message in their respective synthesis tick functions (set log
3131 level in chuck or miniAudicle to WARNING or higher to enable
3132 printing), and allows program to procede silently. (Example that
3133 previously crashed: 'FM fm => dac; 1::second => now;')
3134 - (developer) Chugin API clients in C++ now able to create
3135 strings and access member variables (thanks Nick Shaheed!)
3136 - (developer) Chugin API query now able to add examples using
3137 QUERY->add_ex(...)
3138
3139
3140 01.4.2.0 (January 2023)
3141 ---
3142 (NOTE) chuck-1.4.2.0 marks a beginning (in BETA) of chAI => ChucK for AI
3143 -- a set of functionalities for interactive machine learning and artful,
3144 humanistic design of music and artificial intelligence; it coincides with
3145 the new "Music and AI" course at Stanford University, designed and taught
3146 by Ge Wang with Ph.D. candidate Yikai Li.
3147
3148 ---
3149 - (added) MFCC unit analyzer (thanks Yikai Li)
3150 |- A unit analyzer that computes Mel-frequency Cepstral Coefficients
3151 (MFCCs), and outputs a vector of coefficients.
3152 |- (inheritance) MFCC -> UAna -> UGen -> Object
3153 - (added) examples: analysis/features/mfcc.ck
3154 - (added) all associative arrays now have a new method [thanks nshaheed]
3155 void getKeys( string[] keys );
3156 Return all keys found in associative array in keys
3157 - (added) Machine.realtime(): "return true if the shred is in realtime
3158 mode, false if it's in silent mode (i.e. --silent is enabled)"
3159 -- thanks nshaheed --
3160 - (added) Machine.silent(): "return false if the shred is in realtime
3161 mode, true if it's in silent mode (i.e. --silent is enabled)"
3162 -- thanks nshaheed --
3163 - (fixed) .help() now more accurately prints ("unit analyzer")
3164 for UAna types
3165 - (fixed) multi-variable array declaration; the following should
3166 now work:
3167 int x[1], y[2];
3168 int x, y[3];
3169 - (fixed) resolved an issue with multi-dimensional arrays pre-maturely
3170 releasing internal type data structure -- e.g., causing an assertion
3171 failure in the second function call
3172 fun void test()
3173 {
3174 [ [1,2,3], [1,2,3] ] @=> int arr[][];
3175 }
3176 test();
3177 test();
3178 - (fixed) internal array storage now (more) correctly differentiate
3179 between int and float, on systems where the two are the same size
3180 (e.g., both 32-bit or both 64-bit)
3181 - (fixed) command line chuck: when opening default input audio device
3182 (e.g., Microphone), check for mono devices (the case on some MacOS
3183 systems) now happens earlier, before searching other 2-channel input
3184 audio devices; this preempts chuck using virtual audio input devices
3185 such as ZoomAudioDevice as the input device
3186 - (dev) added test examples in 01-Basic related to multi-var array
3187 declarations
3188 - (dev) extraneous white spaces removed throughout src/core
3189 ** thank you nshaheed for this soul-restoring measure **
3190 - (dev) all tabs replaced with 4 spaces, now consistent across project
3191 ** thank you nshaheed for this soul-restoring measure **
3192 - (dev) nshaheed: linux makefiles now correctly inserts Debug (-g)
3193 build flag when Debug build is enabled (default builds for Release)
3194 -----------------------
3195 (BETA) chAI-related additions: please note this is in Beta, meaning that
3196 APIs may change in the near future; many additions are in the works
3197 -----------------------
3198 - (added) SVM object (thanks Yikai Li)
3199 |- a support vector machine (SVM) utility trains a model and
3200 predicts output based on new input
3201 |- (inheritance) SVM -> Object
3202 |- methods:
3203 int predict( float[] x, float[] y );
3204 Predict the output 'y' given the input 'x'.
3205 int train( float[][] x, float[][] y );
3206 Train the SVM model with the given samples 'x' and 'y'.
3207 - (added) KNN object (thanks Yikai Li)
3208 |- A k-nearest neighbor (KNN) utility that predicts the output of
3209 a given input based on the training data
3210 |- (inheritance) KNN -> Object
3211 |- methods:
3212 int predict( int k, float[] x, float[] prob );
3213 Predict the output probabilities (in 'prob') given new input
3214 'x' based on 'k' nearing neighbors.
3215 int train( float[][] x, int[] y );
3216 Train the KNN model with the given samples 'x' and
3217 corresponding labels 'y'.
3218 - (added) HMM object (thanks Yikai Li)
3219 |- A hidden markov model (HMM) utility that generates a sequence
3220 of observations based on the training data
3221 |- (inheritance) SVM -> Object
3222 |- methods:
3223 int load( float[] initiailDistribution,
3224 float[][] transitionMatrix,
3225 float[][] emissionMatrix );
3226 Initialize the HMM model with the given initial state
3227 distribution, transition matrix, and emission matrix.
3228 int train( int numStates, int numEmissions,
3229 int[] observations );
3230 Train the HMM model with the given observations.
3231 int generate( int length, int[] output );
3232 Generate a sequence of observations of the given length.
3233 - (added) basic usage examples in examples/ai/ folder
3234 |- also can use the built-in help() function
3235 KNN.help(); // this will print KNN type info and API
3236 SVM.help(); // this will print SVM type info and API
3237 HMM.help(); // this will print HMM type info and API
3238 -----------------------
3239 (BETA) end chAI additions
3240 -----------------------
3241
3242
3243 1.4.1.1 (May 2022)
3244 ---
3245 - (added) native support for Apple Silicon (e.g., M1) as intel/apple
3246 universal binary; *significant* performance throughput observed
3247 running chuck natively on Apple Silicon
3248 - (modified) building from source, on MacOS command line:
3249 > make mac (compile for current architecture: arm64/x86_64)
3250 > make mac-ub (compile universal binary: arm64+x86_64)
3251 > lipo -archs ./chuck (checks architectures)
3252 > ./chuck --about (prints out compiled platform...
3253 ...and if compiled as universal binary):
3254 ---
3255 chuck version: 1.4.1.1 (numchucks)
3256 macOS : 64-bit [universal binary]
3257 ---
3258 > make osx (deprecated; use 'make mac' or 'make mac-ub')
3259 - (updated, pre-built executables, MacOS) both command line chuck and
3260 miniAudicle are now built as universal binaries to support both
3261 intel(x86_64) and Apple silicion/M1(arm64) architectures
3262 - (updated, pre-built executables, MacOS) all packaged chugins are
3263 now also built as universal binaries
3264 - (added) Math.equal( float x, float y )
3265 returns whether two floats are considered equivalent
3266 - (added) array.popOut( int index )
3267 removes an array element by index [thanks chamington and nshaheed]
3268 - (added) OscOut.send() error reporting now includes the intended
3269 recipient (hostname:port)
3270 - (added) examples/hid/gametra.ck
3271 boilerplate gametrak code
3272 - (moved) examples/osc/1-send-recv/
3273 moved s.ck and r.ck (sender and receiver) examples here
3274 - (added) examples/osc/2-multi-msg/
3275 examples for interleaving two OSC message types at different rates
3276 - (added) examples/osc/3-one2many/
3277 examples showing one sender to many receivers
3278 - (added) examples/osc/4-multicast/
3279 examples showing one sender using multicast to broadcast
3280 - (added) examples/stk/hevymetl-dance-now.ck
3281 example of power chords in sequence
3282 - (fixed) fixed Lisa-load.ck to correct load sound file [thanks nshaheed]
3283 - (fixed) CK_STDCERR now flushes on all output
3284 - (fixed) error message display for MidiFileIn (STK)
3285 - (fixed) array literal assignment now works as expected when
3286 common ancestor type is child type of the RHS type; [thanks nshaheed]
3287 --- for example ---
3288 [ new SinOsc ] @=> Osc arr[]; // previously this results in a
3289 // incompatible type error, although
3290 // Osc is a superclass SinOsc
3291 -------------------
3292 - (continuous integration) -- updated to use 'make mac'
3293 - (test) -- modified 01-Basic/86.ck; disabled 87.ck due to
3294 Math.isnan() behaving differently on Apple Silicon;
3295 modified 03-Modules/std01.ck to handled floating point equivalence
3296 differently; also prompted adding Math.equal(); modified
3297 05-Global/86.ck to disable Math.isnan()
3298 - (updated, internal) integer types update for smoother Windows 64 bit
3299 - (noted) synchronization point for Chunity version x.x.x
3300 - (added) added to VERSIONS (this file) release dates since initial
3301 release in 2004
3302
3303
3304 1.4.1.0 (June 2021)
3305 ---
3306 (NOTE) chuck-1.4.1.0 is the first significant release resulting from a
3307 coordinated team effort to update and improve ChucK for teaching and
3308 research. In April 2021, Perry and Ge led a ChucK "Global
3309 Repair-a-thon", which identified issues and put forth a new Development
3310 Roadmap. The ChucK dev team will follow this roadmap for updates, new
3311 features, and new ChucK mediums (e.g., Chunity, WebChucK, FaucK,
3312 ChucKTrip, and more). Many people were involved in this significant
3313 release, including Jack Atherton, Mike Mulshine, Matt Wright, Rebecca
3314 Fiebrink, Dan Trueman, Lloyd May, Mark Cerqueira, Mario Buoninfante,
3315 Perry Cook, Spencer Salazar, and Ge Wang. Many thanks to everyone who
3316 contributed. Happy ChucKing!
3317 ---
3318 - (added) static Object.help();
3319 All ChucK objects (i.e., all non-primitive types) can now invoke
3320 .help(), which will dynamically generate and print to console
3321 the description and inheritance hierarchy of the underlying type,
3322 as well as the available functions at runtime. This can be called
3323 on any object instance or on any class (without an instance):
3324 // any object instance
3325 SinOsc foo;
3326 // print to console info about its underlying type
3327 foo.help();
3328 (OR)
3329 // call help() from any class (identical output as above)
3330 SinOsc.help();
3331 Intended to be a quick runtime reference / learning tool!
3332 - (added) examples/help.ck -- show .help() in action
3333 - (added) examples/deep/chant.ck (by Perry Cook, 2006) -- a chant singing
3334 synthesizer that makes use of ChucK's strongly-time and concurrent
3335 programming features.
3336 - (added) new Multi-channel LiSa UGens! (LiSa10 was already present)
3337 LiSa2 (stereo)
3338 LiSa4 (quad),
3339 LiSa6 (6-channel; laptop orchestra edition!)
3340 LiSa8 (8-channel),
3341 LiSa16 (16-channel)
3342 - (fixed) LiSa playback bug; voice panning now handles the mono case;
3343 previously was silencing voice playback
3344 - (added) new STK set/get access functions in FM:
3345 float op4Feedback( float value );
3346 Set operator 4 feedback.
3347 float op4Feedback();
3348 Get operator 4 feedback.
3349 float opADSR( int opNum, float a, float d, float s, float r );
3350 Set operator ADSR: attack, decay, sustain, release.
3351 float opAM( int opNum, float value );
3352 Set operator amplitude modulation.
3353 float opAM( int opNum );
3354 Get operator amplitude modulation.
3355 float opGain( int opNum, float value );
3356 Set operator gain.
3357 float opGain( int opNum );
3358 Get gperator gain.
3359 float opRatio( int opNum, float ratio );
3360 Set operator frequency ratio.
3361 float opRatio( int opNum );
3362 Get operator frequency ratio.
3363 float opWave( int opNum, int wave );
3364 Set operator waveform [1-8].
3365 - (added) new Synthesis Toolkit (STK) FM instruments from Perry!
3366 HnkyTonk: STK-style Honkey Tonk Piano FM synthesis instrument.
3367 (aka, Algorithm 1 of the Yamaha TX81Z DX11 FM synthesizer)
3368 FrencHrn: STK-style French Horn FM synthesis instrument.
3369 (aka, Algorithm 2 of the Yamaha TX81Z DX11 FM synthesizer)
3370 KrstlChr: STK-style "Crystal Choir" FM synthesis instrument.
3371 (aka, Algorithm 7 of the Yamaha TX81Z DX11 FM synthesizer)
3372 *** for each of these, try using the new .help() to examine its
3373 documentation and interface; e.g., HnkyTonk.help(); ***
3374 - (added) new Moog function:
3375 float filterStartFreq( float freq );
3376 Set filter starting frequency.
3377 float filterStartFreq();
3378 Get filter starting frequency.
3379 - (added) new STK examples:
3380 examples/stk/frenchrn-algo2.ck -- FM French Horn demo
3381 examples/stk/honkeytonk-algo1.ck -- fun with FM Honkey Tonk
3382 examples/stk/krstlchr-algo7.ck -- heavenly FM Kristal Choir
3383 examples/stk/hevymetl-acoustic-algo3.ck -- FM HevyMetl => Nylon Guitar
3384 examples/stk/hevymetl-trumpet-algo3.ck -- FM HevyMetl => Trumpet
3385 examples/stk/rhodey-song.ck -- a lovely little number
3386 - (updated) tweaks to a number of STK UGens, which may result in audio
3387 changes; the affected UGens are:
3388 BandedWG, BeeThree, FMVoices, HevyMetl, PercFlut, Rhodey,
3389 TubeBell, Wurley
3390 - (fixed) issue in PluckTwo in computing delay length; this affects
3391 the tuning of various plucked string models, including Mandolin.
3392 - (added) .frames() for SndBuf and SndBuf2; returns the number of sample
3393 frames in the loaded sound file. This is identical in behavior to
3394 .samples() -- but for stereo+, .frames() is semanitically more
3395 accurate than .samples().
3396 - (added) "global" declarations for int, float, string, Object, UGen, Event;
3397 this can be used in-language across ChucK files (each file must first
3398 "declare" the global value before using it). This also support usage from
3399 external hosts such as Chunity. (thanks to Jack Atherton for this work!)
3400 - (added) constant power panning (as controlled by the .pan parameter)
3401 for all UGen_Stereo--including Pan2, stereo dac, stereo adc; this is
3402 controllable using the new .panType parameter. By default, constant
3403 power panning is NOT enabled for dac and adc, whose panning behavior
3404 is unchanged (panType==0) and favors a kind of unity-gain-preserving
3405 but perceptually suspect panning scheme. By contrast, Pan2 will default
3406 to use constant power panning (panType==1). This change will alter the
3407 effect of any existing code that uses Pan2. Specifically, it will
3408 introduce a ~3 dB reduction in the output Pan2 (it is possible to
3409 restore the previous behavior by explicitly setting .panType to 0).
3410 This ~3 dB reduction corresponds to the equal-powered amplitude value
3411 when pan is at center (pan=0). Mathematically, the reduction amount
3412 can be calculated using Std.lintodb(Math.cos(pi/4))
3413 [To hear this new behavior, check out examples/stereo/stereo_noise.ck]
3414 - (BEHAVIOR CHANGED) clearly separated array.size() and array.capacity();
3415 for historical/compatibility reasons, array.cap() is the same as
3416 array.size() and generally should be avoided in favor of either .size()
3417 or .capacity()
3418 - (BEHAVIOR CHANGED): internally, all ChucK static functions are now
3419 passed an extra parameter (Chuck_Type * TYPE) as a pointer to the
3420 base type/class. This will affect Chugins, which should be updated/
3421 rebuilt with the latest headers.
3422 - (BEHAVIOR CHANGED): when connecting two multi-channel UGen's (both
3423 are at least stereo), say LHS => RHS, if LHS channels < RHS channels,
3424 the channels will be connected one-by-one up to the LHS channel count;
3425 previously, the LHS channels will be automatically repeated to connect
3426 to the RHS channels that have no corresponding LHS channels. This
3427 behavior can still be achieved by manually connecting the individual
3428 channels of LHS and and RHS through LHS.chan(n) and RHS.chan(n).
3429 - (fixed) resolved a bug with SndBuf not playing when .rate < 0 and while
3430 .pos beyond the end
3431 - (fixed) resolved a bug with SndBuf where it could output DC when .rate < 0
3432 after it reaches the beginning of the file (e.g., if the first sample is
3433 non-zero)
3434 - (fixed) resolved a bug in ADSR when sustain is set to 0 and audio stops,
3435 .releaseTime return NaN and basically the world ends (thanks to
3436 mariobuoninfante for help in addressing this)
3437 - (fixed) reset Gen10 table to allow add/remove partials; thanks to
3438 mariobuoninfant
3439 - (fixed) updated MidiOut and removed check in order to allow messages
3440 of size less than or greater than 3 bytes; thanks to mariobuoninfante
3441 for this issue report on Ubuntu Studio 64-bit; this fix addresses
3442 the sending of MIDI clock, stop, continue, and SysEx -- also thank
3443 you mariobuoninfante for the fix.
3444 - (fixed) ChucK shell can now be exited either by the "exit" command
3445 or through ctrl-c. Previously. ctrl-c sometimes failed to end the
3446 the program due to logic in the global cleanup function; this has
3447 been addressed.
3448 - (fixed) addressed an issue where Chugins were being loaded twice.
3449 - (fixed) the --chugin-load:off option is now correclty taken into
3450 account and will appropriately result in no Chugins being loaded.
3451 - (deprecated) Chubgraph => (new) Chugraph;
3452 Chubgraph will continue to function, with a deprecation warning.
3453 - (documentation) updated embedded documentation text for all statically
3454 linked UGens and libraries.
3455 - (documentation) brought examples in alignment between distribution
3456 and the online examples collection; many examples updated for clarity
3457 and utility
3458 http://chuck.stanford.edu/doc/examples
3459 http://chuck.cs.princeton.edu/doc/examples
3460 - (internal/refactor) the "Mega Merge 2021" integrates a long-standing
3461 branch since REFACTOR-2017 that includes support for globals and was
3462 the basis for Chunity. Future Chunity releases will align with mainline
3463 ChucK language features. (thanks to Jack Atherton for several years of
3464 laying the groundwork and for ChucK in Chunity!)
3465 - (internal/developement) added m_started flag to the ChucK class to avoid
3466 a strange (but mostly harmless) condition when the virtual machine is
3467 shutting down and ChucK::run() attempt to call ChucK::start()
3468 - (internal/development) Thanks to Mark Cerqueira -- migrated from old
3469 Travis CI (continuous integration testing) to GHA (GitHub Actions).
3470
3471
3472 1.4.0.1 (May 2020)
3473 ---
3474 - (fixed) when opening audio input devices where the default
3475 device has insufficient chanels (e.g., MacOS input is mono
3476 by default), logic has been added to also match sample rates
3477 when searching for alternate audio input devices; additional
3478 logic added in the specific case of mono input devices to
3479 simulate stereo, to fulfill the standard request for stereo
3480 input.
3481 - (fixed) added check to prevent crash in rare situations involving
3482 self-join when deleting XThread in background. (git PR #103)
3483 - (fixed) by stuntgoat@github -- right-recursion in chuck parser
3484 can exhaust memory in larger chuck files; this has been updated
3485 to use left recursion. (git PR #32, (finally) merged by hand by
3486 Spencer and Ge) Also thanks to Tom Lieber for the initial analysis
3487 and solution:
3488 https://lists.cs.princeton.edu/pipermail/chuck-users/2009-April/004029.html
3489 - (added) by Nathan Tindall -- Q and freq bounding for filters (LPF,
3490 HPF, BPF, BRF) to avoid LOUD FILTER EXPLOSIONS; now negative values
3491 will throw an exception on the offending shred.
3492 - (restored, macOS) MAUI Chugin now (re)supported, post 1.4.0.0
3493 - (added; developer) ChucK.h API to set a main thread hook (e.g., for
3494 graphical functionalitie from Chugins)
3495 - (updated, developer) Chugin API now support main thread callback
3496 for graphical-/GUI purposes
3497 - (developer) refactored code to move I/O-related code out of
3498 chuck_lang and into chuck_io.
3499
3500
3501 1.4.0.0 (February 2018)
3502 ---
3503 ********************************************************
3504 * NOTE: 1.4.0.0 is a simultaneous release with 1.3.6.0;*
3505 * the two are identical except 1.3.6.0 also supports *
3506 * earlier version of OS X before 10.9 (back to 10.5). *
3507 ********************************************************
3508 * MAJOR SOURCE REFACTOR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*
3509 * (Thanks Jack Atherton for months of groundwork!) *
3510 ********************************************************
3511 - (added) support for 64-bit on windows
3512 - (added) Chuck_External API for including and running ChucK from
3513 elsewhere in C++
3514 - specify the sample rate
3515 - optionally specify the directory that me.dir() should
3516 evaluate to; this dir will also be scanned for chugins
3517 - optionally use custom callbacks for out and err messages
3518 from ChucK
3519 - (added) external keyword - for communicating variable values to and from
3520 C++ code using Chuck_External API
3521 - (developer) ChucK "core" as library, independent of external
3522 system audio I/O; now much easier to embed ChucK as a
3523 component in other hosts (e.g., command line, plugins, Unity, etc.)
3524 - (developer) ChucK "host" (command line app)
3525 - (developer) SOURCE: code support for multiple ChucK/VM instances
3526 - (developer) SOURCE: one file to include them all (chuck.h)
3527 - (developer) c_str() method for Chuck_Strings, so that chugins with a different
3528 definition of std::string can still construct their own string
3529 - (developer) API for chugin API calls
3530 - now API variable must be passed
3531 - SHRED variable must also occasionally be passed
3532 - (internal) refactored Chuck_String representation to be immutable
3533 - (internal) refactored to eliminate global VM, compiler, and env variables
3534 - compiler stores a reference to env
3535 - compiler stores a reference to vm
3536 - vm stores a reference to env
3537 - env stores its own top-level types; no more global type variables
3538 - DL_Query stores a reference to compiler
3539 - (internal) refactored all print statements to use new macros
3540
3541
3542 1.3.6.0 (February 2018)
3543 ---
3544 - (see 1.4.0.0)
3545
3546
3547 1.3.5.3 (unreleased; rolled into 1.4.0.0)
3548 ---
3549 - (added) support for primitive type 'vec3' for 3D vector
3550 - access .x .y .z OR .r .g .b OR .value .goal .slew
3551 - (added) support for primitive type 'vec4' for 4D vector
3552 - access .x .y .z .w OR .r .g .b .a
3553 - (added) VM exceptions (e.g., ArrayOutOfBounds) now print line number
3554 where possible (thanks Jack Atherton!)
3555 - (added) Math.gauss( x, mu, sigma )
3556 - (added) .clear() for Delay, DelayA, DelayL
3557 - (fixed) - == and != for polar and complex types
3558 - (fixed) repeat statement now worked correctly for shreds
3559 - (fixed) crash with --adaptive:N and ugens that used tickf e.g. WvOut2
3560 - (fixed) SndBuf occasional crash at end of file
3561 - (fixed) (windows) install issue where chugins and/or example files were missing
3562 - (removed) --blocking functionality; callback only for real-time audio
3563 - (internal) refactored VM to be more friendly for integration
3564
3565
3566 1.3.5.2 (October 2015)
3567 ---
3568 - (added) default root path changed from /usr to /usr/local
3569 (fixes issues in Mac OS X 10.11 "El Capitan")
3570 - (added) new ChuGins
3571 - FoldbackSaturator
3572 by Ness Morris
3573 Foldback Saturator for nasty distortion.
3574 - WPDiodeLadder
3575 by Owen Vallis
3576 Diode ladder filter based on Will Pirkle's technical notes.
3577 - WPKorg35
3578 by Owen Vallis
3579 Korg 35 low-pass filter based on Will Pirkle's technical notes.
3580 - (fixed)(Win) missing DLL issue
3581 - (fixed) me.dir() issues with Machine.add()-ed shreds
3582 - (fixed) crash fixes for <<< >>> with null objects
3583 - (fixed) stop ignoring midi clock in midi messages
3584 - (fixed) crash fix for array => ugen
3585 - (fixed) fix OscOut send failure for programs that also use OscIn
3586
3587
3588 1.3.5.1 (April 2015)
3589 ---
3590 - (added) new ChuGins
3591 - PowerADSR
3592 by Eric Heep
3593 Power function ADSR envelope.
3594 - WinFuncEnv
3595 by Eric Heep
3596 Envelope built on window functions.
3597 - (added) more aggressive optimizations for ARM platforms
3598 - (fixed) SndBuf fixes
3599 - (fixed) SerialIO fixes:
3600 - newline handling
3601 - full-duplex IO
3602 - general lag issues
3603
3604
3605 1.3.5.0 (December 2014)
3606 ---
3607 - (added) new functions in Std
3608 - int Std.clamp(int v, int min, int max)
3609 Return v constrained to [min, max]
3610 - float Std.clampf(float v, float min, float max)
3611 Return v constrained to [min, max]
3612 - float Std.scalef(float v, float srcmin, float srcmax,
3613 float dstmin, float dstmax)
3614 Scale v to range [dstmin, dstmax]. v is assumed to have the range
3615 [srcmin, srcmax].
3616 - float Std.dbtolin(float x)
3617 Convert x dB to linear value
3618 - float Std.lintodb(float x)
3619 Convert linear value x to dB
3620 - (added) MidiIn.open(string)/MidiOut.open(string) will open devices matched
3621 by partial match if no full device-name match is found.
3622 - (added) examples/osc/osc_dump.ck example
3623 - (added) new static variables in ADSR
3624 - .ATTACK, .DECAY, .SUSTAIN, .RELEASE, .DONE
3625 values corresponding to current state, returned by ADSR.state()
3626 - (added) full book/digital-artists examples
3627 - (fixed) real-time audio hiccuping/underrun when loading files in SndBuf
3628 - SndBuf .chunks now uses .chunks as buffer size for dynamic loading
3629 - files are loaded .chunks samples at a time
3630 - memory for the file is divided into buffers of .chunks samples
3631 - chunk size defaults to 32768 samples
3632 - (fixed) DLL issue on Win32 command line build
3633 - (fixed) non-void functions implicitly return 0/null if no return statement
3634 - (fixed) --probe crashes and other crashes related to error logging
3635 - (fixed) include trailing slash in me.dir() and friends
3636 - (fixed) fix me.path()/me.dir() for input paths with implicit .ck extension
3637 - (fixed) better error messages for OscIn/OscOut
3638 - (fixed) rare threading bug for OTF commands
3639
3640
3641 1.3.4.0 (April 2014)
3642 ---
3643 - (added) chuck operator connects between arrays of ugens, multi-channel
3644 ugens, and mono unit ugens
3645 ex.
3646 SinOsc s => Pan2 pan => Gain master[2] => dac;
3647 persists stereo signal through master to dac.
3648 See examples/stereo/array.ck for example usage.
3649 - (added) new OSC support classes
3650 - OscOut
3651 Sends OSC messages
3652 - .dest(string host, int port)
3653 set destination hostname or IP address and port
3654 - .start(string addr)
3655 set target OSC address to addr
3656 - .add(int i)
3657 - .add(float f)
3658 - .add(string s)
3659 add argument to the message
3660 - .send()
3661 send message
3662 - OscIn extends Event
3663 Receives OSC messages
3664 - int .port
3665 port number to listen to
3666 - .addAddress(string addr)
3667 listen for OSC addresses matching addr
3668 - .removeAddress(string addr)
3669 stop listening for OSC addresses matching addr
3670 - .listenAll()
3671 listen for all incoming OSC messages on port
3672 - int .recv(OscMsg msg)
3673 retrieve pending OSC messages into msg. Returns 1 if a
3674 message was available, 0 otherwise
3675 - OscMsg
3676 Encapsulates a received OSC message
3677 - string .address
3678 the OSC address this message was sent to
3679 - string .typetag
3680 the OSC typetag of this message
3681 - int .getInt(int i)
3682 - float .getFloat(int i)
3683 - string .getString(int i)
3684 retrieve the argument at position i of the given type
3685 See examples/osc/ for examples on usage.
3686 OscRecv and OscSend are still supported for backwards compatibility,
3687 but new code should use OscIn and OscOut.
3688 - (added) new SerialIO functions
3689 - .writeByte(int b)
3690 write byte b to the serial stream
3691 - .writeBytes(int b[])
3692 write array of bytes b to the serial stream
3693 - (added) new chugins (from Joel Matthys)
3694 - PitchTrack
3695 Monophonic autocorrelation pitch tracker, based on [helmholtz~] by
3696 Katja, http://www.katjaas.nl/helmholtz/helmholtz.html
3697 - GVerb
3698 Good quality stereo reverb with adjustable parameters
3699 - Mesh2D
3700 STK instrument that simulates a rectilinear, 2-dimensional digital
3701 waveguide mesh structure. Basically sounds like striking a metal
3702 plate.
3703 - Spectacle
3704 FFT-based spectral delay and EQ
3705 - Elliptic
3706 Elliptic filter, capable of very steep slopes or interesting
3707 harmonic ripples
3708 - (fixed) ChucK Shell fixes
3709
3710
3711 1.3.3.0 (November 2013)
3712 ---
3713 - (added) PulseAudio support (via RtAudio)
3714 - (fixed) relative path resolution for me.path() and me.dir()
3715 - (fixed) C:/ style pathnames do not trigger spurious argument processing
3716 - (fixed) MidiFileIn on Windows/Linux
3717
3718
3719 1.3.2.0 (September 2013)
3720 ---
3721 - (added) --clear.vm flag
3722 instructs remote VM to remove all shreds and clear public user types
3723 - (added) Std.ftoi(float f)
3724 Function for converting float to int
3725 - (added) ASCII char literals - 'c' converted to int with ASCII value
3726 - (added) book/digital-artists example programs for forthcoming book:
3727 "Programming for Musicians and Digital Artists" (Manning
3728 Publications)
3729 (very special thanks to Mark Morris and Bruce Lott for sample
3730 production)
3731 - (added) new functions
3732 - me.path()
3733 equivalent to me.sourcePath()
3734 - me.dir()
3735 equivalent to me.sourceDir()
3736 - me.dir(int N)
3737 return Nth-level parent of source directory
3738 - Shred.fromId(int id)
3739 return Shred object corresponding to specified id
3740 - (added) new functions for string objects
3741 - .charAt(int index)
3742 return character of string at index
3743 - .setCharAt(int index, int ch)
3744 set character of string at index to ch
3745 - .substring(int pos)
3746 return new string with characters from pos to end of string
3747 - .substring(int pos, int len)
3748 return new string with characters from pos of length len
3749 - .insert(int pos, string str)
3750 insert str at pos
3751 - .erase(int pos, int len)
3752 remove len characters from string, beginning at pos
3753 - .replace(int pos, string str)
3754 replace characters of string at pos with str
3755 - .replace(int pos, int len, string str)
3756 replace len characters of string with str, starting at pos
3757 - .find(int ch)
3758 search for character ch in string, return index of first instance
3759 - .find(int ch, int pos)
3760 search for character ch in string, return index of first instance
3761 at or after index pos
3762 - .find(string str)
3763 search for string str in string, return index of first instance
3764 - .find(string str, int pos)
3765 search for string str in string, return index of first instance at
3766 or after index pos
3767 - .rfind(int ch)
3768 search for character ch in string, return index of last instance
3769 - .rfind(int ch, int pos)
3770 search for character ch in string, return index of last instance
3771 at or before index pos
3772 - .rfind(string str)
3773 search for string str in string, return index of last instance
3774 - .rfind(string str, int pos)
3775 search for string str in string, return index of last instance at
3776 or before index pos
3777 - (added) MidiFileIn class
3778 Class for parsing + handling MIDI input from a file.
3779 See examples/midi/playmidi.ck for example usage.
3780 - .open(string filename)
3781 Open file at specified path
3782 - .read(MidiMsg inMsg)
3783 Get next message in first track
3784 - .read(MidiMsg inMsg, int trackNo)
3785 Get next message in trackNo
3786 - (added) SerialIO class (extends IO)
3787 Class for communicating with serial devices, e.g Arduino.
3788 See examples/serial/ for example usage.
3789 - .list() (static)
3790 return array of strings corresponding
3791 to available serial IO devices
3792 - .open(int i, int baud, int mode)
3793 open device with index i. baud can be a constant specifying
3794 which standard serial baud rate is used (e.g.
3795 SerialIO.B9600). mode can be SerialIO.ASCII or
3796 SerialIO.BINARY to specify ASCII or binary interpretation
3797 of serial data.
3798 - .onLine()
3799 - .onByte()
3800 - .onBytes(int num)
3801 - .onInts(int num)
3802 - .onFloats(int num)
3803 chuck to now to wait for that type of data to arrive (in the
3804 specified quantity). E.g. serial.onLine() => now; will wait
3805 for 1 newline-terminated string to arrive from the serial
3806 device.
3807 - .getLine()
3808 .getByte()
3809 retrieve data requested as above as string/byte
3810 - .getBytes()
3811 .getInts()
3812 .getFloats()
3813 retrieve data requested using the onLine()/etc. above. as array
3814 of data type
3815 - .baudRate()
3816 .baudRate(int baud)
3817 get/set baud rate
3818 - SerialIO.B2400
3819 SerialIO.B4800
3820 SerialIO.B9600
3821 SerialIO.B19200
3822 SerialIO.B38400
3823 SerialIO.B7200
3824 SerialIO.B14400
3825 SerialIO.B28800
3826 SerialIO.B57600
3827 SerialIO.B115200
3828 SerialIO.B230400
3829 available baud rates
3830 - (added) Regex class
3831 Class for regular expression matching and replacing in strings.
3832 Regex style is POSIX-extended.
3833 - RegEx.match(string pattern, string str)
3834 Return true if match for pattern is found in str, false otherwise
3835 - RegEx.match(string pattern, string str, string matches[])
3836 Same as above, but return the match and sub-patterns in matches
3837 matches[0] is the entire matched pattern, matches[1] is the first
3838 sub-pattern (if any), and so on.
3839 - RegEx.replace(string pat, string repl, string str)
3840 Replace the first instance of pat in str with repl, returning the
3841 result.
3842 - RegEx.replaceAll(string pat, string repl, string str)
3843 Replace all instances of pat in str with repl, returning the
3844 result.
3845 - (fixed) --adc:<N> now works as expected
3846 - (fixed) FileIO => string bug
3847 - (fixed) LiSa.sync/LiSa.track now works when set to
3848 1 (playhead follows input, normalized/rectified to [0,1])
3849 2 (playhead follows input, non-normalized/rectified)
3850 affects examples/special/LiSa-track*.ck
3851 - (fixed) LiSa interpolation bug
3852 - (fixed) .clear() function of arrays properly removes all items of the array
3853 - (fixed) != properly handles comparison between a string and literal null
3854 - (fixed) multichannel refcounting bug
3855 - (fixed) WvOut performs IO writes on separate thread, significantly
3856 minimizing audio underruns
3857 - (fixed) crash in Chorus destructor
3858 - (fixed) crash in Mandolin destructor
3859 - (fixed) ADSR correctly initialized in "DONE" state
3860
3861
3862 1.3.1.3 (September 2012)
3863 ---
3864 - (fixed) number in --dac:<N> flag is no longer off by one (this bug
3865 was introduced in 1.3.1.2)
3866
3867
3868 1.3.1.2 (September 2012)
3869 ---
3870 - (added) chuck now automatically detects and uses next highest
3871 or closest (in that order) system sample rate in
3872 the case where the default is not available; if a sample
3873 rate requested via --srate: is not available, an error
3874 will be encountered with a message.
3875 - (fixed) base parent object is correctly accounted for by
3876 new shred when sporking member functions
3877 (thanks to Michael Heuer for reporting and
3878 narrowing this down)
3879 - (fixed) popping local variables from the operand stack in cases
3880 where the datatype size is larger than int-size; this
3881 is a bug introduced with 64-bit in 1.3.1.0, and exhibited
3882 on 32-bit systems only. (thanks to Simon Steptoe
3883 reporting and narrowing this down)
3884 - (fixed) opening real-time audio with 0 input channels should
3885 now work, once again.
3886
3887
3888 1.3.1.1 (September 2012)
3889 ---
3890 - (fixed) critical bug since 1.3 where member function calls in
3891 loop conditionals caused crashes when the loop body
3892 contained local Object's to be released; this directly
3893 affects using OSC, MIDI, HID, which commonly employ
3894 syntax like: 'while( e.nextMesg() ) { ... }';
3895 -- this is most likely the cause of the OSC-related issues
3896 we've been seeing (thanks to Graham Coleman for tracking
3897 down and narrowingthe issue!)
3898 - (fixed) strengthened synchronization in OSC between internal
3899 listener thread and chuck VM code
3900 - (fixed) memory bug in OscRecv deallocation
3901 - (fixed) Machine.add( ... ) on windows now supports both '\\'
3902 and '/' in aboslute paths (previously only '\\').
3903 (thanks to Graham Coleman for finding this!)
3904
3905
3906 1.3.1.0 (September 2012)
3907 ---
3908 - (added) 64-bit support for all platforms (OS X, Linux, Windows)
3909 many thanks to Paul Brossier, Stephen Sinclair,
3910 Robin Haberkorn, Michael Wilson, Kassen, and
3911 Fernando Lopez-Lezcano, and chuck-users!
3912 - (added) Math.random(), random2(), randomf(), random2f(), srandom(),
3913 and Math.RANDOM_MAX; NOTE: randomf() returns range 0.0 to 1.0
3914 these use the much better random() stdlib functions
3915 the existing Std.rand*() and Std.srand() is still
3916 be available for compatibility (these to be deprecated
3917 in the future; please start using Math.random*())
3918 * (NOTE: on windows, Math.random() still uses the same
3919 generator as Std.rand() -- we hope to improve this in
3920 a future version!)
3921 * (NOTE: also see removed below)
3922 - (added) chuck --version | chuck --about now print architecture
3923 (32-bit or 64-bit)
3924 - (added) Machine.intsize() will return int width in bits (e.g., 32 or 64)
3925 - (added) examples/array/array_mmixed.ck to verify mixed-index
3926 fix (see below), based on Robin Haberkorn's test code
3927 - (fixed) multi-dimensional arrays now correctly support mix-typed
3928 indices (e.g., strings & ints) (thanks Robin Haberkorn)
3929 - (fixed) constants in Math library now cleaner, they include:
3930 * Math.PI
3931 * Math.TWO_PI
3932 * Math.e or Math.E
3933 * Math.i or Math.I or Math.j or Math.J // as 'complex' type
3934 * Math.INFINITY
3935 * Math.RANDOM_MAX
3936 * Math.INT_MAX // currently, differs on 32-bit and 64-bit systems
3937 * Math.FLOAT_MAX
3938 * Math.FLOAT_MIN_MAG // minimum positive float value
3939 - (fixed) Chubgraph.gain(), .last(), and .op()
3940 - (fixed) error message printing system for variable arguments
3941 - (fixed) StifKarp.sustain now works properly
3942 - (fixed) all examples now use Math.random*() instead of Std.rand*()
3943 - (removed) Math.rand*() removed --> please use Math.random*();
3944 (see 'added' above; Std.rand*() still there, but to be
3945 deprecated; please use Math.random*() moving forward)
3946
3947
3948 1.3.0.2 (August 2012)
3949 ---
3950 - (fixed) string literal reference counting
3951 - (fixed) chuck to function call reference counting
3952
3953
3954 1.3.0.1 (August 2012)
3955 ---
3956 - (fixed) WvOut no longer only record silence
3957 - (fixed) WvOut.closeFile() does not cause the VM to hang
3958
3959
3960 1.3.0.0 (August 2012)
3961 ---
3962 - (added) Chugins: dynamically loaded compiled classes/ugens
3963 see http://chuck.stanford.edu/extend/ for examples.
3964 - (added) new command line options
3965 --chugin-load:{auto|off} disable/enable chugin loading
3966 -gFILE/--chugin:FILE load chugin at FILE
3967 -GPATH/--chugin-path:PATH load all chugins in directory PATH
3968 --dac:NAME use dac with name matching NAME
3969 --adc:NAME use adc with name matching NAME
3970 - (added) Chubgraphs: create ugens by compositing existing UGens
3971 see examples/extend/chubgraph.ck
3972 - (added) ChuGens: create ugen by implementing audio-rate processing in ChucK
3973 see examples/extend/chugen.ck
3974 - (added) new ugens:
3975 - WvOut2: stereo uncompressed audio file output
3976 - SndBuf2: stereo uncompressed audio file input
3977 - (added) new functions:
3978 - me.sourcePath()
3979 returns file path of source file corresponding to this shred
3980 - me.sourceDir()
3981 returns directory of source file corresponding to this shred
3982 - MidiIn.open(string name)
3983 open MIDI input matching name
3984 - MidiOut.open(string name)
3985 open MIDI output matching name
3986 - Hid.open(string name)
3987 open HID matching name
3988 - (added) experimental OS X multitouch HID
3989 - (fixed) real-time audio on Mac OS X 10.7 (Lion), 10.8 (Mountain Lion)
3990 - (fixed) IO.newline() now flushes "chout"
3991 - (fixed) "chout" and "cherr" now invoke member functions correctly
3992 - (fixed) no for statement conditional handled correctly
3993 - (fixed) STK WvOut correctly handles case when file open fails
3994 - (fixed) << operator for arrays now correctly references counts
3995 - (fixed) crashing bug when receiving external events at a high-rate
3996 ("the OSC bug")
3997 - (fixed) scope closing correctly dereferences local objects
3998 - (fixed) crash when exiting shreds with connected ugens
3999 - (fixed) deallocation of "empty" Shred object no longer crashes
4000 - (fixed) crash when HID events are sent to an exited shred
4001 - (fixed) destructors for built-in objects are executed
4002
4003
4004 1.2.1.3 (October 2009)
4005 ---
4006 - (added) initial/experimental support for file I/O (finally)
4007 (thanks to Andrew Schran, Martin Robinson)
4008 - (added) new class: IO, FileIO
4009 see examples/io/:
4010 read-int.ck
4011 read-str.ck
4012 readline.ck - using readline
4013 write.ck - write using <=
4014 write2.ck - write using .write()
4015 - (added) IO input via =>
4016 - (added) IO output via <= (the "back-chuck")
4017 example: fio <= x <= " " <= y <= "\n";
4018 - (added) new syntax for checking if/while/for/until with IO objects
4019 e.g., while( fio => i ) { ... }
4020 - (added) StdOut/StdErr objects:
4021 "chout" (pronounced "shout")
4022 "cherr" (pronounced "Cher")
4023 - (added) Hid.open() now can accept a device name parameter
4024 - (added) analysis/tracking examples are now back
4025 (thanks to Kassen for looking into this)
4026 - (fixed) calling overloaded functions with most specific match
4027 e.g., Specific extends General:
4028 fun void foo( General obj ) { }
4029 fun void foo( Specific obj ) { }
4030 foo( obj $ Specific ); // should call foo( Specific )
4031 (thanks to Robert Poor for reporting, to Kassen, David Rush,
4032 Michael Heuer, and Andrew C. Smith for follow-up)
4033 - (fixed) STK instruments control changes reports range issues as
4034 "control value exceeds nominal range"; previously printed
4035 hard-coded values that were potentially misleading
4036 (thanks to Kassen for reporting)
4037 - (fixed) all oscillators now produce audio for negative frequencies
4038 (thanks to Luke Dahl)
4039 - (fixed) incorrect UGen disconnect (thanks Kassen for reporting)
4040 - (fixed) type checker now validates if/while/for/until types
4041 - (fixed) linux compilation (for gcc 4.x)
4042 - (fixed) complilation on OS X Snow Leopard
4043
4044
4045 1.2.1.2 (July 2008)
4046 ---
4047 - (added) dynamic, resizable arrays
4048 .size( int ) resizes array; .size() returns current size()
4049 << operator appends new elements into array
4050 .popBack() pops the last element of the array, reducing size by 1
4051 .clear() zero's out elements of the array
4052 (see examples/array/
4053 array_dyanmic.ck
4054 array_resize.ck)
4055 - (added) new UAna: FeatureCollector
4056 turns UAna input into a single feature vector, upon .upchuck()
4057 new UAna: Flip
4058 turns audio samples into frames in the UAna domain
4059 new UAna: pilF
4060 turns UAna frames into audio samples, via overlap add
4061 new UAna: AutoCorr
4062 computes the autocorrelation of UAna input
4063 new UAna: XCorr
4064 computes the cross correlation of the first two UAna input
4065 - (added) UGen.isConnectedTo( Ugen ) // is connected to another ugen?
4066 - (added) UAna.isUpConnectedTo( UAna ) // is connected to another uana via =^?
4067 - (added) int Shred.done() // is the shred done?
4068 int Shred.running() // is the shred running?
4069 - (added) int Math.ensurePow2( int )
4070 - (added) Math.INFINITY, Math.FLOAT_MAX, Math.FLOAT_MIN_MAG, Math.INT_MAX
4071 - (added) TriOsc.width(), PulseOsc.width(), SawOsc.width(), SqrOsc.width()
4072 - (added) Std.system(string) is now disabled by default, to enable: specify
4073 the --caution-to-the-wind command line flag, for example:
4074 %> chuck --caution-to-the-wind --loop
4075 - (removed) SqrOsc.width( float ), width is always .5
4076 - (fixed) it's now (again) possible to multiply connect
4077 two UGen's
4078 - (fixed) OS X only: sudden-motion-sensor HID no longer
4079 introduces audio dropouts below peak CPU usage
4080 due to added centralized polling;
4081 added static Hid.globalPollRate( dur ) to control
4082 the central SMS polling's rate
4083 - (fixed) Windows only: implementation of array via STL vector::reserve()
4084 has been replaced with a more compatible approach (see chuck_oo.cpp)
4085 - (fixed) dac amplitude no longer halved!
4086 NOTE: this increases the gain from before by
4087 a factor of 2, or roughly 6 dB!! BEWARE!!
4088 - (fixed) corrected order of shred/ugen dealloc in VM destructor,
4089 preventing a potential crash during shutdown
4090 - (fixed) UAna can now upchuck() at now==0
4091 - (fixed) STK Chorus UGen now has reasonable defaults
4092 .max( dur, float ) for initializing to delay/depth limits
4093 .baseDelay( dur ) sets current base delay
4094 - (fixed) dur +=> now no longer crashes
4095 - (fixed) ADSR now returns attackTime, decayTime, and releaseTime that corresponds
4096 to the duration-based setting functions (internally multiplied by SR)
4097 (thanks Eduard)
4098 - (fixed) STK Mandolin no longer plays without explicit noteOn
4099 - (fixed) unsporked Shred instances now given id == 0 (thanks Kassen)
4100 - (fixed) typos in ugen_xxx.cpp and chuck-specific rtaudio.cpp (/moudi)
4101
4102
4103 1.2.1.1 (October 2007)
4104 ---
4105 - (fixed) ctrl-c no longer causes crash on shutdown
4106 (was due to memory deallocation bug)
4107 - (fixed) incorrect code generation for multiple expressions in 3rd clause
4108 of for loops (thanks to Eduard for tracking!)
4109 - (fixed) Envelope now is able to ramp down (contributed by Kassen, Dr. Spankenstein,
4110 kijjaz, and others on electro-music!)
4111
4112
4113 1.2.1.0 (codename: spectral, August 2007)
4114 ---
4115 - (added) Unit Analyzers (UAna: prounced U-Wanna, plural UAnae)
4116 (primary creators: Rebecca and Ge)
4117 provides support for spectral processing,
4118 information retrieval, generalized + precise audio analysis
4119
4120 - (added) new datatypes:
4121 ---------
4122 complex: (real,imaginary)
4123 example: #(3,4) is complex literal (3,4)
4124 example: #(3,4) => complex value;
4125 access components via value.re and value.im
4126 used by UAnae
4127
4128 polar: (modulus, phase)
4129 example: %(.5, pi/4) is magnitude .5 and phase pi/4
4130 example: %(.5, pi/4) => polar bear;
4131 access components via bear.mag and bear.phase
4132 used by UAnae
4133 ----------
4134 example: can cast between complex and polar via standard $ casting
4135
4136 - (added) new UAna's:
4137 ----------
4138 (authors: Rebecca and Ge)
4139 FFT: Fast Fourier Transform
4140 input: from UGen (manually input float vector)
4141 output: complex spectrum (.cval()/.cvals())
4142 magnitude spectrum (.cval()/.fvals())
4143 (see examples/analysis/)
4144 IFFT: Inverse FFT
4145 input: UAna/Blob complex vector (spectrum)
4146 output: to UGen (as samples)
4147 (see examples/analysis/)
4148 Centroid: Centroid feature extractor
4149 input: UAna/Blob float vector (mag spectrum)
4150 output: single centroid value per frame
4151 (see examples/analysis/features/)
4152 Flux: Flux feature extractor
4153 input: UAna/Blob float vector (mag spectrum)
4154 output: single flux value between current and previous frame
4155 (see examples/analysis/features/)
4156 RMS: RMS feature extractor
4157 input: UAna/Blob float vector (mag spectrum)
4158 output: single RMS value of frame
4159 (see examples/analysis/features/)
4160 RollOff: RollOff feature extractor
4161 input: UAna/Blob float vector (mag spectrum)
4162 percentage threshold
4163 output: single RollOff value of frame
4164 (see examples/analysis/features/)
4165 ----------
4166
4167 - (added) capability to externally abort "infinite loop" shreds
4168 (this deals with hanging shreds due to potentially
4169 infinite loops that don't advance time)
4170 - (added) OTF command: chuck --abort.shred sends network OTF
4171 to server to remove current shred if there is one
4172 - (added) default .toString() method to all Object's
4173 - (added) adding an Object to string will first cast object to string;
4174 then add the two
4175 - (added) LiSa.duration() get method, and .voiceGain() set/get
4176 (Dan Trueman)
4177 - (added) alternate line comment: <-- same as //
4178 example:
4179 SinOsc s => dac; <-- here is a comment
4180 - (fixed) NullPointerException when instantiating array of objects
4181 containing arrays of objects
4182 (thanks to chuck-users!!)
4183 - (fixed) Machine.remove() on parent shred id no longer crashes
4184 - (fixed) Machine.remove() on 'me' now works correctly
4185 - (fixed) rounding when writing files via WvOut
4186 (thanks to Chris Chafe for discovering and reporting this)
4187 - (changed) default frequencies (220/440) added for various STK instruments
4188
4189
4190 ---
4191 (there is no version 1.2.0.9!)
4192 ---
4193
4194
4195 1.2.0.8 (March 2007)
4196 ---
4197 - (added) command line argument support
4198 e.g. %> chuck foo.ck:1:hello bar:2.5:"with space"
4199 also works with OTF commands
4200 e.g. %> chuck + foo:1:yo
4201 also works with Machine.add( ... )
4202 e.g. // code
4203 Machine.add( "foo:1:2:yo" );
4204 (see examples/basic/args.ck for accessing from code)
4205 - (added) OS X: watchdog enabled
4206 win32: watchdog implemented and enabled
4207 (combats chuck infinite empty loop implosion)
4208 - (added) OTF server/listener now ON by default...
4209 to enable, specify --loop or --server
4210 to disable, specify --standalone
4211 - (added) new UGens:
4212 --------
4213 Dynamics: dynamics processor (compressor, expander, etc.)
4214 (author Matt Hoffman and Graham Coleman)
4215 (see examples/special/)
4216
4217 GenX: classic + new lookup table functions base class
4218 (author Dan Trueman, ported from RTCMix)
4219 (see examples/special/)
4220
4221 float .lookup( float ) : lookup table value
4222 float[] .coeffs( float[] ) : load the table
4223 Gen5 (extends GenX)
4224 Gen7 (extends GenX)
4225 Gen9 (extends GenX)
4226 Gen10 (extends GenX)
4227 Gen17 (extends GenX)
4228 CurveTable (extends GenX)
4229 WarpTable (extends GenX)
4230
4231 LiSa: (Li)ve (Sa)mpling!
4232 (author Dan Trueman, partly based on Dan's munger~)
4233
4234 --------
4235 - (added) (prototype) string catenation
4236 (for now will leak memory! use wisely!!!)
4237 e.g. // expression
4238 "a" + "b"
4239 "a" + 45
4240 "a" + 5.1
4241 "postfix" +=> str;
4242 - (added) string escape sequences
4243 \0 \n \t \a \" \b \f \r \v \\
4244 \nnn (3 digit octal ascii)
4245 - (added) new Objects:
4246 --------
4247 StringTokenizer: uh string tokenizer (by whitespace)
4248 (use to be hidden PRC object)
4249 see examples/string/token.ck
4250
4251 ConsoleInput: interim console input (until file I/O)
4252 (use to be hidden Skot object)
4253 see examples/string/readline.ck
4254
4255 --------
4256
4257 - (api) API additions
4258 -------- (also see API modifications below)
4259 ADSR: dur attackTime()
4260 dur decayTime()
4261 dur releaseTime()
4262 WvOut: void closeFile()
4263 Hid: void openTiltSensor()
4264 int read( int, int, HidMsg )
4265 HidMsg: int isWheelMotion()
4266 (support for mouse scroll wheels)
4267 int key
4268 (cross-platform USB HID Keyboard Usage code)
4269 int ascii
4270 (ASCII value of key, where appropriate)
4271 --------
4272 - (api) API modifications (sorry!)
4273 --------
4274 ADSR: float attackTime( float ) -> dur attackTime( dur )
4275 float decayTime( float ) -> dur decayTime( dur )
4276 float releaseTime( float ) -> dur releaseTime( dur )
4277 --------
4278 - (api) deprecated --> new classes
4279 --------------------------
4280 HidIn --> Hid
4281
4282 - (fixed) adc.last() now returns correct value (was returning 0)
4283 - (fixed) array is now subclass of Object
4284 - (fixed) accessing null array no longer crashes (instead: exception)
4285 - (fixed) allow: 0 length float arrays
4286 - (fixed) check for negative array size
4287 - (fixed) accessing null map no longer crashes (instead: exception)
4288 - (fixed) connecting null UGen references no longer crashes
4289 - (fixed) trivial (null == null) no longer evaluated as string
4290 - (fixed) strict (x,y) => z type checking
4291 - (fixed) UGens no longer able to make duplicate connections
4292 - (fixed) && now terminates early if an operand evaluates to 0
4293 || terminates early if an operand evaluates to 1
4294 - (fixed) bug accessing static members of built-in classes
4295 - (fixed) OscSend.startMsg no longer silently fails when
4296 using a single string message specification
4297 - (fixed) Math.atan2 now accepts the proper arguments
4298 - (fixed) increased OTF command network fail-safe measures
4299 - (fixed) STK BlitSquare now produces correct frequency
4300 (applied fix from STK release)
4301 - (fixed) no longer spontaneously crashes when HidIn and
4302 other event based input mechanisms are firing rapidly
4303 - (fixed) using non-static variables from inside static functions
4304 - (fixed) variables must be declared before being used
4305
4306
4307 1.2.0.7b (October 2006)
4308 ---
4309 - added: (all) HidIn.name() now returns meaningful device name
4310 - fixed: (all) fixed STK Envelope bug
4311 - fixed: (osx) mouse motion now correctly returns delta Y
4312 - fixed: (win32) joystick hat messages now properly reported
4313 - fixed: (win32) fixed bug where joysticks of same model/product
4314 id would send messages through the same HidIn object
4315 - fixed: (all) seg fault in OSCSend.startMsg() with single
4316 string message specification
4317
4318
4319 1.2.0.7 (October 2006)
4320 ---
4321 - (api) deprecated --> new classes
4322 --------------------------
4323 sinosc --> SinOsc
4324 triosc --> TriOsc
4325 sqrosc --> SqrOsc
4326 sawosc --> SawOsc
4327 pulseosc --> PulseOsc
4328 phasor --> Phasor
4329 osc --> Osc
4330 noise --> Noise
4331 cnoise --> CNoise
4332 impulse --> Impulse
4333 step --> Step
4334 halfrect --> HalfRect
4335 fullrect --> FullRect
4336 gain --> Gain
4337 zerox --> ZeroX
4338 delayp --> DelayP
4339 sndbuf --> SndBuf
4340 pan2 --> Pan2
4341 mix2 --> Mix2
4342 onepole --> OnePole
4343 onezero --> OneZero
4344 polezero --> PoleZero
4345 twopole --> TwoPole
4346 twozero --> TwoZero
4347 biquad --> BiQuad
4348 **** --> ****
4349 std --> Std
4350 math --> Math
4351 machine --> Machine
4352 --------------------------
4353 - (added) --deprecate:X flag
4354 X can be stop, warn, or ignore - default is warn
4355 - (added) STK BiQuad get functions pfreq, prad, zfreq, zrad
4356 - (added) ADSR functions:
4357 void .set( dur a, dur d, float s, dur r );
4358 void .set( float a, float d, float s, float r );
4359 - (added) new UGens (adapted from SC3 Server, Pure Data, CSound)
4360 --------------------------
4361 LPF : resonant lowpass filter (2nd order butterworth)
4362 HPF : resonant highpass filter (2nd order butterworth)
4363 BPF : bandpass filter (2nd order butterworth)
4364 BRF : bandreject filter (2nd order butterworth)
4365 ResonZ : resonant filter (BiQuad with equal-gain zeros)
4366 FilterBasic : base class to above filters
4367 --------------------------
4368 - (added) new HidIn static variables for HidMsg message and device types
4369 - (added) HidMsg fields to determine device type and number
4370 - (added) HidMsg functions with capitalization rather than underscores
4371 (underscored functions deprecated)
4372 - (added) .period for all oscillators
4373 - (fixed) floating point denormals no longer cause potentially
4374 massive CPU usage on intel processors, this includes
4375 BiQuad, OnePole, TwoPole, PoleZero, JCRev, PRCRev, NRev
4376 - (fixed) STK Echo.max no longer gives incorrect warnings
4377 - (fixed) linux makefiles now respects CC/CFLAGS/CXX (Cedric Krier)
4378 - (fixed) SinOsc/TriOsc/PulseOsc/SqrOsc/Phasor.sync now unified:
4379 .sync == 0 : sync frequency to input
4380 .sync == 1 : sync phase to input
4381 .sync == 2 : fm synth
4382 |
4383 NOTE: the above changes may break/affect existing patches
4384 using TriOsc, PulseOsc, or SqrOsc
4385 - (fixed) TriOsc/PulseOsc/SqrOsc phase consistent with convention
4386 - (fixed) ADSR now handles keyOff() before sustain state
4387 - (fixed) ADSR now correctly inherits Envelope
4388
4389
4390 1.2.0.6 (more, August 2006))
4391 ---
4392 - (added) support for Mac OS X universal binary
4393 - (added) executable now reports targets:
4394
4395 > chuck --version
4396
4397 chuck version: 1.2.0.6 (dracula)
4398 exe target: mac os x : universal binary
4399 http://chuck.cs.princeton.edu/
4400
4401 1.2.0.6 (August 2006)
4402 ---
4403 - (added) support for Mac OS X on Intel: (make osx-intel)
4404 - (added) win32 - boost thread priority default from 0 to 5
4405 - (added) Mandolin.bodyIR( string path ): set body impulse response
4406 - (added) HID: support for mouse input on OS X, Windows, Linux
4407 through 'HidIn' class
4408 - (added) HID: support for keyboard input on OS X, Windows
4409 through 'HidIn' class
4410 - (added) new HID examples:
4411 hid/mouse-fm.ck
4412 /keyboard-flute.ck
4413 - (added) OS X: --probe human-readable MIDI names
4414 (thanks to Bruce Murphy)
4415 - (fixed) multiple declarations now behave correctly:
4416 (example: int a, b, c;)
4417 - (fixed) now possible to spork non-static member functions
4418 (example: Foo foo; spork ~ foo.go();)
4419 - (fixed) sporking fixed in general
4420 - (fixed) pre/post ++/-- now work correctly
4421 (example: int i; <<< i++ + i++ * ++i >>>;)
4422 - (fixed) public classes can now internally reference non-public
4423 classes in the same file
4424 - (fixed) obj @=> obj now ref counts correctly
4425 - (fixed) STK Mandolin.detune( float f ) changed
4426 - (fixed) STK Mandolin.damping( float f ) changed
4427
4428
4429 1.2.0.5b (April 2006)
4430 ---
4431 - (fixed) adc bug
4432 - (fixed) %=> bug
4433
4434
4435 1.2.0.5 (April 2006)
4436 ---
4437 - (added) multi-channel audio
4438 - use --channels<N> or -c<N> set number of channels
4439 for both input and output
4440 - use --out<N>/-o<N> and --in<N>/-i<N> to request
4441 # of input and output channels separately
4442 - stereo is default (for now)
4443 - (added) UGen.channels()
4444 - (added) class UGen -> class UGen_Multi -> class UGen_Stereo
4445 - (added) UGen UGen_Multi.chan( int )
4446 use this to address individual channels
4447 - (added) examples in examples/multi
4448 - n.ck : n channels detuned sine
4449 - i.ck : n channels impulse
4450 - (added) HID support (author: Spencer Salazar)
4451 - (added) 'HidIn' event class (see examples/hid/*.ck)
4452 - (added) Terminal Keyboard Input (immediate mode, separate from HID)
4453 - (added) 'KBHit' event class (see examples/event/kb*.ck)
4454 - (added) sndbuf.chunks : better real-time behavior
4455 - can be set to arbitrary integers
4456 (before the .read happens)
4457 - default is 0 frames (no chunk)
4458 - set .chunks to 0 to read in entire file
4459 (previous behavior)
4460 - (added) int math.isinf( float ) // infinity test
4461 - (added) int math.isnan( float ) // NaN test
4462 (see examples/basic/infnan.ck)
4463 - (added) sndbuf.valueAt( int ) for returning sample at arbitrary pos
4464 (see examples/basic/valueat.ck)
4465 - (added) MASSIVE STK UPDATE
4466 - (added) 'StkInstrument' class
4467 .noteOn( float )
4468 .noteOff( float )
4469 .freq( float ) / .freq()
4470 .controlChange( int, float )
4471 - (added) the following now extend 'StkInstrument'
4472 (most of them have additional parameters)
4473 - BandedWG
4474 - BlowBotl
4475 - BlowHole
4476 - Bowed
4477 - Brass
4478 - Clarinet
4479 - Flute
4480 - FM (and all its subclasses: BeeThree, FMVoices,
4481 HevyMetl, PercFlut, Rhodey, TubeBell, Wurley)
4482 - Mandolin
4483 - ModalBar
4484 - Moog
4485 - Saxofony
4486 - Shakers
4487 - Sitar
4488 - StifKarp
4489 - VoicForm
4490 - (added) better STK documentation
4491 http://chuck.cs.princeton.edu/doc/program/ugen.html
4492 - (added) examples/stk/modulate.ck
4493 - (added) --watchdog and --nowatchdog flags
4494 (very experiment watchdog for real-time audio)
4495 - (added) () => function; // calls function();
4496 (thanks to Mike McGonagle for reporting)
4497 - (added) if exp: ( cond ? if_cond : else_cond )
4498 (thanks to Mike McGonagle for reporting)
4499 - (added) math.abs( int ), math.fabs( float ), math.sgn( float )
4500 (std version unchanged)
4501 - (added) new examples
4502 - basic/infnan.ck
4503 /fm.ck fm2.ck fm3.ck
4504 /valueat.ck
4505 - event/kb.ck kb2.ck
4506 - hid/joy.ck
4507 /joy-fm.ck
4508 /joy-noise.ck
4509 /joy-shake.ck
4510 - multi/i.ck
4511 /n.ck
4512 /we-robot.ck
4513 - osc/s.ck
4514 /r.ck
4515 - stk/bandedwg.ck
4516 /blowbotl.ck
4517 /blowhole.ck
4518 /bowed.ck
4519 /brass.ck
4520 /clarinet.ck
4521 /flute.ck
4522 /mandolin.ck
4523 /modalbar.ck
4524 /saxofony.ck
4525 /stifkarp.ck
4526 - (fixed) sinsoc, triosc, sqrosc, phasor:
4527 - .sync( 0 ) uses input signal to modulate frequency
4528 - .sync( 2 ) uses input signal to modulate phase
4529 (FM synthesis)
4530 - (fixed) impulse.last() no longer has extra samp delay
4531 (thanks to Mike McGonagle for reporting)
4532 - (fixed) class inheritance now handles the first overloaded
4533 function of a parent correctly when called using a
4534 subclass instance. in other words, this part sucks
4535 less now.
4536 (thanks to Mike McGonagle for reporting)
4537 - (fixed) (internal) type checker re-instantiation patched
4538 - (fixed) (internal) detach_all() moved to chuck_globals.cpp
4539 - (fixed) (internal) global variables moved to chuck_globals.cpp
4540 - (fixed) file handles close in compiler and parser
4541 - (fixed) syntax error causing syntax errors
4542
4543
4544 1.2.0.4 (December 2005)
4545 ---
4546 - (added) The ChucK Manual (pdf)
4547 fantastic work by Adam Tindale and other documentors
4548 see doc/Chuck_manual.pdf
4549 - (added) Envelope.duration( dur ), Envelope.duration()
4550 - (added) Envelope.keyOn(), Envelope.keyOff();
4551 - (added) PitShift.mix( float ), PitShift.mix()
4552 (originally effectMix)
4553 - (added) std.srand( int ) : seed random number generator
4554 - (added) update to RtAudio 3.2.0 -> much lower latency: Window DS
4555 (thanks to Gary Scavone and Robin Davies)
4556 - (added) update to RtMidi 1.0.4 -> improved midi: linux ALSA
4557 (thanks to Gary Scavone and Pedro Lopez-Cabanillas)
4558 - (added) bandlimited ugens: Blit, BlitSaw, BlitSquare
4559 (thanks to Robin Davies for implementation,
4560 Gary Scavone for putting them in STK)
4561 - (added) examples/basic/foo.ck foo2.ck tick.ck tick2.ck
4562 (foo2 shows using Blit, tick.ck is a simple counter)
4563 - (added) examples/class/dinky.ck try.ck
4564 (creating and using class to make instruments)
4565 - (fixed) sndbuf.read now closes file handle and sets curf
4566 - (fixed) default bufsize=256 under OSX and 512 under all other
4567 - (fixed) chuck + foof garbled error message
4568 - (fixed) chuck.lex compatibility under some linux
4569 - (fixed) waiting on null event: no longer crashes VM
4570 - (fixed) function arguments: no longer allow reference to primitive types
4571 - (fixed) function: correctly select overloaded functions w/ implicit cast
4572 - (fixed) std.atoi() std.atof(): no longer crash on null string
4573 - (fixed) std.fabs(): now works correctly
4574 - (fixed) basic/moe.ck larry.ck currly.ck use fabs
4575 - (fixed) missing base class virtual destructors;
4576 FreeBSD/g++ compatibility (thanks rasmus)
4577 - (fixed) most -Wall warnings
4578 - (fixed) CK_LOG_SYSTEM_ERROR now CK_LOG_CORE
4579
4580
4581 1.2.0.3 (October 2005)
4582 ---
4583 (API changes again)
4584 (syntax change - 'loop' -> 'repeat')
4585 - loop( ... ) construct (see 1.2.0.2) changed to repeat( ... )
4586 - usage and semantics same as before
4587 - this is also an experimental language feature
4588 (let us know if it's good or bad)
4589 - float std.abs( float ) changed -> int std.abs( int )
4590 - use std.fabs( ... ) for floating point absolute value
4591
4592 - (added) /* block comments */
4593 - no nesting allowed
4594 - closing '*/' not necessary if commenting out rest of the file
4595 - (fixed) arrays of null object references correctly allocated
4596 : Event @ events[128];
4597 - (fixed) DEFAULT sndbuf rate now set correctly to interpolate
4598 for files outside of chuck sample rate (no longer have to
4599 explicit do 1 => buf.rate)
4600 - (fixed) examples/midi/polyfony*.ck no longer creates 128
4601 unnecessary events...
4602 - (changed) examples/stk/wurley.ck -> examples/stk/wurley2.ck
4603 - (changed) examples/stk/wurley.ck (wacky version)
4604
4605
4606 1.2.0.2 (2005.10.17)
4607 ---
4608 (sorry for the API changes)
4609 - (API change) OSC_Send class name changed to 'OscSend'
4610 (also): .startMesg(...) name changed to startMsg(...)
4611 - (API change) OSC_Recv class name changed to 'OscRecv'
4612 - (API change) OSC_Addr class name changed to 'OscEvent'
4613 (also): .hasMesg() name changed to .hasMsg()
4614 (also): .nextMesg() name changed to .nextMsg()
4615 - (API change) STK Shakers.freq now expect Hz instead of MIDI number
4616
4617 - (moved) examples/event/opensound*.ck moved to examples/osc/OSC*.ck
4618 (see OSC_send.ck and OSC_recv.ck for examples on OpenSoundControl)
4619 - (moved) examples/event/polyfony*.ck to examples/midi/
4620
4621 - (added) 'loop(...){ }' control structure :
4622 example: loop( 8 ) { ... } // executes body 8 times
4623 example: loop( foo ) { ... } // executes body foo times
4624 (foo is evaluated exactly once entering the loop, the
4625 value at that time is used as a constant to control
4626 loop iteration - even if foo is changed in the loop
4627 body.)
4628 - supports break and continue
4629 - important: one fundamantal difference between the loop
4630 semantic and for/while/until semantic is that the argument
4631 expression 'exp' in loop( exp ) is evaluated exactly once
4632 when the loop is first entered.
4633 - (added) MidiIn and MidiOut member functions:
4634 .good() : whether the thing is good to go (int)
4635 .num() : the device number (int)
4636 .name() : the device name (string)
4637 .printerr( int ) : whether to auto print errors (default YES)
4638 - (added) --version command line flag (Graham)
4639
4640 - (changed) chuck --status now prints shreds sorted by id
4641 (previously it was the current shreduling order + blocked)
4642 - (changed) a udp port may now be shared by many OSC_Recv (phil)
4643 : the incoming messages are broadcast to all
4644 - (changed) address/type string in OSC: comma now optional (phil)
4645
4646 - (fixed) events are now 0-sample synchronous (instead of 1)
4647 - (fixed) startup audio stability for --callback mode
4648 - (fixed) incorrect 'continue' behavior in for loops
4649 - (fixed) improved OSC stability (phil)
4650 - (fixed) OSC shreduling sanity check failed now resolved
4651 - (fixed) math.round for negative numbers (win32)
4652 - (fixed) std.mtof and std.ftom now internally double precision
4653 - (fixed) removed extra console output in STK Flute
4654 - (fixed) multiple delete/assertion failure on type rollback
4655 - (fixed) chuck --kill now closes WvOut and MidiRW file handles
4656 - (added) examples/midi/gomidi.ck : very useful sometimes
4657 - (added) examples/midi/gomidi2.ck
4658 - (added) examples/basic/rec-auto.ck (rec2.ck back in action)
4659 - (added) examples/basic/fmsynth.ck (from v1)
4660 - (added) examples/sitar.ck
4661 - (fixed) examples/stk/*-o-matic.ck now uses array
4662
4663
4664 1.2.0.1 (2005.9.27)
4665 ---
4666 - (added) full callback capability for real-time audio
4667 - blocking functionality still available
4668 - select via flags: --blocking and --callback
4669 - improves latency and stability, especially on linux
4670 - use --callback (default) for low latency / small buffer size
4671 - use --blocking for higher throughput
4672 - (fixed) crash when doing on-the-fly 'replace' : chuck --replace 0 foo.ck
4673 - (fixed) OSC event function now correctly named ("event")
4674 - (fixed) removed debug output in OSC
4675 - (fixed) implicit cast is now correct when sporking (thanks to Manfred Brockhaus)
4676 - (fixed) examples code reformatted, cleaned, and commented
4677 - (fixed) nested class definitions can now have same name as outer class
4678 - (fixed) nested class bug in scan1 (thanks to Robin Davies)
4679 - (fixed) variable resolution in parent class now visible (thanks to Robin Davies)
4680 - (fixed) variable resolution ordering
4681 - local, class, parent, global (thanks to Robin Davies)
4682 - (fixed) emitter now asserts inheritance instead of equality (thanks to Robin Davies)
4683 - (fixed) string comparison ==, !=
4684 - (added) string operations <, <=, >, >=
4685
4686
4687 1.2.0.0 (August 2005)
4688 ---
4689 SYNTAX and OPERATORS:
4690 - (added) +=>, operator : 2 +=> i; (also) -=>, *=>, /=>, %=>
4691 - (added) @=> for explicit assignment
4692 this is the only way to make object reference assignments
4693 - (added) implicit int to float casting
4694 - (changed) cast now look like: 1.1 $ (int) => int i;
4695 - (added) function call by chucking :
4696 // call
4697 (1,4) => math.rand2f => result;
4698 // same as
4699 math.rand2f(1,4) => result;
4700
4701 LANGUAGE:
4702 - (fixed) type system for existing types
4703 - (added) forward lookup of classes and functions (mutual recursion)
4704 - (added) stack overflow detection for massive recursion
4705
4706 DOCUMENTATION:
4707 - (added) language specification:
4708 http://chuck.cs.princeton.edu/doc/language
4709
4710 COMMAND-LINE:
4711 - (added) --probe prints all audio and MIDI devices
4712 - (added) --log or --verbose logs compiler and virtual machine
4713 - (added) --logN or --verboseN multi level logging
4714 1 - least verbose
4715 10 - most verbose
4716
4717 OBJECTS:
4718 - (added) 'class' definitions : class X { int i; }
4719 - (added) 'extends' keyword : class Y extends Event { int i; }
4720 - (added) virtual/polymorphic inheritance
4721 - (added) added pre-constructors - code at class level
4722 gets run when object is instantiated
4723 - (added) function overloading :
4724 class X { fun void foo() { } fun void foo( int y ) { } }
4725 - (added) base classes (can be extended):
4726 Object, Event, UGen
4727 see below
4728 - (added) base classes (cannot be extended):
4729 array, string
4730 see below
4731 - (added) member data
4732 - (added) static data
4733 - (added) member functions
4734 - (added) static functions
4735
4736 EVENTS:
4737 - (added) base Event class : Event e;
4738 can be used directly
4739 can be extended to custom events
4740 (see one_event_many_shreds.ck)
4741 - (added) waiting on event, chuck to now :
4742 e => now; // wait on e
4743 - (added) e.signal() wakes up 1 shred, if any
4744 - (added) e.broadcast() wakes up all shreds waiting on e
4745 - (added) class MidiEvent (see gomidi2.ck)
4746 alternative to polling.
4747 - (added) class OSCEvent
4748
4749 ARRAYS:
4750 - (added) arrays : int a[10]; float b[20]; Event e[2];
4751 - (added) multidimensional arrays : int a[2][2][2];
4752 - (added) associative arrays : int a[10]; 0 => a["foo"];
4753 all arrays are both int-indexed and associative
4754 - (added) array initialization : [ 1, 2, 3 ] @=> int a[];
4755 - (added) .cap() for array capacity
4756 - (added) .find() test if item is associative array
4757 - (added) .erase() erase item in associative array
4758
4759 UGENS:
4760 - (added) class UGen
4761 can be extended
4762 - (changed) all ugen parameters are now also functions:
4763 // set freq
4764 440 => s.freq => val;
4765 // same as...
4766 s.freq( 440 ) => val;
4767 - (changed) left-most parameters must now be called as functions
4768 // no longer valid
4769 f.freq => float val;
4770 // valid
4771 f.freq() => float val;
4772 // still ok
4773 440 => s.freq => float val;
4774
4775 SHREDS:
4776 - (added) class Shred
4777 - (added) .yield() .id()
4778
4779 STRINGS:
4780 - (added) class string
4781
4782 AUDIO:
4783 - (added) stereo
4784 all stereo unit generators have .left, .right, .pan functions
4785 - (changed) stereo ugen: dac (2 in, 2 out)
4786 - (changed) stereo ugen: adc (0 in, 2 out)
4787 - (added) stereo ugen: pan2 take mono or stereo input and pans
4788 - (added) stereo ugen: mix2 mix stereo input into mono
4789
4790
4791 1.1.5.6 (2005.4.11)
4792 ---
4793 - last 1.1 release : contains all 1.1 changes
4794
4795
4796 1.1.5.5 (2005.2.10)
4797 ---
4798 - FIFO to RR for audio and synthesis - improves stability on OS X
4799 - fixed stack underflow emitter bug with declarations
4800 - fixed cpu sleep bug on win32
4801
4802
4803 1.1.5.4 (2004.11.18)
4804 ---
4805 - fixed clicks when using adc unit generator
4806 (thanks to paul botelho for testing)
4807 - added 'maybe' keyword
4808 maybe == 0 or 1, with 50% probability each
4809
4810 new examples:
4811 - maybe.ck : the maybe keyword - bad idea? maybe.
4812 - maybecli.ck : maybe click, maybe not
4813
4814 adc examples work better:
4815 - adc.ck
4816 - echo.ck
4817 - i-robot.ck
4818
4819
4820 1.1.5.3 (2004.11.4)
4821 ---
4822 - when a shred is removed from VM, all children shreds are
4823 also recursively removed
4824 (this fix crash due to removing shreds with active children shreds)
4825 (to keep children around, put parent in infinite time-loop)
4826 (this isn't always good - real solution coming soon)
4827 - 'start' keyword now available - holds the a shred's begin time
4828
4829 updated examples:
4830 - powerup.ck : start local variable changed name
4831 - spork.ck : added infinite time loop to keep children active
4832
4833
4834 1.1.5.2 (2004.10.17)
4835 ---
4836 - crtical patch shreduler time precision
4837 - same as 1.1.5.1 - see below
4838
4839
4840 1.1.5.1 (2004.10.15)
4841 ---
4842 - on-the-fly chuck files to remote hosts!
4843 > chuck @hostname + foo.ck
4844 > chuck @hostname -p<N> + foo.ck
4845 - TCP replacing UDP for commands
4846 - endian observed (mac <-> win32/linux)
4847 - more sensible VM output for on-the-fly commands
4848 - many on-the-fly bug fixes
4849 - --replace: new shred inherits the replaced shred id
4850 (useful to keep track of shreds in VM)
4851 - sndbuf automatically set .rate to 1.0 (instead of 0.0)
4852 (0.0 => buf.rate if no play on next time advance)
4853 - new on-the-fly examples
4854
4855 new examples:
4856
4857 - otf_*.ck - illustrates precise on-the-fly timing
4858 (adapted from Perry's ChucK drumming + Ge's sine poops)
4859
4860 chuck them one by one into the VM:
4861
4862 terminal 1%> chuck --loop
4863 terminal 2%> chuck + otf_01.ck
4864 (wait)
4865 terminal 2%> chuck + otf_02.ck
4866 (wait)
4867 (repeat through otf_07.ck)
4868 (remove, replace and add your own)
4869
4870
4871 1.1.5.0 (2004.9.29)
4872 ---
4873 - now able to write audio files (wav, aiff, raw)
4874 (try rec.ck and rec2.ck concurrently with any other shreds
4875 to record to disk)
4876 - STK file endian is now observed (more things should work
4877 on little endian systems)
4878 - added 4 "special" built-in sound samples
4879 "special:glot_pop" - glottal pulse (flat)
4880 "special:glot_ahh" - glottal 'ahh' pop
4881 "special:glot_eee" - glottal 'eee' pop
4882 "special:glot_ooo" - glottal 'ooo' pop
4883 (see/listen to moe++.ck, larry++.ck, curly++.ck)
4884 - all bulit-in sound samples now loadable from both WaveLoop and sndbuf
4885 - (win32) sndbuf now properly loads wav aiff
4886
4887 new examples:
4888 - moe++.ck - stooges, evolved
4889 - larry++.ck
4890 - curly++.ck
4891 - rec.ck - run this concurrently to write audio to file
4892 (also try with -s flag for file out, no real-time audio)
4893 - rec2.ck - same as rec, but writes to different file every time,
4894 for sessions
4895
4896
4897 1.1.4.9 (2004.9.18)
4898 ---
4899 - all of STK is now in ChucK!
4900 - new examples (see below)
4901 - add '--bufnum<N>' to chuck command line (number of buffers)
4902 - --status no longer prints full path for source
4903 - full path now works for command line + (thanks Adam T.)
4904 - minor bug fixes
4905 - improved online ugen documentation (go phil!)
4906
4907 new ugens: (again, thanks to Phil Davidson!)
4908 BandedWG (STK)
4909 Blowhole (STK)
4910 BlowBotl (STK)
4911 Bowed (STK)
4912 Brass (STK)
4913 Clarinet (STK)
4914 Flute (STK)
4915 ModalBar (STK)
4916 Saxofony (STK)
4917 Sitar (STK)
4918 StifKarp (STK)
4919 delayp - variable write position delay line
4920
4921 new examples:
4922 band-o-matic.ck - banded waveguide, automated
4923 delayp.ck - shows usage
4924 mode-o-matic.ck - modal bar, happy chaos
4925 stifkarp.ck - stifkarp, chaos
4926
4927
4928 1.1.4.8 (2004.9.8)
4929 ---
4930 - added win32 visual studio support (chuck_win32.*)
4931 - new oscillators (see below, thanks to Phil)
4932 - corrected more issues on some 64-bit systems
4933 - new examples (see below)
4934 - chucking to oscillators now able to control phase
4935 (alternative to doing FM by hand (1::samp at a time),
4936 see pwm.ck and sixty.ck) (thanks to Phil)
4937
4938 new ugens:
4939 triosc - triangle wave
4940 pulseosc - pulse wave oscillator w/ controllable pulse width
4941 sqrosc - square wave
4942 sawosc - saw tooth
4943 phasor - 0 to 1 ramp
4944
4945 new examples:
4946 sixty.ck - shows osc's
4947 pwm.ck - basic pulse width modulation
4948 (you can still do FM "by hand" - see fmsynth.ck)
4949
4950
4951 1.1.4.7 (2004.9.4)
4952 ---
4953 - improved performance (reduce cpu overhead)
4954 - fixed bug that caused crash on ctrl-c
4955 - added sndbuf.play (same as rate)
4956 - corrected issues on some 64-bit systems
4957 - sndbuf.ck now works
4958
4959
4960 1.1.4.6 (2004.8.26)
4961 ---
4962 - added netin/netout unit generators (alpha version)
4963 - added a lot of STK unit generators (thanks to philipd)
4964 (over 80% of STK is now imported)
4965 - fixed Shakers (thanks to philipd) : examples/shake-o-matic.ck
4966 - better compilation for cygwin
4967 - minor bugs fixes
4968 - added many READ functionality for ugen parameters
4969 see online documentation at:
4970 http://chuck.cs.princeton.edu/doc/program/ugen.html
4971
4972 new ugens:
4973 - netout (alpha version) - audio over UDP (see net_send.ck)
4974 - netin (alpha version) - audio over UDP (see net_recv.ck)
4975 - Chorus (STK)
4976 - Envelope (STK)
4977 - NRev (STK)
4978 - PRCRev (STK)
4979 - Modulate (STK)
4980 - PitShift (STK)
4981 - SubNoise (STK)
4982 - WvIn (STK)
4983 - WvOut (STK)
4984 - BlowBotl (STK)
4985 - FM group (STK)
4986 - BeeThree
4987 - FMVoices
4988 - HevyMetl
4989 - PercFlut
4990 - TubeBell
4991
4992 new examples:
4993 - shake-o-matic.ck - STK shakers going bonkers
4994 - net_send.ck - oneway sender
4995 - net_recv.ck - oneway recv
4996 - net_bounce.ck - redirect
4997
4998
4999 1.1.4.5 (2004.8.14)
5000 ---
5001 - fixed bug for multiple declarations
5002 - made functions local to shred by default
5003 - shadowing now works
5004 - add 'blackhole' ugen for ticking ugens
5005 - added std.mtof (philipd)
5006 - added std.ftom
5007 - added std.dbtorms
5008 - added std.rmstodb
5009 - added std.dbtopow
5010 - added std.powtodb
5011
5012 new ugens:
5013 - blackhole - the silent sample sucker
5014 - Wurley (STK)
5015 - Rhodey (STK)
5016 - OnePole (STK)
5017 - OneZero (STK)
5018 - PoleZero (STK)
5019 - TwoPole (STK)
5020 - TwoZero (STK)
5021
5022 new examples:
5023 - powerup.ck ( (ab)use of TwoPole and sporking)
5024 - i-robot (building feedback filters)
5025 - voic-o-form.ck (music for replicants)
5026 - rhodey/wurley.ck (more stk-o-matics)
5027
5028
5029 1.1.4.4 (2004.8.2)
5030 ---
5031 - added sndfile patch for jack/sndfile (Martin Rumori)
5032 - added special raw wav for WaveLoop (philipd, gewang)
5033
5034 (see examples/dope.ck)
5035 "special:ahh"
5036 "special:eee"
5037 "special:ooo"
5038 "special:britestk"
5039 "special:dope"
5040 "special:fwavblnk"
5041 "special:halfwave"
5042 "speical:impuls10"
5043 "special:impuls20"
5044 "special:impuls40"
5045 "special:mand1"
5046 "special:mandpluk"
5047 "special:marmstk1"
5048 "special:peksblnk"
5049 "special:ppksblnk"
5050 "special:slience"
5051 "speical:sineblnk"
5052 "special:sinewave"
5053 "special:snglpeak"
5054 "special:twopeaks"
5055
5056 - fixed shred shreduling ID bug for on-the-fly added shreds (gewang)
5057 - fixed function resolution for on-the-fly added shreds (gewang)
5058 - added math.nextpow2( int n ) (Niklas Werner, gewang)
5059
5060 new STK ugens:
5061 - Mandolin (see examples/mandolin.ck examples/mand-o-matic.ck)
5062 - Moog (see examples/moogie.ck)
5063
5064 new examples:
5065 - mandolin.ck (use of STK mandolin)
5066 - mand-o-matic (fire it up!)
5067 - dope.ck (Homer's WaveLoop using internal STK sound)
5068 - print_last.ck (prints last ugen output)
5069 - wind2.ck (2 shreds control parameters)
5070
5071
5072 1.1.4.3 (2004.7.4)
5073 ---
5074 - add sndfile support (Ari Lazier)
5075 - add sndbuf file reading/writing (Ari Lazier)
5076 - add sinosc.sfreq and phase (Phil Davidson)
5077 - add sndbuf rate and sinc interp (Phil Davidson)
5078 - add cget functions for unit generators parameters
5079 (many parameters are readable now)
5080 - add .last for last sample computed for all ugen's
5081 - add constants in lib import
5082 - add math.pi math.twopi math.e
5083 - add --srate(N) in command line (chuck --help)
5084 - typing .ck extension optional on command line
5085 - fixed spork bug involved local variables
5086 - fixed nested function calls
5087 - fixed math.min/max bug (Phil Davidson)
5088 - fixed audio stability OS X (Ari Lazier)
5089 - fixed MidiOut issue (thanks to n++k)
5090
5091 new Unit Generators
5092 (from STK)
5093 ADSR (updated)
5094 BiQuad
5095 Delay
5096 DelayA
5097 DelayL
5098 Echo
5099 WaveLoop (updated)
5100
5101
5102 1.1.4.2 (2004.6.14)
5103 ---
5104 - added support for arbitrary audio in/out (via command line)
5105
5106
5107 1.1.4.1 (2004.6.13)
5108 ---
5109 - double lt gt fix
5110 - added demo[0-5].ck to examples
5111 - PROGRAMMER updated
5112 - big/little endian issue fixed
5113
5114
5115 1.1.4.0 (2004.6.12)
5116 ---
5117 - major update to use double float for time, dur, and float
5118 (this fixes the millisecond bug)
5119
5120
5121 1.1.3.6 (2004.6.9)
5122 ---
5123 - fixed win32 build problem (thanks to Adam Wendt)
5124 - fixed midi stack problem (thanks to Thomas Charbonnel)
5125
5126
5127 1.1.3.5 (2004.6.8)
5128 ---
5129 - fixed mem stack bug (report Alex Chapman)
5130 - added jack support (thanks to Thomas Charbonnel)
5131
5132
5133 1.1.3.4 (2004.6.7)
5134 ---
5135 - fixed spork bug
5136 - bad midiin now returns 0
5137 - supports sound card with no input
5138 - add spork.ck
5139
5140
5141 1.1.3.3 (2004.6.7)
5142 ---
5143 - added ability to spork shreds from code
5144 - casting float/int
5145 - 0-127 MIDI devices support
5146 - fix bugs in on-the-fly commands
5147 - added features to --add, --remove
5148 - added --time --kill
5149 - fixed table bug (thanks to n++k)
5150 - fixed linux makefile (thanks to n++k)
5151 - added STK ugen: WaveLoop, Shakers, JCRev, ADSR
5152 - added shred-time synch by T - (now % T ) => now;
5153 ---
5154 1.1.3.2
5155 ---
5156 1.1.3.1
5157
5158
5159 1.1.3.0 (Spring 2004) --- initial release ---