-
... ns. ( var full = CondVar(), empty = CondVar(); var queue = Array(); var maxQueueSize = 5; // The producer and consumer will wait between tasks for a duration // somewhere in these ranges. Over time, you'll see the queue grow // and shrink b ...
-
... svar <>defaultPanningFunction; *initClass { // signals is an array of arbitrary size defaultPanningFunction = #{ | signals, numChannels, pan, mul | var channels, inNumChannels; // NOTE: later on, we should move these special cases to one si ...
-
... engraver'); // make sure the produced svg file is cropped; use a large staff size for sufficient resolution // use a hack to make lilypond crop the svg file since Fosc doesn't expose lilypond command line arguments, and I didn't find an ...
-
... efix, suffix p.front; t = EmacsText( p, "hello", 30 ); // args: buffer, string, size, align p.front; p.newline; t = EmacsText( p, "helloooo", 30, \right ); // args: buffer, string, size, align p.newline; e = EmacsEditableField( p, "edit fie ...
-
... Scratching through samples: */ ( // write variants for different sample buffer sizes (1..SuperDirt.maxSampleNumChannels).do { |sampleNumChannels| var name = format("dirt_sample_%_%", sampleNumChannels, ~dirt.numChannels); SynthDef(name, { ...
-
... SoundFileView(win, Rect(15, 80, win.bounds.width-30, win.bounds.height-100)) .resize_(5) .gridResolution_(soundfile.hoptime) .gridOn_(false) .soundfile_(SoundFile.openRead(filename)).read(closeFile: true).refresh .background_(Color(1,1,1)) ...
-
... ogramWindow shows the spectrum of a sound of a specified audio bus. It can be resized. By clicking on the view, a crosshair cursor appears that indicates the frequency underneith. Panel commands: Power Turns the scope on and off. BusIn The ...
-
BufEnvir : EnvironmentRedirect { var <server; var <>fftsize = 2048; *new { arg server; ^super.new.initServer(server) } initServer { arg s; server = s } makeBuffer { ^Buffer.new(server, 0, 1) } updateInfo { envir.do(_.updateInfo) } clear { a ...
-
... e UGen knows how many freqs to expect ^this.multiNew('control', chain, cutfreqs.size, square, scalemode, *cutfreqs) } init { arg ... theInputs; inputs = theInputs; numbands = inputs[1] + 1; ^this.initOutputs(numbands, rate); } *categories { ...
-
... Units = pannerUnits.add( unit ); typeDict[ i ] = \plane; }; }); if( pannerUnits.size > 0 ) { repliers = pannerUnits.collect({ |unit, i| var synth, unitIndex; synth = unit.synths.last; // prepan synth is always last synth unitIndex = uchain. ...