-
TestBeatSched : UnitTest { test_beat { var b,t, sched; Tempo.bpm_(120); sched = BeatSched.new; b = sched.beat; t = sched.time; this.assertFloatEquals( Tempo.secs2beats( t ) , b, "BeatSched .beat should be convertible to .time using Tempo"); ...
-
BeatSched: Filter: Description Class methods global new initClass xblock time beat clear deltaTillNext tdeltaTillNext tsched xtsched sched xsched qsched xqsched tschedAbs xtschedAbs schedAbs Inherited class methods Instance methods tempo te ...
-
... he same. */ // actually, we may not even need the following, because TempoClock beats can be set directly. ( t = TempoClock.new; fork { loop { 0.2.wait; t.elapsedBeats.postln } }; ); t.beats = 10; ( t = TempoClock.new; Pbind(\freq, \rest, \ ...
-
ReferenceClock { var clock, <>offset = 0; *new { arg tempo, beats; ^super.new.init(tempo, beats) } elapsedBeats { ^clock.elapsedBeats + offset } tempo { ^clock.tempo } elapsedBeats_ { |beats| offset = beats - clock.elapsedBeats } tempo_ { | ...
-
... mVal, counter; this.put(when, this[when].add([pri, fn, streamVal, counter])); } beatInfo {arg beat; ^[beat.asFloat, this[beat.asFloat]] } keysInRange {|low, high| ^this.keys.asArray.select{|key| (key >= low) && (key < high) } } beatInfoFuzz ...
-
... 0.25, 0.27], inf), \fx, 0, \fxSend, -10 ).play; ); */ ( var s, tempo, beat, map, pattern, pattern2, root; s = Server.default; s.freeAll; s.bind{Synth(\reverb, [\in, ~vbus], s, \addToTail)}; tempo = 60/140; beat = tempo/ ...
-
... ds, maxTime; tg = UserView(parent, bounds); if(maxTime.isNil, { maxTime = model.beatDuration; if(maxTime.isNil, { maxTime = 128 }, { maxTime = (model.beatDuration * 1.1 + 0.1).ceil; }) }); zoomCalc = ZoomCalc([0, maxTime], [0, bounds.width] ...
-
This gradually changes the tempo of a TempoClock, each beat of a specified number of beats, and starting at the next bar. Personally, I was not able to heavily distinguish between `.linlin` and `.linexp` for reasonable musical tempos. ...
-
... ock : Clock { var masterAddr, oscPath, scheduler, tickOSCFunc, <tempo = 1; var <beatsPerBar=4.0, barsPerBeat=0.25; var <baseBarBeat=0.0, <baseBar=0.0; *new {|masterAddr, oscPath = '/conductorClockTick'| ^super.newCopyArgs(masterAddr, oscPat ...
-
... h incoming network sync message includes a tick counter. There are 24 ticks per beat and 96 per bar (assuming 4/4 - change beatsPerBar to use something different). A tick is roughly 1/24 seconds long at tempo 60bpm. Though network jitter wi ...