-
//Instance of SamplerDB is a database of multiple Sampler //The data structure of SamplerDB Instance is a Dictionary in this format // [ \Sampler_Name -> Sampler_Instance, \Sampler_Name -> Sampler_Instance, ...] SamplerDB{ classvar < dbs; / ...
-
//redFrik RedLoop { var sampler, magic; *new {|path, amp= 1, out= 0, group| ^super.new.initRedLoop(path, amp, out, group); } initRedLoop {|path, amp, out, group| magic= 999999.9.rand.asSymbol; Server.default.waitForBoot{ sampler= this.prTyp ...
-
//Headless integration tests for SSampler.load's action semantics. //Boots a real scsynth and loads real files: action must fire exactly ONCE, //only after every file's buffers are loaded AND the sampler's post-processing //(averages, kd-tr ...
-
... fft helper */ // the receiver is fft.real.size or fft.imag.size fftFreqs { arg sampleRate; var fftHalfSize, nyquist, step; this.isPowerOfTwo.if({ fftHalfSize = this / 2; nyquist = (sampleRate == nil).if({ 1 // use normalized freq }, { samp ...
-
... rttime = 0, outbus = 0, server; var c, soundfile, info, numChannels, numFrames, sampleRate, duration; c = Condition.new; server = server ? Server.default; path.notNil.if({soundfile = path; info = SoundFile.new; info.openRead(soundfile); num ...
-
... { *ar {|rise=0.1, fall=0.1, linExp = 0.5, loop = 1, plugged = 0, trig = 0| var sampleRate = SampleRate.ir, isExp, isPlugged; var riseIn = rise.clip(0.0001,10*60), fallIn = fall.clip(0.0001,10*60); var freq = 1/(riseIn+fallIn), width=riseIn ...
-
... ], [ 'alloc', 'alloc0', [ 44100, 2 ] ], [ 'alloc', 'alloc1', [ 44100, 2 ] ], [ 'sampler', 'audio', 'str' ], [ 'sampler', 'audio', 'hhk' ], [ 'sampler', 'audio', 'tom' ] ] ], [ 'test2', [ [ 'play', 'audio', 'marilyn1' ], [ 'play', 'audio', ' ...
-
... 1.0, windowSize=0.1, overlaps=10, windowRandRatio = 0.1, windowEnv,mul=1.0; var sampleRate, bufSize,amp,bufBySR; var offset,rateScale,timeScale; sampleRate = sample.sampleRateKr; bufSize = sample.bufSamplesKr; rateScale = sample.bufRateScal ...
-
//--abstract class for filtering OpenBCI data DataFilter { var <type, <sampleRate; var <filt_b, <filt_a; var nconst, clear, prev_x, prev_y; var dataN, prev_xN, prev_yN, kN; *keys {^this.constants.keys.asArray.sort} *new {|type, sampleRate, ...
-
... { *hoaProx { |size, radius = (AtkHoa.refRadius), order = (AtkHoa.defaultOrder), sampleRate = nil, speedOfSound = (AtkHoa.speedOfSound)| var hoaOrder = order.asHoaOrder; var freqs, complexCoeffs, magnitudes, phases; var rfftsize; if(size.isP ...