Jump to content


Photo

[fixed] Two midi devices get the same midi device name

Midi

  • Please log in to reply
4 replies to this topic

#1 Cie

Cie

    Big Super GrandMasta Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 793 posts
  • Gender:Male

Posted 20 March 2016 - 17:36

I have two Launchpads Mini which I am using with my tools (e.g. Step Sequencer and Live Dive, see signature). The tools support multiple Launchpads which is working fine in Renoise 3.01 and API 4. When trying to upgrade the tools to Renoise 3.1 and Renoise API 5 the Launchpads do not behave correctly anymore. Selecting a button on one of the Launchpads either does not lit a light or does not send a midi message at all to Renoise.

It seems that the midi device names of both Launchpads are the same; The first Launchpad has the name "Launchpad Mini" and the second Launchpad also.

In the previous Renoise version 3.01 the first Launchpad has the midi device name "Launchpad Mini", and the second "Launchpad Mini #2".

 

In the tools I am distinguishing the midi devices by their name, so I know which device sent a message. And also I am using the device name to determine sending a message to a specified device.

The described behaviour above break my tools when using more than one Launchpad unfortunately.

 

Please have a look at the pictures, they show the names of the two Launchpads in the Preferences/Midi/InputDevices menue, and also the printed out device names in the lua console.

 

Renoise 3.01 (two devices, different names)

midi_devices_3_01.jpg

 

Renoise 3.1 (two devices, same name)

midi_devices_3_1.jpg

 

 

 



#2 Cie

Cie

    Big Super GrandMasta Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 793 posts
  • Gender:Male

Posted 28 March 2016 - 15:05

Is there any other way to create an input/output midi device as with the device name? (Maybe with an unique id etc.)
Or is it possible to change a device name for a midi device?

renoise.Midi.available_input_devices() -> [list of strings]

renoise.Midi.create_input_device(device_name [,callback] [, sysex_callback]) -> [MidiInputDevice object] 

renoise.Midi.create_output_device(device_name) -> [MidiOutputDevice object]

Edited by Cie, 28 March 2016 - 15:07.


#3 danoise

danoise

    Probably More God or Borg Than Human Member

  • Renoise Team
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 6171 posts
  • Gender:Male
  • Interests:wildlife + urban trekking

Posted 04 April 2016 - 09:11

Hm, I tried creating some virtual MIDI ports using the same naming convention. 

 

LoopMIDI Port 

LoopMIDI Port #2

etc. 

 

And they turn up just fine in Renoise as separately named devices.

Also, I used to have two Launchpads, but I gave one away. So, not able to test with actual hardware. 

 

I think we need taktik to have a look at this  :)

 

Question: do the Launchpads carry the same name outside of Renoise? (IOW, is the "#2" suffix added by Renoise and not by the OS or device driver?)

 

 

Is there any other way to create an input/output midi device as with the device name? (Maybe with an unique id etc.)

Or is it possible to change a device name for a midi device?

 

No, not that I know of.


Tracking with Stuff. API wishlist | Soundcloud


#4 taktik

taktik

    Renoise Developer

  • Admins
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 15040 posts
  • Gender:Male
  • Location:Berlin, Germany
  • Interests:füße waschen

Posted 07 April 2016 - 18:41

Hello Cie. We internally do give MIDI devices unique names, in case that the OS or drivers don't care about this, but this somehow got broken for Renoise 3.1. Will fix that...


  • danoise and Cie like this

#5 Cie

Cie

    Big Super GrandMasta Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 793 posts
  • Gender:Male

Posted 03 June 2016 - 19:06

Ok, thank you for the explanation. Looking forward to the fix :)







Also tagged with one or more of these keywords: Midi