[orx-midi] Add property <-> midi control bindings

This commit is contained in:
Edwin Jakobs
2023-04-19 16:59:54 +02:00
parent bee77e7f64
commit a61edcbbf7
6 changed files with 344 additions and 56 deletions

View File

@@ -14,7 +14,7 @@ MidiDeviceDescription.list().forEach {
}
// -- open a midi controller and listen for control changes
val dev = MidiTransceiver.fromDeviceVendor("BCR2000 [hw:2,0,0]", "ALSA (http://www.alsa-project.org)")
val dev = MidiTransceiver.fromDeviceVendor(this, "BCR2000 [hw:2,0,0]", "ALSA (http://www.alsa-project.org)")
dev.controlChanged.listen {
println("${it.channel} ${it.control} ${it.value}")
}