Designing Sound in SuperCollider/Pedestrians

From Wikibooks, open books for an open world
Jump to: navigation, search

Fig 24.4: pedestrian crossing beeps (UK-style)[edit]

The LFPulse here is used to provide a sharp-edged on/off for the sound. (LFPulse outputs a low of zero and a high of one, which is handy in this case so we don't need to re-scale it before we can use it as the multiplier.)

(
Ndef(\pedestrian,  {
	SinOsc.ar(2500, 0, 0.2) * LFPulse.ar(5);
}).play
)


Designing Sound in SuperCollider/thiscodeisby