Hi All,
Hoping for some insight, Here is my goal:
- Write a synthdef.
- Compile it.
- Encrypt the compiled definition.
- Send the encrypted file to a user.
- Allow the user to decrypt and load the synthdef while exposing the decrypted data to as little inspection as possible.
I am not looking for something that’s unhackable, just less conveniently accessible than saving the decrypted file to disk.
What I have found is the following:
- The method .writeDefFile of the SynthDef class seems to compile the synth def and save it to disk. The format is semi-human-readable, and does not appear to be the sort of data that belongs in a buffer.
- The server command \d_recv appears to load a synthdef from a buffer.
What I do not know:
- The format of the data in the buffer to be loaded by \d_recv.
- A method to compile a synthdef into a buffer. ( or translate a .scsyndef file into a buffer )
Any help/information would be very appreciated!
-Kevin Warren