Hi,

I was trying to add two buttons for loading and saving presets inside 
the audio plugin dialog. The reason for this is that it would be handy 
to be able to store and retrieve the settings of an audio plugin or even 
more for soft synths independently from the whole document and in a 
plugin agnostic way.

This would be even more useful for VST softsynths, since there's no 
other way to save their patches (apart from having them saved in the 
whole document).

Anyway, I went as far as adding the two buttons 'load' and 'save' (in a 
row below 'copy', 'paste' and 'default') and implementing the 'save' 
(calling toXmlString() on the AudioPluginInstance). The output look like 
this:

<synth identifier="dssi:/usr/lib/dssi/less_trivial_synth.so:LTS" 
bypassed="false" >
                <port id="1" value="440" changed="false"/>
                <port id="2" value="0.2575" changed="false"/>
                <port id="3" value="0.2575" changed="false"/>
                <port id="4" value="75" changed="false"/>
                <port id="5" value="0.2" changed="false"/>
                <port id="6" value="0.5" changed="false"/>
                <configure 
key="__ROSEGARDEN__:__RESERVED__:ProjectDirectoryKey" 
value="/home/cesarem/rosegarden/"/>
</synth>

But now loading back the settings is too complicated for me at the 
moment (I looked at Rosegarden code for the first time yesterday).

Could somebody help me? Some hints? Or should I file a feature request?

Cheers,

c.

-- 
http://www.cesaremarilungo.com


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to