[Csnd] Typical Preset Implementation
Date | 2014-03-27 15:54 |
From | Dominic Melville |
Subject | [Csnd] Typical Preset Implementation |
Hello list, Does anyone know of a specific opcode, UDO or workaround that would allow me to implement typical preset behaviour within a Csound instrument? I've got an instrument running on an RPI that has physical hardware controls including pots, faders etc. I want to be able to save the states of the parameters controlled by the hardware controls as presets, like one would on a typical synth.
So for example, I load the basic instrument with it's initial values, play around with the controls tweaking various parameters then once I've got a sound I'm happy with, I want the ability to save and name it for recalling and use later on.
Any ideas or thoughts would be greatly appreciated, I've dug through the manual, Floss manual, Csound book and searched online but can't find anything outside of CsoundQT or Cabbage at all. Running either isn't really an option for this project.
Thanks Dominic
|
Date | 2014-03-27 16:01 |
From | Rory Walsh |
Subject | Re: [Csnd] Typical Preset Implementation |
You can write the presets to a txt file using foutk, and then read them in later. I've done this in the past(very distant past!) to save real-time automation data from my MIDI faders. But sure, it's definitely possible. On 27 March 2014 15:54, Dominic Melville |
Date | 2014-03-27 20:44 |
From | Rory Walsh |
Subject | Re: [Csnd] Typical Preset Implementation |
Here's that rather old example I was referring to. It looks like it will either write the values of the sliders to a text file, or read the values from the text file and assign, depending on whether gkStartStop is 1 or not. I'd possibly do it another way if I was doing it again, but this should still work fine. |
Date | 2014-03-27 20:50 |
From | Dominic Melville |
Subject | [Csnd] Re: Typical Preset Implementation |
Excellent, thanks. I'll have a play with it and see what I come up with. Cheers Rory, a huge help Thanks Dominic
On Thursday, March 27, 2014, Rory Walsh <rorywalsh@ear.ie> wrote: Here's that rather old example I was referring to. It looks like it |
Date | 2014-03-27 20:58 |
From | Justin Smith |
Subject | Re: [Csnd] Re: Typical Preset Implementation |
If you want to store everything in one file, you could use vtablek to access the values, vtablewk to update them, and ftload / ftsave to store and retrieve the presets. As another possibility, using lua or python to store presets in a SQL db would be very useful.
On Thu, Mar 27, 2014 at 1:50 PM, Dominic Melville <dcamelville@gmail.com> wrote: Excellent, thanks. I'll have a play with it and see what I come up with. |
Date | 2014-03-27 22:31 |
From | Dominic Melville |
Subject | [Csnd] Re: Typical Preset Implementation |
That's a good idea. I never thought of Lua or Python, so obvious I should've thought of that. Thanks Dominic
On Thursday, March 27, 2014, Justin Smith <noisesmith@gmail.com> wrote:
|