midi-cc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
midi-cc [2024/03/18 19:45] steve.wangmidi-cc [2024/03/18 19:55] (current) steve.wang
Line 8: Line 8:
  
 The example below is based on Yoshimi. Click [[https://yoshimi.github.io/docs/user-guide/mlearn/mlearn.html|here]] to read more about MIDI CC in Yoshimi. The example below is based on Yoshimi. Click [[https://yoshimi.github.io/docs/user-guide/mlearn/mlearn.html|here]] to read more about MIDI CC in Yoshimi.
 +
 +
 +A player that sends controlChange messages will not send other MIDI messages anymore. After configured, it will only send MIDI control change messages and nothing more.
 +To configure a player to ONLY send MIDI CC messages change the action function and define the controlChangeMap variable in the player.
 +<code javascript>
 +//Changing action function:
 +e.players.exampleMidiPlayer1.action = 'sendMidiCCMessages'
 +</code>
  
 The key to making Konduktiva send control change messages is the //controlChangeMap// variable in the //MusicalEnvironment//. //QuantizedMaps// stored in //controlChangeMap// variable.  The key to making Konduktiva send control change messages is the //controlChangeMap// variable in the //MusicalEnvironment//. //QuantizedMaps// stored in //controlChangeMap// variable. 
  
-First create a controlChange map and add it to //e.controlChangeMaps//. I will call this one //p1//+Create a controlChange map and add it to //e.controlChangeMaps//. I will call this one //p1//
 <code javascript> <code javascript>
 e.controlChangeMaps.p1 = new K.QuantizedMap(10, e.controlChangeMaps.p1 = new K.QuantizedMap(10,
Line 24: Line 32:
 In Yoshimi, this will change whatever you assign 37 to. In Yoshimi, this will change whatever you assign 37 to.
  
 + 
 Next I will ensure the exampleMidiPlayer1 uses it: Next I will ensure the exampleMidiPlayer1 uses it:
 <code javascript> <code javascript>
  • midi-cc.1710816347.txt.gz
  • Last modified: 2024/03/18 19:45
  • by steve.wang