fix test error

- add mock 'midin' and 'sysex'
- typo in sysex example
This commit is contained in:
nkymut 2025-01-25 01:12:38 +08:00
parent d06a75a2cd
commit 393d17a41b
3 changed files with 81 additions and 2 deletions

View file

@ -1669,7 +1669,7 @@ export const { miditouch } = registerControl('miditouch');
* @param {number | Pattern} id Sysex ID
* @param {number | Pattern} data Sysex data
* @example
* note("c4").sysex("0x77, "0x01:0x02:0x03:0x04").midichan(1).midi()
* note("c4").sysex(["0x77", "0x01:0x02:0x03:0x04"]).midichan(1).midi()
*/
export const sysex = register('sysex', (args, pat) => {
if (!Array.isArray(args)) {