fbpx
Skip to main content

MIDI Forum

Notifications
Clear all

Read patch numbers?

5 Posts
3 Users
0 Reactions
9,032 Views
Mark
 Mark
Posts: 2
New Member
Topic starter
 

Do the MIDI Specifications provide a mechanism to read the currently selected patch number from a device?
I've scanned a bunch of the specification documents but not found what I'm looking for. It could be that I'm just looking in the wrong documents or that the capability doesn't exist.
What I want to do is read the currently selected patch number from a device and I need to know how to format the message.
I know how to send program change message and am looking for a way to read back the data from the device on the receiving end.
Thanks

 
Posted : 15/05/2021 9:03 am
Geoff
Posts: 1039
Noble Member
 

I have never seen mention of such a command, and I'm not sure there is any point as it's such a trivial task to send midi data to set the channels of ANY device to whatever.

Some devices do set channels to specific instruments on startup or reset, but this is probably different for each device. This may be detailed in the respective manual.

The current setting, where this is stored, would be at a specific memory location in the RAM of the device, but this location will be different for each device. A SysEx command could probably be created to read (and return) this data as a SysEx data dump, but it would need to be different for each device.

As I suggested, the simplest solution would be to create a small midi file that does nothing but send the PC commands to set each channel to your preferred defaults, and 'play' that file before doing anything else. Then you KNOW what the settings are.

Geoff

 
Posted : 15/05/2021 9:58 am
Mike Kent
Posts: 85
Trusted Member
 

MIDI 1.0 does not have this feature.

We are currently defining extensions for MIDI 2.0 and I'm reasonably certain that this will be a feature in the future.

Chair of MIDI 2.0 Working Group

 
Posted : 15/05/2021 12:07 pm
Geoff
Posts: 1039
Noble Member
 

So, the Midi 2.0 Spec may include such a facility.

Then manufacturers will need to implement this, so that devices will send something back.

Then software will need to recognise the data returned, and I assume display this in a useful form. And update this information on a real-time basis?

I wonder how long all this will take?

I didn't mention this before, because it's not really anything to do with the question as asked, but certain devices do NOW display the current setting on their little LCD screen - if they have one. For example, my Yamaha MU90r does this for each channel selected, so does my Korg NS5R. Other devices with a screen may do the same.

Geoff

 
Posted : 15/05/2021 2:51 pm
Mark
 Mark
Posts: 2
New Member
Topic starter
 

Thank you all for your responses.
My application is for a foot controller for a guitar amp modeler. It sends +/- 1, 5, 20 patch increment (program change) commands.
It would be a nice feature if the controller could read the current patch number and start from there.

Mark

 
Posted : 16/05/2021 8:32 am
Share: