[orx-midi] program change support (#128)

This commit is contained in:
Byron
2020-06-20 00:52:07 +03:00
committed by GitHub
parent b9401e03d3
commit 9cc2209fc7
3 changed files with 30 additions and 2 deletions

View File

@@ -18,6 +18,11 @@ val dev = MidiTransceiver.fromDeviceVendor("BCR2000 [hw:2,0,0]", "ALSA (http://w
dev.controlChanged.listen {
println("${it.channel} ${it.control} ${it.value}")
}
// or program changes
dev.programChange.listen {
println("${it.channel} ${it.program}")
}
```
## Further reading