This patch will output a bang if it receives a bang in both of its inputs simultaneously. A bang received by the right inlet will store a 1 in the integer object via the cold inlet. If the left inlet receives a bang before the end of the low priority queue, then a 1 will be outputted by the integer object to the select resulting in a bang from its left outlet.
This example combines seven pre-recorded saxophone sounds, slowly modulating several aspects of their playback to create an ever-changing mix.
This example consists of a .zip archive of files. Together they demonstrate the idea of organizing one’s sound files in a specific folder, and then using the full path to that folder to ensure finding the sound files when you want to play them.
Synthesizing a sinusoid in MSP is a fairly trivial matter, because the cycle~ object does most of the work for you. It produces a full-amplitude waveform at the requested frequency ƒ and with the requested phase offset φ.