-
Notifications
You must be signed in to change notification settings - Fork 15
21 Buffer
mohayonao edited this page Dec 7, 2013
·
1 revision
Create and return a Buffer and immediately allocate the required memory on the server.
b = Buffer([-1, -0.5, -0.25, -0, +0, +0.25, +0.5, +1])
( -> OscN.ar(b, 440) ).play()
Create and return a Buffer and immediately allocate the required memory on the server. The buffer's values will be initialised to 0.0.
Allocate a buffer and immediately read a soundfile into it.
v = Buffer.read("/files/audio/amen.wav")
( -> PlayBuf.ar(1, b, loop:1) ).play()
--
Sets all values in this buffer to 0.0.
Set the value in the buffer at index to be equal to float.
b = Buffer(8)
b.set(0, 0.25, 4, [0.5, 0.75]) # buffer=> [ 0.25, 0, 0, 0, 0,5, 0.75, 0, 0 ]
Fill this buffer with a series of sine wave harmonics using specified amplitudes.
b = Buffer(1024, 1).sine1(1 / [1, 2, 3, 4])
( -> Osc.ar(b, 440) ).play()
Fill this buffer with a series of sine wave partials using specified frequencies and amplitudes.
Fill this buffer with a series of sine wave partials using specified frequencies, amplitudes, and initial phases.