How to control midi events using patterns:
Filter:

How to control midi events using patterns

An overview of midi commands and how to use them with Pbind, etc.

This document is a brief overview of some commonly used midi commands available in the midievent part of Event and which arguments they offer.

To use them in a event pattern such as Pbind, you need to first initialise a midi out device.

In the examples below, it is assumed that you have initialised a midi out.

NOTE: All midi numbers in SuperCollider are 0-indexed. That is, what on most devices is called "midi channel 1" is actually midi channel 0 in SuperCollider and vice-versa.

Now, to use it in a Pbind:

\noteOn and \noteOff

The most common midi commands are \noteOn and \noteOff. They are used to play notes. \noteOff is automatically transmitted after the note duration when you use the \noteOn command.

control change

Send control change messages.

\polyTouch

\program

\touch

Emit after touch messages.

\bend

\sysex

Send a sysex message.