-
BufSamples current number of samples allocated in the buffer superclass: BufInfoUGenBase Returns the current number of allocated samples. A sample is not the same as a frame (compare with BufFrames); a frame includes the samples in each cha ...
-
... leOffset + MouseX .kr(0, addOffset); // add a mouse dependent offset // cubic resampling: resampledSignal = DelayC .ar(in, maxdelaytime: sampDur * (1 + extraSamples), delaytime: sampDur * (sampleOffset + extraSamples) ); OffsetOut .ar(out, ...
-
SampleRate server sample rate superclass: InfoUGenBase returns the current sample rate of the server *ir // example { SampleRate .ir.poll }.play; // compares a 441 Hz sine tone derived from sample rate (44100 * 0.01, left) // with a 440 Hz ...
-
BufSampleRate buffer sample rate superclass: BufInfoUGenBase returns the buffers current sample rate *kr(bufnum) *ir(bufnum) the .ir method is not the safest choice. Since a buffer can be reallocated at any time, using .ir will not track th ...
-
SoundFile sclang soundfile data superclass: Object The SoundFile class is used to check the size, format, channels etc. when the sclang client needs this information about a SoundFile. Soundfile data can be read and modified. Soundfile data ...
-
Using samples Playing a pattern in time with a sampled loop A deceptively complex requirement... here, we will loop the a11wlk01.wav sample between 0.404561 and 3.185917 seconds (chosen for its surprisingly accurate four-beat groove), and o ...
-
RunningSum running sum over n frames A running sum over a user specified number of samples, useful for running RMS power windowing. *ar(in, numsamp) in Input signal numsamp How many samples to take the running sum over (initialisation time ...
-
Delay2 two sample delay Delays the input by 2 samples. Delay2.ar(in, mul, add) in - input to be delayed. ( plot({ var z; z = Dust .ar(1000); [z, z - Delay2 .ar(z)] // [ original, subtract delayed from original ] }))
-
Signal sampled audio buffer Inherits from: Object : Collection : SequenceableCollection : ArrayedCollection : RawArray : FloatArray A Signal is a FloatArray that represents a sampled function of time buffer. Signals support math operations. ...
-
Audio rate Ugens to which an .ar message is sent run at the audio rate, by default, at 44,100 samples per second. Send the .ar message to unit generators when they're part of the audio chain that will be heard. SinOsc .ar(440, 0, 1); ////// ...