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.

Output MIDI<br />

Getting Wired<br />

MIDI Notes Off<br />

<strong>The</strong>se examples illustrate how you can generate MIDI events in <strong>Kyma</strong> and send them out to control external<br />

MIDI devices like synthesizers and samplers. You can use this to synchronize external devices to<br />

<strong>Kyma</strong> <strong>Sound</strong>s, to extract parameters from audio signals and send them out as MIDI events, or to algorithmically<br />

generate and process MIDI events in <strong>Kyma</strong> be<strong>for</strong>e sending them to your other sound<br />

modules.<br />

If you don’t have any MIDI-controlled sound modules other than <strong>Kyma</strong>, then you can skip this section. If<br />

you do have a synthesizer/sampler, then hook everything up as follows:<br />

♦ Capybara MIDI output connected to synthesizer MIDI input<br />

♦ If you have a mixer, mix the outputs of the Capybara and the synthesizer<br />

♦ If you do not have a mixer, then patch synthesizer audio output into Capybara audio input<br />

♦ If your synthesizer/sampler has pitch bend, set it to ±12 semitones<br />

<strong>The</strong> quickest way to send an “all MIDI notes off” command in <strong>Kyma</strong> is to use Ctrl+M or else to choose<br />

MIDI notes off from the DSP menu.<br />

Sending Out MIDI Note Events<br />

Double-click simple MIDI out to see its structure and parameters:<br />

<strong>The</strong>n double-click output MIDI events. This is a MIDIOutputEvent. You supply the three elements of a<br />

MIDI note event: a frequency, a gate, and an amplitude, and this <strong>Sound</strong> puts together a MIDI note event<br />

and sends it to the MIDI output of the Capybara. In this instance, we have set these parameters to come<br />

from the corresponding values from the MIDI input: Frequency to !Pitch, Gate to !KeyDown, and<br />

Amplitude to !KeyVelocity. So this <strong>Sound</strong> is per<strong>for</strong>ming the redundant but illustrative task of reading<br />

note events sent to the Capybara’s MIDI input, splitting them into !Pitch, !KeyDown and<br />

!KeyVelocity, and then giving them to the MIDIOutputEvent <strong>Sound</strong> which puts them back together<br />

into a MIDI note-on event which it sends to the Capybara’s MIDI output. Obviously you didn’t need<br />

<strong>Kyma</strong> to do that; you could have just connected the keyboard to the synthesizer directly. But wait, there’s<br />

more…<br />

But first just a quick note about the structure of this <strong>Sound</strong>: notice that external MIDI device and output<br />

MIDI events are both feeding into a Mixer. This is not a Mixer in the usual sense, but in the broader,<br />

156

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

Saved successfully!

Ooh no, something went wrong!