Notifications
Clear all

Seeking help toward a unified library for Korg Gadget 2

14 Posts
3 Users
1 Likes
308 Views
(@getdunne)
Illustrious Member Admin
Joined: 3 years ago
Posts: 3907
Topic starter  

KORG's Gadget 2 features a suite of 43 VST plug-ins, mostly instruments. At one time, these didn't work properly in Unify, but the latest version (2.7.2 I believe) works well on both Mac and Windows, especially after a few tweaks to the Unify code which I'll be putting out for beta-testing soon.

I've been working on a new unified library for all the instruments, using AutoHotKey (AHK) to automate the process on Windows. Most of the work has gone very smoothly, yielding over 2100 patches for all except Darwin, Glasgow, Marseille, and Milpitas. I could use some help for these. I have devised some advanced AHK programming techniques to load the patches one by one, but there's no automatic way to get the preset-names. Instead, I'm manually typing all the preset-names (which I read from looking at the plug-in GUI) into a text file, one file per "bank" or "cartridge" of presets. I've attached an example of one I made for Darwin's DRUMS 2 cartridge.

If anyone here (who owns Gadget 2 already) is willing to help create these preset-name files, please comment here. I've started on Darwin, and have already done the first 20 cartridges, but there are 20 more to go (AKIRA through to T1 VOICE). Milpitas also uses the virtual-cartridge system (25 cartridges, 50 presets each), but Glasgow and Marseille do not, so they will only need one file each. As the attached file shows, I've adopted the convention of including both the plugin-name and the cartridge-name (where used) in each text file, so I can tell them apart easily.


   
Quote
(@craigr68)
Member
Joined: 2 years ago
Posts: 193
 

"Instead, I'm manually typing all the preset-names (which I read from looking at the plug-in GUI) into a text file, one file per "bank" or "cartridge" of presets"

I don't know if it's worth the effort or even possible, but maybe you could use OCR with AHK to extrapolate the preset-names from the GUI.  I did that with over a thousand Synthmaster patches a couple years ago when we were first automating the process.  It was a little challenging and didn't work perfectly - I had to fix a few.  Synthmaster patch names were in some kind of binary looking database which was impossible to extract and it wouldn't prompt the name when you went "Save As".  I think JeremyH used OCR also and probably improved the process. 

Have you tried both ways to get the patch names? 

1. I'm guessing you can't get them from the GUI where you go Save As and copying the name. 

2. In some cases you can get them from a file directory if that's how they're stored - you can use AHK "Loop, Files" and get the names.  

This was the AHK code I used.  I downloaded the free capture2text program from "https://capture2text.sourceforge.net/#download" which runs from a command line.  You set the coordinates of what to extract.  You wind up with a text file of the preset names.

Source_file=C:\Users\craigr\Utilities\AUTOHOTKEY\UnifySynthmasterSynthLead.txt
Loop,335
{
RunWait, C:\ProgramFilesMine\Capture2Text\Capture2Text_CLI.exe --clipboard --screen-rect "565 60 765 75",,hide
sleep 200
fileappend, %Clipboard%, %Source_file%
counter++
; Tooltip, %counter%, 675,570
MouseClick, left, 780, 72 ;clicks right arrow icon for next patch at top of Synthmaster
sleep 200
}
return

This post was modified 1 month ago by craigr68

   
ReplyQuote
(@thsve)
Member
Joined: 3 years ago
Posts: 315
 

In the AHK script you can do this:

Glasgow, Marseille: click save as, copy name and paste in UNIFY

Milpitas: click write, click save as, copy name(trim spaces), paste in UNIFY

Darwin:  Unfortunately can't find a way to find/get/copy names. Maybee @craigr68 suggstions using OCR might work. I've tried it earlier but with no good result.

Win 10 and 11/Cubase Pro 12/Unify/Wavelab 8/Vienna Pro 7/Spectrasonics all/NI 13 Ultimate/Izotope MPS2/Serum/Cthulhu/Scaler 2.5/MusicLab guitar vsts/BIAB 2022/TouchOSC/Metagrid Pro etc


   
ReplyQuote
(@getdunne)
Illustrious Member Admin
Joined: 3 years ago
Posts: 3907
Topic starter  

@thsve

Excellent suggestions, thank you. For Darwin, I will simply continue the manual typing approach. It doesn't take that long, and works very well.


   
ReplyQuote
(@getdunne)
Illustrious Member Admin
Joined: 3 years ago
Posts: 3907
Topic starter  

@craigr68

Thank you for the Capture2Text link and code sample. I will give this a try.


   
ReplyQuote
(@thsve)
Member
Joined: 3 years ago
Posts: 315
 

@getdunne 

I couldn’t resist, so I wrote a script for Milpitas that is running right now. Will be done shortly. If you want a specific setup for the patches, just send a template patch and I can rerun it.

Win 10 and 11/Cubase Pro 12/Unify/Wavelab 8/Vienna Pro 7/Spectrasonics all/NI 13 Ultimate/Izotope MPS2/Serum/Cthulhu/Scaler 2.5/MusicLab guitar vsts/BIAB 2022/TouchOSC/Metagrid Pro etc


   
ReplyQuote
(@getdunne)
Illustrious Member Admin
Joined: 3 years ago
Posts: 3907
Topic starter  

Posted by: @thsve

@getdunne 

I couldn’t resist, so I wrote a script for Milpitas that is running right now. Will be done shortly. If you want a specific setup for the patches, just send a template patch and I can rerun it.

That's terrific, thank you. Just make the patches however you can; I can reform them later. Each patch will be about 101 KB, so the total package will be quite large, and you may not be able to attach the zip to a comment here in the Forum. I will email you directly to discuss alternatives.

 


   
ReplyQuote
(@thsve)
Member
Joined: 3 years ago
Posts: 315
 

@getdunne 

I will send you a dropbox link

Win 10 and 11/Cubase Pro 12/Unify/Wavelab 8/Vienna Pro 7/Spectrasonics all/NI 13 Ultimate/Izotope MPS2/Serum/Cthulhu/Scaler 2.5/MusicLab guitar vsts/BIAB 2022/TouchOSC/Metagrid Pro etc


   
getdunne reacted
ReplyQuote
(@craigr68)
Member
Joined: 2 years ago
Posts: 193
 

If you try OCR, probably the best contrast you can get works best.  With Synthmaster, I switched skins.  If you have that luxury, probably something like black on white works best.  I don't have any of these Korg VSTs, so I'm not much help otherwise.  Maybe I'll check them out sometime. 

I was curious if you figured out how the presets are stored on hard drive.

This post was modified 1 month ago by craigr68

   
ReplyQuote
(@getdunne)
Illustrious Member Admin
Joined: 3 years ago
Posts: 3907
Topic starter  

@thsve

I forgot to mention one thing: Please name your Milpitas patches using the format Milpitas-<cartridge name> - <preset name>, e.g.

Milpitas-RAM 1 - Ski Jam

There's no way to determine the cartridge name otherwise, and sometimes two or more cartridges contain similarly-named presets (which may or may not be identical), so including the cartridge name ensures they remain distinct.

Provided you include both cartridge-name and preset-name, it will be OK even if you use a slightly different format, as I can adjust automatically later.


   
ReplyQuote
(@thsve)
Member
Joined: 3 years ago
Posts: 315
 

@getdunne 

Almost done, naming as name (cartridge) for example: ”Sicilian Theme (ROM7)” Library name ”Unified - KORG Gadgets - Milpitas. Do you wan’t me to redo it😇?

Win 10 and 11/Cubase Pro 12/Unify/Wavelab 8/Vienna Pro 7/Spectrasonics all/NI 13 Ultimate/Izotope MPS2/Serum/Cthulhu/Scaler 2.5/MusicLab guitar vsts/BIAB 2022/TouchOSC/Metagrid Pro etc


   
ReplyQuote
(@getdunne)
Illustrious Member Admin
Joined: 3 years ago
Posts: 3907
Topic starter  

Posted by: @thsve

Almost done, naming as name (cartridge) for example: ”Sicilian Theme (ROM7)” Library name ”Unified - KORG Gadgets - Milpitas. Do you want me to redo it😇?

No, that's OK, thank you. I can rework these names automatically using some C++ code I have here. I haven't decided on a final naming scheme yet anyway.

 


   
ReplyQuote
(@thsve)
Member
Joined: 3 years ago
Posts: 315
 

@getdunne 

Link sent to you in mail.

Win 10 and 11/Cubase Pro 12/Unify/Wavelab 8/Vienna Pro 7/Spectrasonics all/NI 13 Ultimate/Izotope MPS2/Serum/Cthulhu/Scaler 2.5/MusicLab guitar vsts/BIAB 2022/TouchOSC/Metagrid Pro etc


   
ReplyQuote
(@getdunne)
Illustrious Member Admin
Joined: 3 years ago
Posts: 3907
Topic starter  

@thsve

Wonderful, thank you.

EVERYONE: Thomas (thsve) has offered to help unify Glasgow and Marseille, and I intend to finish Darwin myself, so we can call this matter closed.


   
ReplyQuote
Share: