How can I dynamically create counting arrays?
I've got a counter stepping a [makefilename sound%d] going to a [set $1] going into a [tabwrite~] object and I think this is all working, except now I need to dynamically create the arrays sound1, sound2, sound3, etc.
Also, I'm hoping to pump this up to about 200 tracks, once recorded they playback continuously. I've created separate, static programs to do this, and have run thirty simultaneously with good results. BIG hickups when opening files (a bug? PD 3.6 on 10.2.8), but other than that, very clean sound. Do I need to manage voices, or is that only for midi? I don't understand the voices concept within PD, and haven't found how many PD can support. Where's a good conceptual discussion of PD and Voices.
Of course, if necessary, I can share this load over three networked machines, two G4 OS X and one Linux.
Thanks in advance,
Dan
Hallo, Dan Wilken hat gesagt: // Dan Wilken wrote:
How can I dynamically create counting arrays?
I've got a counter stepping a [makefilename sound%d] going to a [set $1] going into a [tabwrite~] object and I think this is all working, except now I need to dynamically create the arrays sound1, sound2, sound3, etc.
Is what the attached patch what you want?
Also, I'm hoping to pump this up to about 200 tracks, once recorded they playback continuously. I've created separate, static programs to do this, and have run thirty simultaneously with good results. BIG hickups when opening files (a bug?
Well, but a known one and hard to get rid off. File system operations by nature are not realtime safe. You could use readsf~ or writesf~ which have precautions against hickups.
PD 3.6 on 10.2.8), but other than that, very clean sound. Do I need to manage voices, or is that only for midi? I don't understand the voices concept within PD, and haven't found how many PD can support. Where's a good conceptual discussion of PD and Voices.
See the [poly] help patch. Pd doesn't really know "voices" it is monophonic by nature. If you need polyphony you will have to create as many signal generators as needed. Some externals like dyn~ make this easier.
Frank Barknecht _ ______footils.org__
Frank,
The patch you gave me helped a lot, got me wondering, is there any way to create connections dynamically? within an open canvass? Say a message:
; connect 0 2 1 1
I tried this and a couple of other things to no avial...
-Dan
the On Thursday, January 1, 2004, at 03:00 PM, Frank Barknecht wrote:
Hallo, Dan Wilken hat gesagt: // Dan Wilken wrote:
How can I dynamically create counting arrays?
I've got a counter stepping a [makefilename sound%d] going to a [set $1] going into a [tabwrite~] object and I think this is all working, except now I need to dynamically create the arrays sound1, sound2, sound3, etc.
Is what the attached patch what you want?
Also, I'm hoping to pump this up to about 200 tracks, once recorded they playback continuously. I've created separate, static programs to do this, and have run thirty simultaneously with good results. BIG hickups when opening files (a bug?
Well, but a known one and hard to get rid off. File system operations by nature are not realtime safe. You could use readsf~ or writesf~ which have precautions against hickups.
PD 3.6 on 10.2.8), but other than that, very clean sound. Do I need to manage voices, or is that only for midi? I don't understand the voices concept within PD, and haven't found how many PD can support. Where's a good conceptual discussion of PD and Voices.
See the [poly] help patch. Pd doesn't really know "voices" it is monophonic by nature. If you need polyphony you will have to create as many signal generators as needed. Some externals like dyn~ make this easier.
ciao
Frank Barknecht _ ______footils.org__ <tabtest.pd>
Hallo, Dan Wilken hat gesagt: // Dan Wilken wrote:
Frank,
The patch you gave me helped a lot, got me wondering, is there any way to create connections dynamically? within an open canvass? Say a message:
; connect 0 2 1 1
I tried this and a couple of other things to no avial...
Your try is almost correct. You can find out the possible pd messages by looking at pd patches with a text editor, but they also are described here:
http://pd.iem.at/pdwiki/index.php?PdInternalMessages
or in the pure-data.sf.net CVS repository.
connect has the following syntax:
connect object-number ob.-outlet-number ob.-number ob.-inlet-number
xlet- and object-numbers start counting at 0!
So if you create a metro:
obj 10 40 metro
and a float:
obj 10 60 f
you can connect these with:
connect 0 0 1 1
like this:
[metro]
[f ]
I.e. connect metro's first outlet (==0) with the second inlet (==1) of the float.
BTW: there also is "disconnect obj in obj out"
Frank Barknecht _ ______footils.org__
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
Hallo, Dan Wilken hat gesagt: // Dan Wilken wrote:
Frank,
The patch you gave me helped a lot, got me wondering, is there any way to create connections dynamically? within an open canvass? Say a message:
; connect 0 2 1 1
I tried this and a couple of other things to no avial...
Your try is almost correct.
Forgot to say: All these work, if you send the messages to a send named "pd-SOMENAME" where SOMENAME is the name of a subpatch like [pd SOMENAME]
Either do this inside the message box: [ ; pd-SOMENAME "command"]
or create a [send pd-SOMENAME] object.
Frank Barknecht _ ______footils.org__
Frank,
This is great.
I can't get the disconnect to work, getting: error: canvas: no method for 'disconnect'
I've tried the exact syntax as the 'connect', which is working for me. I've tried to use on both connects written into the patch and send into the patch dynamically.
Thanks, again! -Dan
On Saturday, January 3, 2004, at 08:12 AM, Frank Barknecht wrote:
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
Hallo, Dan Wilken hat gesagt: // Dan Wilken wrote:
Frank,
The patch you gave me helped a lot, got me wondering, is there any way to create connections dynamically? within an open canvass? Say a message:
; connect 0 2 1 1
I tried this and a couple of other things to no avial...
Your try is almost correct.
Forgot to say: All these work, if you send the messages to a send named "pd-SOMENAME" where SOMENAME is the name of a subpatch like [pd SOMENAME]
Either do this inside the message box: [ ; pd-SOMENAME "command"]
or create a [send pd-SOMENAME] object.
ciao
Frank Barknecht _ ______footils.org__
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list