Possible to display the ASCII name for a program in Electra?

Is it possible to display the ASCII name for a preset in Electra? For example, the name of a program is 16 characters long in the Behringer Wave. These characters are located at offset 0-15 in the sysex dump.

One method I have used (thanks to @NewIgnis) is to create a list control for each of the 16 characters in the name with a list of the ASCII mappings (A → 65, B → 66, z → 122 etc). That would use 16 controls on a page. Another way might be to use the info.setText() and string.char() functions. Something like this perhaps (the characters are NRPNs 810-825 in this example).

function setName (progNum)
  local patchName = ""
  if progNum ~= 0 then  
     for i = 810, 825 do
        patchName = patchName .. string.char (parameterMap.get (deviceId, PT_NRPN, i))
     end
  end
  info.setText(patchName)
end
1 Like

The group field ( I always think of it as the label above a control) can hold about 20 characters.

Using a bit of Lua to convert those 16 bytes from the sysex into a string and then set that as the label for the group and it will display.

3 Likes

In all of my presets there is usually a patch browser, lostly on page 6. In the latest presets I make, I typically set the control name of the patch number control to the name of the patch. By doing so the patchnumber is shown in the upper half of the control, the name in the lower half .

Another habit I took over from @oldgearguy is doing a full patch bank dump at the start and store all patch names in an array. I can then scroll through all the patch names without have to first to each patch dump separately.

1 Like