christofmuc / KnobKraft-orm

The KnobKraft Orm - The free modern cross-platform MIDI Sysex Librarian
GNU Affero General Public License v3.0
200 stars 25 forks source link

Save Sysex Bank from the patches that are in the the Synth Bank window. #296

Closed planist79 closed 7 months ago

planist79 commented 8 months ago

Hello,

i would like to request another function for the DW-8000, or in general:

Save Sysex Bank from the patches that are in the the Synth Bank window. Ot is this already possible and i have not found out how?..

Thank you,

Peter

christofmuc commented 8 months ago

Hi Peter,

this is already possible, but only in a non-straightforward way.

The logic right now is - banks are only lists (special lists), and lists can be saved to sysex with the Patches... Export into sysex file function. The trick is to get a bank to be displayed as a user list. For this, you can just drag and drop the synth bank (or a user bank) into the user list section, and you will get a copy of that bank as a normal user list. If you select that list, the Export into sysex file... menu will operate on the 64 patches of that list and you can create an appropriate file.

For the DW8000 bank format, select Sysex format individual program dumps, file format one file with all messages. This would only work with the new adaptation obviously, as the previous code had only edit buffer dump capability and not program dump capability.

I should offer a quicker menu entry to save a bank to disk - the only reason I didn't do it is that synths which have only a bank format like the Kawai K3 need to be treated differently, and I hadn't started to work on that.

It's pretty easy, just needs to get done.

christofmuc commented 8 months ago

So much for the theory. I tested this, and it does export but all programs have the number 0, because the DW-8000 has no real program dump format. So the hack above works for synths that have numberFromDump() implemented, but not for edit buffer only synths. Even for those, the order of the export is not the same as the order of the patches in the list.

I will add a separate Export List/Bank menu entry, and maybe a button as well in the bank window so it is easier to find.

christofmuc commented 7 months ago

I added this in 2.2.2, please give it a try and let me know!

planist79 commented 7 months ago

Great!!

It works well for the DW-8000 Synth Banks i compiled with KK. Both, the menu entry and the "Export Bank"-button in the Synth Bank window work well.

Tested options:

  1. Syx Buffer Dumps / Syx Patch Dumps
  2. Single Syx / All in one Syx

Thank you!