Skip to content

Commit

Permalink
[orx-midi] Add listMidiDevices() and openMidiDevice()
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinRNDR committed Apr 26, 2023
1 parent dd5317e commit 8cf89d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions orx-jvm/orx-midi/src/main/kotlin/MidiTransceiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,6 @@ class MidiTransceiver(program: Program, val receiverDevice: MidiDevice?, val tra
transmitterDevicer?.close()
}
}
fun listMidiDevices() = MidiDeviceDescription.list()

fun Program.openMidiDevice(name: String) = MidiTransceiver.fromDeviceVendor(this, name)

0 comments on commit 8cf89d4

Please sign in to comment.