Adding show scale method to interact with lighted keyboards

This commit is contained in:
2023-10-12 01:23:16 +03:00
parent 6b8d1b4608
commit 9c0f231bdc
5 changed files with 142 additions and 7 deletions

View File

@ -149,5 +149,26 @@ beat(.25) :: sound('sine')
`,
true
)}
## Scale output for lighted keys
Topos can output scales to external keyboards lighted keys using the following functions:
- <ic>show_scale(key: string, scale: string|int, channel?: number, port?: string|number, soundOff?: boolean): void</ic>: sends the scale as midi on messages to specified port and channel to light the keys of external keyboard. If soundOff is true, all sound off message will be sent after every note on message. This can be useful with some keyboards not supporting external channel for lightning or routing for the midi in to suppress the sound from incoming note on messages.
${makeExample(
"Show scale on external keyboard",
`show_scale("F","aeolian",0,4)`,
true
)}
${makeExample(
"Hide scale",
`hide_scale("F","aeolian",0,4)`,
true
)}
`
}