Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
midi-cc [2024/02/19 16:40] – steve.wang | midi-cc [2024/03/18 19:55] (current) – steve.wang | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Create CC Changes For A Player to Follow ====== | ====== Create CC Changes For A Player to Follow ====== | ||
**Overview: ** This tutorial will teach you how to use Konduktiva to send MIDI Control Change(CC) messages. | **Overview: ** This tutorial will teach you how to use Konduktiva to send MIDI Control Change(CC) messages. | ||
- | + | **Things To Note:** This tutorial assumes you have already installed Konduktiva successfully using the [[https:// | |
- | **Things To Note:** This tutorial assumes you have already installed Konduktiva successfully using the [[https:// | + | <code javascript> |
+ | const K = require(' | ||
+ | let e = K.setUpMusicalEnvironment(K.defaultConfigurationObject, | ||
+ | </ | ||
The example below is based on Yoshimi. Click [[https:// | The example below is based on Yoshimi. Click [[https:// | ||
+ | |||
+ | |||
+ | 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 = ' | ||
+ | </ | ||
The key to making Konduktiva send control change messages is the // | The key to making Konduktiva send control change messages is the // | ||
- | First create | + | Create |
<code javascript> | <code javascript> | ||
e.controlChangeMaps.p1 = new K.QuantizedMap(10, | e.controlChangeMaps.p1 = new K.QuantizedMap(10, | ||
Line 21: | 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> |