-
... ?? { group = Group(this.server.asTarget) } }*/ } // plays the events at their \beat // or when playEventAt(i) is called EventListPlayer : EventPlayer { var <events; var sched, ei=0; *new { arg events, spec=\audio, postFilter, protoEvent; ^ ...
-
... timeSigs.do({arg thisTimeSig, i; var thisMeasure, first, lower, rlower, rem, endBeat; lower = thisTimeSig.lower; rlower = lower.reciprocal; thisMeasure = this.notesForMeasure(i); thisMeasure.do({arg thisVoice, v; // are there notes? (thisVo ...
-
... ( def: { Impulse.ar(0) }, dur: 1 )).play(chans:2); //Scale over a set number of beats ~change_clock_tempo = {|clock, tempo, beats=1| var oldDur = ~dur; var newDur = 1.0 / tempo; beats.do {|beat| var stepDur = beat.linexp(0, beats-1, oldDur, ...
-
... ould be subclass of server Renderer : Clock { var <>lifeTime, <>options, <threadBeats; var <>score; var <nodeAllocator; var <controlBusAllocator; var <audioBusAllocator; var <bufferAllocator; *new { arg lifeTime=60, options; ^super.newCopyA ...
-
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"); ...
-
... 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 ...
-
... 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] ...
-
... 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 ...