-
... ^nil.asBufSndFile; } *newFromObject { |obj| ^this.new( obj.numChannels ); } } UMIDIFileSpec : Spec { *testObject { |obj| ^obj.isKindOf( UMIDIFile ); } constrain { |value| value = value.asUMIDIFile; ^value; } map { |in| ^this.constrain( in ...
-
... red in the chord (mode.asMode.value.size > 0).if({ mode = source[\mode]; }); // midi input will be in the event - use it if present notes = inEvent[\chNotes] ? source[\notes]; (topEvent = inEvent[\top].dereference).notNil.if({ top = topEven ...
-
... .93, 2048, 0, 2048-featurehop); if(featuregroup.size==1) { pitchdetection[0].cpsmidi }{ //from frequency back to MIDI note space for better normalisation properties [pitchdetection[0].cpsmidi,pitchdetection[1]] }; }, \PolyPitch,{PolyPitch.k ...
-
... <envbus, <releasetime, uniqueClock = false, <tempo = 1, oldclocks, <composite, midiAmp, ccCtrl, midiChan, midiCtrl, midiAmpSpec, midiPort, <>pevents, <about, closeable, <>info, peakView; var recordPM, <>recordpath; classvar addActions, wri ...
-
... lin', 1, defaultAVFalloutChords, "%"); var snapshots; var exportCodeButton; var midiOutput; var masterTuning; var mainVolume; var mainRecord; var backgroundImage; var win= Window("sStream", winRect); win.layout= GridLayout.rows( [ VLayout( ...
-
... ional numbers will work with arrays of [p,q]'s //ex. 3.cents(2) or 440.cents(60.midicps) or [2,3].cents // cents { | frq = 1| // ^1200 * ( (this/frq).log / 2.log ) // } // used to be the mathematical formula above but was changed for effici ...
-
... ; [200,300,400,500].asNote; asPitchBend(pb = 400) Calculate pitchbend value for midi playback of microtones (in cents). pb is the pitch bend ammount (400 = +/- 1 tone, i.e. -200 to +200 cents) 50.asPitchBend; // - > 16 asBark Return the bar ...
-
... tune {|freq, transpose= 0| if(scale.notNil, { if(transpose==0, { freq= freq.cpsmidi.nearestInScale(scale.semitones).midicps; }, { freq= freq.cpsmidi.nearestInScale(scale.semitones); freq= freq.keyToDegree(scale.semitones, tuning.stepsPerOc ...
-
... 1; // level of audio allowed through (0 will suppress) ~mixerOutChannels = 2; ~midiTriggerChan = \omni; ~midiTriggerCtlNum = 64; ~bufStateProto = (status: \idle, dur: nil, peak: nil, recTime: 0, playCount: 0, actionDone: false) .parent_( ( ...
-
... 1; // level of audio allowed through (0 will suppress) ~mixerOutChannels = 2; ~midiTriggerChan = \omni; ~midiTriggerCtlNum = 64; ~bufStateProto = (status: \idle, dur: nil, peak: nil, recTime: 0, playCount: 0, actionDone: false) .parent_( ( ...