-
/* Various algebraic objects: Idem, Immute, */ /* Idem is a wrapper that forwards computations to its object but keeps it wrapped. It can be used as a superclass for particular other wrappers. It is a generalisation of the existing Operand ...
-
... //////// SolarSystem { var <planets; *new { ^super.new.init; } init { planets = Dictionary.new; planets.add(\mercury -> Planet.mercury); planets.add(\venus -> Planet.venus); planets.add(\earth -> Planet.earth); planets.add(\mars -> Planet.m ...
-
... of default values for attributes // initialized in init() var defaultValues; // Dictionary mapping GUI elements for an attribute var attributeInterfaces; *new { |dimple| ^super.newCopyArgs(dimple).init } init { // initalize attributes attri ...
-
... m the file name. Saving this as ev.scd, will create an event in the Opus:scores Dictionary with the key \ev, and give the CtkScore the same ID. Calling opus:newScoreFromProcess expects the processKey to use for creating the new CtkPMod, and ...
-
... // By default, NTMI loads these soundfiles into buffers, // and puts them in a dictionary called q.bufs, // under the name 'global': q.bufs.global; q.bufs.global.choose.play; // you can put multiple collections of soundfiles // into this u ...
-
ValidatingDictionary { var <>dict; var <>validator, <>putFallback; *new { |dict, validator, putFallback| ^super.newCopyArgs(dict, validator, putFallback) } // raison d'etre put { |key, value| if(validator.(value, key, dict) ?? { true }) { d ...
-
... var <device; var <hardwareBufferSize = 512; var <useForWFS = false; *presets { ^Dictionary[] } inDevice { ^if( thisProcess.platform.name == \linux ) { nil } { if( device.isString or: device.isNil ) { device } { device[0] } } } outDevice { ^ ...
-
/* dictionary that keeps objects with the same key in a list and returns randomly one of them */ FuzzyDictionary : IdentityDictionary { put { arg key, item; super.put(key, super.at(key).add(item)) } at { arg key; var list = super.at(key); l ...
-
... licated behaviors only after getting comfortable with the basics. The parameter dictionary used at initialization can get rather long. Use a BP Factory to simplify use in performance. Important: The drum machine processes are not polyphonic ...
-
... licated behaviors only after getting comfortable with the basics. The parameter dictionary used at initialization can get rather long. Use a BP Factory to simplify use in performance. Important: The drum machine processes are not polyphonic ...