Mix two sinusoids
This patch shows a simple method for mixing and viewing two sine tones generated by the cycle~ object.
This patch shows a simple method for mixing and viewing two sine tones generated by the cycle~ object.
This patch uses a random number generator to choose a mix of 12 sine tones, play them, and display them as white pixels in a black and white matrix. The 12 sine tones are played with a single object called ioscbank~, which is a bank of interpolating sinusoidal oscillators.
If you want to make an oscillator with unstable pitch, you can modulate the pitch of the oscillator using a noise signal as an exponent with a base of 2, and applying that as a multiplier to vary the fundamental frequency. In that way, when the noise ranges from -1 to +1, it will cause a pitch variation of ±1 octave, whatever the fundamental frequency of the oscillator. Divide the amplitude of the noise by 1200 if you want to be able to represent pitch variation in cents.