This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Receives MIDI events | |
function recv(evt) { | |
var data = evt.data; | |
var cmd = data[2] & 0xF0; // command | |
var chn = data[2] & 0x0F; // channel | |
var num = data[3]; // note or controller number | |
var val = data[4]; // velocity or controller value | |
switch(cmd) { | |
case 0x80: // noteOff | |
case 0x90: // noteOn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Module } from '@nestjs/common'; | |
import { MyLibModule } from './my-lib.module'; | |
@Module({ | |
imports: [ | |
MyLibModule.register({ name: 'Enzo' }), | |
] | |
}) | |
export class ImportingModule {} |