Slides approximating the Electron application used in our Angular presentation at ngConf 2017.
You can view the presentation here
https://www.youtube.com/watch?v=kW37RU5k8xM
10. private midiMessageReceived(message: any) {
let cmd = message.status >> 4;24 pt
let noteNumber = noteTransforms[message.data[0]];
let velocity = 0;
if (message.data.length > 1) {
velocity = message.data[1] / 120; // needs to be between 0 and 1 and sometimes it is over 100 ¯_(ツ)_/¯
}
// MIDI noteon with velocity=0 is the same as noteoff
if (cmd === 8 || ((cmd === 9) && (velocity === 0))) { // noteoff
this.noteOff(noteNumber);
} else if (cmd === 9) { // note on
this.noteOn(noteNumber, velocity);
}
}
noteOn(note, velocity) {
this.synth.triggerAttack(note, null, velocity);
}
noteOff(note) {
this.synth.triggerRelease(note);
}
Play Midi Note
19. First Verse
I'm so attracted to what I observe
Can't help reacting to the things I've heard
I never stress about the state of you
Because I'm first to know of anything you do
20. Chorus
It's all about, Angular
Baby you're ahead of the curve
You've got all the tools I prefer
I'mma let it out, ain't no doubt, all about that, Angular
21. Second Verse
I love the way you're way ahead of time
I say you're classy just to say you're fine
You're more than just a CLI to me
I think I might just love you universally
22. Chorus
It's all about, Angular
Baby you're ahead of the curve
You've got all the tools I prefer
I'mma let it out, ain't no doubt, all about that, Angular
23. Bridge
It's semantics but I know you're mine
Our romance is changing all the time
So progressive, I can catch you offline
Total package, you're one of a kind
25. Chorus
It's all about, Angular
Baby you're ahead of the curve
You've got all the tools I prefer
I'mma let it out, ain't no doubt, all about that, Angular