09.12.2012 Views

The Kyma Language for Sound Design, Version 4.5

The Kyma Language for Sound Design, Version 4.5

The Kyma Language for Sound Design, Version 4.5

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

QuadOscillator<br />

Xtra Sources Category<br />

Multiplies the left channel of Envelope by a sine wave oscillator and the right channel of Envelope by a<br />

cosine oscillator. <strong>The</strong> output is the sum of the ring-modulated left and right channels. If the Envelope<br />

has the same signal but 90 degrees out of phase in the left and right channels, the lower sideband will be<br />

cancelled out, leaving only the upper sideband (the sum of the frequencies of the Envelope and the<br />

QuadratureOscillator).<br />

Expand the SingleSideBandRM prototype <strong>for</strong> an example of how to use this as a nonharmonic frequency<br />

shifter.<br />

Frequency<br />

This is the frequency of the sine and cosine oscillators. <strong>The</strong> frequency can be specified in units of pitch<br />

or frequency. <strong>The</strong> following are all ways to specify the A above middle C:<br />

440 hz (in hertz or cycles per second)<br />

4 a (as the 4th octave A)<br />

69 nn (as a MIDI notenumber)<br />

4 c + 9 nn (as 9 half steps above middle C)<br />

1.0 / 0.00227273 s (inverse of a period at 44.1 kHz sample rate)<br />

<strong>The</strong> following are examples of how to control the frequency using MIDI, the virtual control surface, or a<br />

third-party program:<br />

!Pitch (key number plus pitch bend)<br />

!KeyNumber nn (MIDI notenumber)<br />

4 c + (!Frequency * 9 nn) (continuous controller from 4 c to 4 a)<br />

Envelope<br />

<strong>The</strong> left channel of Envelope will be multiplied by a sine and the right channel by a cosine. If this <strong>Sound</strong><br />

has gone through a PhaseShiftBy90 (<strong>for</strong>cing its left and right channels to be 90 degrees out of phase with<br />

each other at a specified frequency), then putting it through the QuadratureOscillator will per<strong>for</strong>m single<br />

side band ring modulation. In this configuration, only the upper sideband is heard. To get the lower<br />

sideband alone, use a negative frequency <strong>for</strong> the QuadratureOscillator (or else swap the left and right<br />

channels of Envelope using a ChannelCrosser).<br />

324

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!