mirror of https://github.com/nealey/vail.git
Maybe support N6ARA TinyMIDI: needs testing
This commit is contained in:
parent
8343dba406
commit
5827fdc8e1
|
@ -194,19 +194,23 @@ export class MIDI extends Input{
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (data[1] % 12) {
|
switch (data[1]) {
|
||||||
case 0: // C
|
case 0: // Vail Adapter
|
||||||
this.keyer.Straight(begin)
|
this.keyer.Straight(begin)
|
||||||
break
|
break
|
||||||
case 1: // C#
|
case 1: // Vail Adapter
|
||||||
|
case 20: // N6ARA TinyMIDI
|
||||||
this.keyer.Key(0, begin)
|
this.keyer.Key(0, begin)
|
||||||
break
|
break
|
||||||
case 2: // D
|
case 2: // Vail Adapter
|
||||||
|
case 21: // N6ARA TinyMIDI
|
||||||
this.keyer.Key(1, begin)
|
this.keyer.Key(1, begin)
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue