hi list,
*well, mmh...* couldn't find anything in the archive, so:
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??
m.f.g.
Lutz
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
Frank Barknecht schrieb:
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?
well, your suggestion works fine, even with openpanel/savepanel, but... I simplified things in my first post (sorry for that): My little synth gets triggered by a couple of tabreads, lets say [tabread sequence] [tabread velocity] [tabread vcf-mod] [tabread pan-mod] let my 'song' have 8 patterns, makes 32 arrays. The whole thing is made of 4 sources (think of it as a rebirth-clone), so we have 128 arrays. It's still no problem to save/load all of them with a single click. After a while, there would be quite a lot of little files in my 'song-folder', wouldn't it? The original idea was to have the whole 'song' in one file. Should I try a completely different approach? Would memento do the job?
Lutz
thanx for your help.
Hallo, Lutz Scheulen hat gesagt: // Lutz Scheulen wrote:
well, your suggestion works fine, even with openpanel/savepanel, but... I simplified things in my first post (sorry for that): My little synth gets triggered by a couple of tabreads, lets say [tabread sequence] [tabread velocity] [tabread vcf-mod] [tabread pan-mod] let my 'song' have 8 patterns, makes 32 arrays. The whole thing is made of 4 sources (think of it as a rebirth-clone), so we have 128 arrays. It's still no problem to save/load all of them with a single click. After a while, there would be quite a lot of little files in my 'song-folder', wouldn't it? The original idea was to have the whole 'song' in one file. Should I try a completely different approach? Would memento do the job?
Yes.
That's exactly the problem I tried to solve with Memento. Everything is saved to one file. You can use the same patch with different files for different "songs". I also save other things into Memento like my midi controller settings, which might vary between pieces as well.
You can read more about the background of my approach here: http://footils.org/cms/show/1
Installation of Memento is a bit tricky as you need [prepend] in the correct version (the one from Cyclone, not the one from IEM and not the old one from GGEE, which will lead to an immediate crash btw. if you try to use that one with Memento.) you also need zexy and OSC.
Frank Barknecht _ ______footils.org__
_ __latest track: "scans" _ http://footils.org/cms/show/41
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
Installation of Memento is a bit tricky as you need [prepend] in the correct version (the one from Cyclone, not the one from IEM and not the old one from GGEE, which will lead to an immediate crash btw. if you try to use that one with Memento.) you also need zexy and OSC.
Oh, and I forgot [pool] which is the most important external to Memento.
Frank Barknecht _ ______footils.org__
_ __latest track: "scans" _ http://footils.org/cms/show/41
Frank Barknecht schrieb:
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
Installation of Memento is a bit tricky as you need [prepend] in the correct version (the one from Cyclone, not the one from IEM and not the old one from GGEE, which will lead to an immediate crash btw. if you try to use that one with Memento.) you also need zexy and OSC.
Oh, and I forgot [pool] which is the most important external to Memento.
Ciao
I'll do my best to get it running.
thanx for now Lutz