Classes for Patches and Patchbanks #179
Replies: 2 comments 12 replies
-
Interesting. |
Beta Was this translation helpful? Give feedback.
-
I'm guessing that was what I was intending, because json doesn't accept type nil, so you would be writing a String value to the file. When you read it back in you could then interpret "nil" how you wanted. I guess you could also do a boolean and check for truth when you load the json file back into your program: 🤔 tempName = synthBank.name or false tempAuthor = synthBank.author or false tempCategory = synthBank.category or false tempSysex = synthBank.sysex or false
|
Beta Was this translation helpful? Give feedback.
-
This is the method that I've pretty much standardized for storing patches with associated information and banks of patches.
I use these for librarians, for example.
Elements within the patchbank can be accessed and copied like this
synthBank[i] = synthBank2[j]
You have full access to elements like
I strip sysex headers off during import and only store the data segment of the sysex. I rebuild the header when I send it to the synth. The reason for this is because the header normally contains the destination bank and program number, and we want that to be dynamically assigned.
Beta Was this translation helpful? Give feedback.
All reactions