Designing Sound in SuperCollider/Insects

Fig: 50.13 Direct signal implementation of housefly wing
The adjustable parameters in the pd patch can be controlled by the mouse movement: MouseX is controlling the wing-frequency, MouseY is controlling the wing-resonance.

Leave it running while you run the other blocks of code below...

Fig: 50.14 Buzzing housefly
If the Synth(\buzzingHousefly) was executed before the Synth(\houseflyWing) you'll have to execute the following line to hear the effects of the Synth(\buzzingHousefly). This is because In.ar and Out.ar are used in this example to communicate between both patches, and when working with In.ar it is always necessary to have the Order of execution of synths on the server in mind. (see also Helpfile: Order of execution).