midichan

From TidalCycles userbase
Revision as of 00:09, 10 December 2018 by Yaxu (talk | contribs) (Yaxu moved page Midichan to midichan)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Type: midichan :: Pattern Double -> ControlPattern

midichan turns a number pattern into a control pattern that controls what MIDI channel to play a MIDI pattern on.

midichan is indexed at zero, which means a value of "0" will play on MIDI channel 1, a value of "1" will play on MIDI channel 2, and so on.

d1 $ note "0 3 7 9" # s "midi" # midichan "5"

Observe that you can make a pattern to play on multiple MIDI channels:

d1 $ note "0 3 7 9" # s "midi" # midichan "5 1 0 3"