Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| creating-players [2024/03/18 20:18] – steve.wang | creating-players [2024/03/18 20:22] (current) – [Example] steve.wang | ||
|---|---|---|---|
| Line 134: | Line 134: | ||
| // | // | ||
| simpleMelodyData.velocity = [100, 100, 100, 100] | simpleMelodyData.velocity = [100, 100, 100, 100] | ||
| - | simpleMelodyData.rhythmMap = [1, 2, 3, 4] | + | simpleMelodyData.rhythmMap = [1, 1, 1, 1] |
| simpleMelodyData.noteValues = [[1], [2], [3], [4]] | simpleMelodyData.noteValues = [[1], [2], [3], [4]] | ||
| simpleMelodyData.rootMap = [ ' | simpleMelodyData.rootMap = [ ' | ||
| Line 170: | Line 170: | ||
| // | // | ||
| simpleMelodyData.velocity = [100, 100, 100, 100] | simpleMelodyData.velocity = [100, 100, 100, 100] | ||
| - | simpleMelodyData.rhythmMap = [1, 2, 3, 4] | + | simpleMelodyData.rhythmMap = [1, 1, 1, 1] |
| simpleMelodyData.noteValues = [[1], [2], [3], [4]] | simpleMelodyData.noteValues = [[1], [2], [3], [4]] | ||
| simpleMelodyData.rootMap = [ ' | simpleMelodyData.rootMap = [ ' | ||
| Line 182: | Line 182: | ||
| //make or modify player to use info: | //make or modify player to use info: | ||
| K.assignPlayerForMusicSynthesizerMidiOutput(e, | K.assignPlayerForMusicSynthesizerMidiOutput(e, | ||
| + | //configure legatoMap: | ||
| + | e.players.exampleMidiPlayer1.legatoMap = ' | ||
| //signal to player to start playing: | //signal to player to start playing: | ||