-
... frames (% sec)\n" .postf(sendID, index % c.numFrames, (index % c.numFrames / c.sampleRate)); }).add ); b.close; b.free; b.alloc; b.cueSoundFile( "sounds/a11wlk01-44_1.aiff" , 0); c = SoundFile ( "sounds/a11wlk01-44_1.aiff" ).info; x.free; ...
-
... .value(result); }); } ); }); ^result; } beatlength_ {arg b=4; length= numFrames/sampleRate; beatlength=b; bps= b/length; } events_ {arg eventlist; if(eventlist.isKindOf(Collection),{ if(eventlist.isEmpty,{ eventlist=0.5;}); }); eventlist= e ...
-
... / you can get information out of it just as you'd with a normal event: q.config.sampleRate; // > 4800 ⧉ ✔ Introspection . path the path to your setup. . server the sound server. . assetsDir the assets directory in which e.g. sound files are ...
-
... 0.1); // compare s.options.hardwareBufferSize; s.options.hardwareBufferSize / s.sampleRate The order in which packets arrive is not guaranteed, so in the worst case, one can end up sending a command to start a synth process, then set one of ...
-
... o the server saveForSC {arg path; var sndfile; sndfile = SoundFile.new; sndfile.sampleRate_(44100); sndfile.sampleFormat("float32"); filepath = path ?? {PathName.tmp ++ sndfile.hash.asString}; sndfile.openWrite(filepath); sndfile.writeData( ...
-
... f = SoundFile.openRead(p); f.seek(86965); f.readData(d = Signal.newClear((f.sampleRate * 0.333).roundUp)); f.close; w = Window("granular windows", Rect(800, 200, viewWidth + 4, 450)); u = UserView(w, Rect(2, 2, viewWidth, 400)).f ...
-
... p = ExampleFiles.apollo11; a = SoundFile.new; a.openRead(p); d = a.numFrames/s.sampleRate; // get the duration a.close; // don't forget b = Buffer.cueSoundFile(s, p, 0, 1); f = { DiskIn.ar(1, b.bufnum) }; x = f.play; r = Routine({ loop({ d ...
-
... ar gate = amp; var attackSecs = attackMs * 0.001; var startPos = startPosSecs * SampleRate.ir; var blockDelaySecs = ControlDur.ir * 2; // delay time used to avoid transient mangulation by supernova incidence = incidence.clip(0,1); // incide ...
-
... rr = recBStoreArr.add([\alloc, ("alloc" ++ BStore.allocCount).asSymbol, [server.sampleRate.nextPowerOfTwo, recNumChans]];); BStore.allocCount = BStore.allocCount + 1; }; "//prepare recording".radpost; BStore.addAll(recBStoreArr, {|buf| recB ...
-
// see sampler // synth stays open and retrigs the sample multiple times Spec.add(\rqenv, EnvSpec( Env.new([ 0.194444, 0.0810185, 0.0648148, 0.444444 ], [ 0.01, 0.111111, 0.0833333 ], [ -0.583333, 3.33333, 1.66667 ], nil, nil))); Spec.add(\ ...