{Live:JS}
let source =
context.createMediaElementSource(audio);
let context = new AudioContext();
let audio = new Audio();
source.connect(
context.destination
);
let analyser =
context.createAnalyser();
source.connect(analyser);
navigator.requestMIDIAccess();
MIDIMessageEvent
[
255, 0, 0 /* 1. LED */
];
[
255, 0, 0, /* 1. LED */
0, 255, 0 /* 2. LED */
];
1.
2.
{ /* Address: 1 */
0: 255, 1: 0, 2: 0
};
{ /* Address: 1 */
0: 255, 1: 0, 2: 0,
/* Address: 4 */
3: 0, 4: 255, 5: 0
};
{ /* Address: 1 */
0: 255, 1: 0, 2: 0,
/* Address: 4 */
3: 0, 4: 255, 5: 0,
/* Address: 16 */
15: 255, 16: 255
};
{Live:JS}
{Live:JS}