-
ZoomCalc { var <>modelRange, <>displayRange, <zoomedRange; var displaySpec, zoomedSpec; *new { arg modelRange, displayRange; ^super.newCopyArgs(modelRange, displayRange).setZoom(*modelRange) } setZoom { arg from, to; zoomedRange = [from, to ...
-
... t: 0); ) // There is a trivial midi initializer to set // up some standard midi mappings, if it does // not do what you want you will need to do // this yourself - if you are not using midi // skip this... c.midiInitialize; // Setup the fir ...
-
... xChan, numberBoxMsgNum, numberBoxSrcID, mainLayout; var chan, msgNum, srcID, hasMapping; var midiFuncNoteOff, <midifuncNoteOn, actionLearn; var <>actionNoteOn, <>actionNoteOff, learnMode, buttonLearn; *new { | parent, bounds | ^super.new(pa ...
-
... PerOctave; absKey = key % stepsPerOctave; // currently biases sharps. may use a mapping table later degree = ((scale.detectIndex { |x| absKey < x }) ?? { scale.size }) - 1; // degree index + octave offset + remaining semitones as 0.1 degree ...
-
UAdaptSpec : ControlSpec { var <>func; *new { |func| func = func ?? { { |spec| spec.copy } }; ^super.new( 0, 1, \lin, 0.0, 0 ).func_( func ); } canAdapt { |spec| ^spec.respondsTo( 'unmap' ) } adaptToSpec { |spec| ^spec !? { func.value( spec ...
-
CtLoop a recorder for control values CtLoop (ControlLoop) can record a loop of named control values, (i.e. a gesture) and play it back, with control of both loop properties and value-range properties: The loop can change in tempo, it can be ...
-
ArrayTransformerDef( \round, { |f, obj| if( f.spec.notNil ) { f.spec.unmap( f.spec.map( obj ).round( f.getMapped( \round ) ) ); } { obj.round( f.get( \round ) ); }; }, [ \round, 0.0] ) .mappedArgs_( [ \round ] ) .setSpec( \round, UAdaptSpec ...
-
// a way to convert numbers to scale degrees and back // understands sharps, but not flats // with default ( ModalSpec([0, 2, 4, 5, 7, 9, 11], 12) ), // 0 -> 0 (c), 1 -> 0.5 (c#) // octaves are preserved in map/unmap operations ModalSpec { ...
-
/* Automatic differentiation (forward mode), following http://conal.net/blog/posts/beautiful-differentiation http://conal.net/blog/posts/what-is-automatic-differentiation-and-why-does-it-work Jerzy Karczmarczuk 1998, Functional differentiat ...
-
SuperClassOfObjectAndMethodController : Stream{ var <model, <msg, <modelSpec; var <modelChangedActionDictionary; var <objChangedActionDictionary; replaceModel{ | newModel | this.remove; model = newModel; newModel.addDependant( this ); this. ...