Hallo, Lutz Scheulen hat gesagt: // Lutz Scheulen wrote:
I have a sound-source wich gets triggered by a sequencer in the form of [tabread arrayname]. By creating a couple of these arrays (pattern_1, pattern_2...) and sending messages to the tabread (set pattern_1, set pattern_2...) I can create a very basic form of 'song-mode'. All arrays are in an abstraction called [song1]. This way I can edit my patterns and save the abstraction as 'song2.pd', 'song3.pd', 'gabbagabbahey.pd', whatever. How can I reload my songs without going into 'edit-mode', clicking on my abstraction and typing the name of the song??
I have another suggestion: why don't you just save the array contents to a file and then exchange the contents of that array using the save-files?
You can save a table called "$0-tablename" using:
[write filename( | [s $0-tablename]
and read it in again using [read filename( the same way. (The $0 part is to make that table unique to the abstraction. You might not need that, but I did.)
If you then use e.g. [write $1-file( and connect a number to it, you can save a lot of tables by number: 0-file, 1-file, 2-file, ...
I used this in my old "sseq16.pd" sequencer and to save settings of my "angriff" drummachine which are in CVS.
Nowadays I use a system called Memento which is much better, though.
Frank Barknecht _ ______footils.org__
_ __latest track: "scans" _ http://footils.org/cms/show/41