-
/* FP Quark Copyright 2012 - 2017 Miguel Negrão. FP Quark: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your ...
-
/* FP Quark Copyright 2012 - 2013 Miguel Negrão. FP Quark: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your ...
-
... ct[name]) } update {|changed, what| this.changed(what, changed) } names { ^dict.keys } addrs { ^dict.values.collect({|peer| peer.addr }) } includesAddr{|addr| this.addrs.do({|peerAddr| if (peerAddr.matches(addr), {^true}); }); ^false } // m ...
-
TestProgression : UnitTest { test_Progs { this.assertEquals( Progression.at(\sad), Progression([ 0, 3, 4, 4 ], "Sad"), "'Sad' chord prog" ); this.assertEquals( Progression.sad, Progression([ 0, 3, 4, 4 ], "Sad"), "'Sad' chord prog (method)" ...
-
... qRatio: (60 - midinote).midiratio ) } } /* access */ findBuffer { |buf| buffers.keysValuesDo { |key, val| var index = val.indexOf(buf); if(index.notNil) { ^[key, index] }; }; ^nil } getEvent { |name, index| var allEvents = this.at(name); va ...
-
... nd = 1; dt = line.first; }; if ( update ){ // data = line.drop( nd ); playnodes.keysValuesDo{ |key,it| network.setData( key, line.at( it + nd ) ); }; }; if( dt.notNil ){ deltaT = dt; curTime = curTime + dt; }; ^dt; } }
-
... be used in math operations. Note that a Rest's value is ignored for most Event keys (assuming the Event does nothing in response to .play ). If a Rest appears in a rhythm key ( dur or delta ), then the number is the time until the next eve ...
-
... e scale can be octave-stretched both in cents and Hertz values. VGScale .scales.keys VGScale .scales.pelog VGScale .refOct VGScale .refNote VGScale .refInst.postcs VGScale .refNoteKey.postcs // generate the scale over all octaves from the r ...
-
... view.bounds); b = { var spec = Spec.specs.select({|x| x.isKindOf(ControlSpec)}).keys.choose; MinBox.new(w, (0@0)@([rrand(20,100)@rrand(20,100)].choose)) .mode_(MinBox.modes.choose) .textMode_(MinBox.textModes.choose) .label_(spec.asString) ...
-
... all platforms and with wslib sliders. 3) Combined slider movement with modifier keys differs in the necessary order of key pressing and mouse clicking. In Qt you can (and with the Cmd modifier involved you have to) press thereafter. 4) With ...