refactor(midi): extract MIDI message handlers into dedicated functions
- Move MIDI API logic into separate functions following #1274 (sendCC, sendProgramChange, sendPitchBend, etc.)
This commit is contained in:
parent
919c2854d5
commit
f802f18d68
4 changed files with 59 additions and 221 deletions
|
|
@ -5063,10 +5063,10 @@ exports[`runs examples > example "midi" example index 0 1`] = `
|
|||
|
||||
exports[`runs examples > example "midibend" example index 0 1`] = `
|
||||
[
|
||||
"[ 0/1 → 1/1 | note:c4 midibend:0.282842712474619 ]",
|
||||
"[ 1/1 → 2/1 | note:c4 midibend:0.282842712474619 ]",
|
||||
"[ 2/1 → 3/1 | note:c4 midibend:-0.282842712474619 ]",
|
||||
"[ 3/1 → 4/1 | note:c4 midibend:-0.2828427124746191 ]",
|
||||
"[ 0/1 → 1/1 | note:c4 midibend:0 ]",
|
||||
"[ 1/1 → 2/1 | note:c4 midibend:0.4 ]",
|
||||
"[ 2/1 → 3/1 | note:c4 midibend:1.1102230246251565e-16 ]",
|
||||
"[ 3/1 → 4/1 | note:c4 midibend:-0.4 ]",
|
||||
]
|
||||
`;
|
||||
|
||||
|
|
@ -5301,10 +5301,10 @@ exports[`runs examples > example "midin" example index 0 1`] = `
|
|||
|
||||
exports[`runs examples > example "miditouch" example index 0 1`] = `
|
||||
[
|
||||
"[ 0/1 → 1/1 | note:c4 miditouch:0.8535533905932737 ]",
|
||||
"[ 1/1 → 2/1 | note:c4 miditouch:0.8535533905932737 ]",
|
||||
"[ 2/1 → 3/1 | note:c4 miditouch:0.14644660940672627 ]",
|
||||
"[ 3/1 → 4/1 | note:c4 miditouch:0.14644660940672616 ]",
|
||||
"[ 0/1 → 1/1 | note:c4 miditouch:0.5 ]",
|
||||
"[ 1/1 → 2/1 | note:c4 miditouch:1 ]",
|
||||
"[ 2/1 → 3/1 | note:c4 miditouch:0.5000000000000001 ]",
|
||||
"[ 3/1 → 4/1 | note:c4 miditouch:0 ]",
|
||||
]
|
||||
`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue