Frontend Meetup Budapest 2016 by @TimPietrusky
Web Audio
Web MIDI
Canvas
WebSocket
LED
Visualization
Music
XDrum DD-530
USB
MIDIMessageEvent
Rx.Observable.filter
reactivex.io/rxjs
this.mapping = {
snare : 38,
tom1 : 48,
tom2 : 45,
tom3 : 43,
hihat_open : 46,
hihat_closed : 42,
hihatControl : 44,
crash : 49,
ride : 51,
kick : 36
};
Snare
Canvas
Draw
NeoPixel
FadeCandy
Wires
USB
Map Canvas to NeoPixel
let leds = [
255, 0, 0, // Red
0, 255, 0, // Green
0, 0, 255 // Blue
]
Canvas
let data = ctx.getImageData(
selector.x,
selector.y,
1, // px per LED -> x
8 * 30 // px / LED -> y
);
T h a n k y o u !