orx icon indicating copy to clipboard operation
orx copied to clipboard

MIDI Connection Delay

Open thomas-rndr opened this issue 2 years ago • 2 comments

Operating System

Mac

OPENRNDR version

0.4.2

ORX version

0.4.2

Java version (if applicable)

No response

Describe the bug

My midi controller is repeatedly taking over 12 seconds to load.

Steps to reproduce the bug

Here is the code I'm running that produces this information

program {
    println("MidiTransceiver.fromDeviceVendor() begin:  ${System.currentTimeMillis()}")
    val controller = MidiTransceiver.fromDeviceVendor("Arturia MiniLab mkII","Arturia")
    println("Controller created:  ${System.currentTimeMillis()}")

this outputs MidiTransceiver.fromDeviceVendor() begin: 1679591166978 Controller created: 1679591179802

thomas-rndr avatar Mar 23 '23 17:03 thomas-rndr

I don't know why this can be, but maybe it's useful to know if it's an M1 CPU.

Does it also happen when running the program from the command line with ./gradlew run.?

hamoid avatar Mar 24 '23 17:03 hamoid

Is

MidiDeviceDescription.list().forEach {
    println("${it.name}, ${it.vendor} r:${it.receive} t:${it.transmit}")
}

also slow?

hamoid avatar Mar 24 '23 17:03 hamoid