Ciao fioj! Big question...
I knew that in PD it's possible to use fixed values (i.e. numbers in messages) or dynamic values (number-atoms that "move").
I need to move many dynamic values (many number-atoms) but I also need to "save" these values into a preset when I decide that the values are good... I want to save many presets...
So, if I quit the patch, quit PD, restart my computer, and reopen my patch in PD, I'd like to recall my presets with a simple click on a bang!
Is it possible?
Thanks!
-
Patch that "saves" presets?
-
There a several options.
- You could use the saddd abstractions which seems to be rather handy.
- You could roll your own system
- I've once seen a system in one of obiwannabe's patches. It takes a bit of work to set up for each patch, but once it's done it works very easy, or at least for my taste... Look at the patch in attachement. It's a drumsynth which you probably won't be able to make work (due to other missing but required patches). But when you click on the presets subpatch (bottom left) you'll get the idea. The presets selection is done by clicking on the dark radiostrip, also bottom left.
edit:
I adapted the patch to make it standalone. Now it should work, just select a preset...
|] [] |.| ][|-| -- http://soundcloud.com/domxh
-
With the sssad option, use the [presetstore] abstraction that enables you to store many presets in the patch. Its basically an extension of [datastore]
boonier
-
Thanks guys. boonier, [presetstore] sounds good for my patch, but really I don't understand how to use SSSAD.
This is my situation: the patch has a "1st part"...atom atom atom atom atom atom atom atom
| | | | | | | |
[pack f f f f f f f f]
|
[print]...then, a "2nd part"...
[ (
|
[unpack f f f f f f f f]
| | | | | | | |
atom atom atom atom atom atom atom atom...where, in the empty message I copy (every time...) the result of [print], from the Pd-main-window to the empty message.
So I have two questions:
1. how can I use [presetstore] in this situation (could you write the diagram, please)?
2. instead of use [print], could I use an object that "saves as" (and overwrites) a txt file with the 8 numbers, and then another object (linked to the empty message) to load this txt file as a list?
Thanks a lot! -
a third way is to store values in a table.
heres an example
http://puredata.info/Members/pulsed/abs/preset/at_download/file
vhm
-
SSSAD relies on abstractions firstly. So to uses it, you will have to put your patch into an abstraction and 'sssadify' it.
Ok I think the best way to learn this is to unzip the attachment and put it in your Paths so you can start using it in pd. In it contains a fairly recent version of Chris McCormicks s-abstractions. These are various algorithms wrapped up in re-usable abstractions. They are also a good source to learn from. Ultimately when you start using sssad, you want to be eventually aiming to wrap your creations into abstractions.
ok, in the s-abstractions folder, theres a load of abs. Open a few and you'll see theres an object called [auto $0-foo $1-foo-r] etc. The [auto] object is a convenience wrapper for the basic [sssad] object (look inside). There is one auto object for each gui element. Look at the properties of a gui element. The send field will say $0-foo and the receive field will say $1-foo-r. This corresponds with the [auto] object. SSSAD basically polls all the abstractions containing the sssad object, and stores all the values it recieves in a textfile or a message box or whatever.
Further inside the s-abstractions folder, theres a sssad folder. In there is the [presetstore] abstraction and a help file. In your parent patch you create this object and manually create subpatches like [pd presetstore0] [pd presetstore1] [pd presetstore3] etc. Selecting a number and hitting save will save all the data to the appropriate subpatch.
best thing is to give it a shot and get your head round this first
boonier
-
Thanks a lot guys!