Hi, I'm working in this patch for a composition of mine but I keep getting a bug and don't know what is wrong. What my patch does is to load sound files and play them back at random intervals of time. If you load enough samples, it can create a very dense and granular sound texture, hence the name Texgen (texture generator). When I load a sample I can control the minimum and maximum interval between attacks, degree of tranposition (or pitch shift) and the density of the play back wich is just how many times the same sample is loaded so it can be played more times simultaneously. The problem I'm having is that when I load a sample with density = 1 the sound doesn't comes out and, that's the strange part, if a creat and object like, say, a bang button and delete it, the sound magicaly pops out of the loudspeakers. I know this is a little inconvenient thig to ask, but can someone help me? I don't know where else i could look for help.
I attached the patch in this e-mail, and it can be also downloaded here: http://puredata.info/Members/caiobarros/texgen/ together with a sound for testing it. Just put everything in the same folder and it should work exept for this bug.
Again sorry for any inconveniences, and thanks for the help.
Caio Barros
I think I can get you a step closer to finding your problem... If you run Pd in its 1st debug mode (pd -d 1), you'll see posts showing that creating or deleting an object quickly deactivates/reactivates DSP. So once you've loaded your sound file, set parameters and clicked "Start", manually toggling DSP on, off, then on solves the problem as well.
I didn't put in the time to see why DSP needed to be toggled in that way for your particular case though. Can you think of anything in your patch that might be linked to something like that? Just a guess (I haven't chased down all your sends and receives), but since this is isolated to cases where density equals 1, it seems pretty likely a patching logic bug is preventing a parameter from getting to a DSP object until after the Start button is pushed. Then, re-initializing DSP is refreshing that object's settings and all is well.
Hope it helps, William
On Thu, Feb 25, 2010 at 6:58 PM, Caio Barros caio.barros@gmail.com wrote:
Hi, I'm working in this patch for a composition of mine but I keep getting a bug and don't know what is wrong. What my patch does is to load sound files and play them back at random intervals of time. If you load enough samples, it can create a very dense and granular sound texture, hence the name Texgen (texture generator). When I load a sample I can control the minimum and maximum interval between attacks, degree of tranposition (or pitch shift) and the density of the play back wich is just how many times the same sample is loaded so it can be played more times simultaneously. The problem I'm having is that when I load a sample with density = 1 the sound doesn't comes out and, that's the strange part, if a creat and object like, say, a bang button and delete it, the sound magicaly pops out of the loudspeakers. I know this is a little inconvenient thig to ask, but can someone help me? I don't know where else i could look for help.
I attached the patch in this e-mail, and it can be also downloaded here: http://puredata.info/Members/caiobarros/texgen/ together with a sound for testing it. Just put everything in the same folder and it should work exept for this bug.
Again sorry for any inconveniences, and thanks for the help.
Caio Barros
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
The patch uses dynamic creation of objects and when dynamically creating signal-processing objects or abstractions, the dsp graph is not automatically recompiled (I hope I use the right words here). Recompilation of the graph can be forced by switching dsp off and on again. This is a known issue and has been discussed on the list. I can't recall if it is considered a feature or a bug, but probably it doesn't matter, since dynamic object creation is not officially supported).
On Thu, 2010-02-25 at 21:23 -0800, William Brent wrote:
I think I can get you a step closer to finding your problem... If you run Pd in its 1st debug mode (pd -d 1), you'll see posts showing that creating or deleting an object quickly deactivates/reactivates DSP. So once you've loaded your sound file, set parameters and clicked "Start", manually toggling DSP on, off, then on solves the problem as well.
I didn't put in the time to see why DSP needed to be toggled in that way for your particular case though. Can you think of anything in your patch that might be linked to something like that? Just a guess (I haven't chased down all your sends and receives), but since this is isolated to cases where density equals 1, it seems pretty likely a patching logic bug is preventing a parameter from getting to a DSP object until after the Start button is pushed. Then, re-initializing DSP is refreshing that object's settings and all is well.
Actually, when creating a tilde object or an abstraction, that processes signals, dynamically it's not taken into account for the currently used dsp graph. However, when you create the second instance (or any other tilde object), the first one is taken into account, but not the second. So even if it seems to work for densities > 1, you actually hear only n-1 instances.
Roman
Hope it helps, William
On Thu, Feb 25, 2010 at 6:58 PM, Caio Barros caio.barros@gmail.com wrote:
Hi, I'm working in this patch for a composition of mine but I keep getting a bug and don't know what is wrong. What my patch does is to load sound files and play them back at random intervals of time. If you load enough samples, it can create a very dense and granular sound texture, hence the name Texgen (texture generator). When I load a sample I can control the minimum and maximum interval between attacks, degree of tranposition (or pitch shift) and the density of the play back wich is just how many times the same sample is loaded so it can be played more times simultaneously. The problem I'm having is that when I load a sample with density = 1 the sound doesn't comes out and, that's the strange part, if a creat and object like, say, a bang button and delete it, the sound magicaly pops out of the loudspeakers. I know this is a little inconvenient thig to ask, but can someone help me? I don't know where else i could look for help.
I attached the patch in this e-mail, and it can be also downloaded here: http://puredata.info/Members/caiobarros/texgen/ together with a sound for testing it. Just put everything in the same folder and it should work exept for this bug.
Again sorry for any inconveniences, and thanks for the help.
Caio Barros
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
I'm sorry, I can't resist- A bug in your patch, that sounds like a personal problem! Anyway I'm glad you got it resolved. I wouldn't have made a crass comment if it weren't resolved! -Chuckk
2010/3/4 Chuckk Hubbard badmuthahubbard@gmail.com
I'm sorry, I can't resist- A bug in your patch, that sounds like a personal problem! Anyway I'm glad you got it resolved. I wouldn't have made a crass comment if it weren't resolved! -Chuckk
That should sound funny for native english speakers, but I'm not! Patch, as far my dicitonary tells me it's just a piece of tissue or pieces of tissue sewed together. But I forgive you... just because I got my (personal) problem resolved.
On Thu, Mar 4, 2010 at 9:26 PM, Caio Barros caio.barros@gmail.com wrote:
2010/3/4 Chuckk Hubbard badmuthahubbard@gmail.com
I'm sorry, I can't resist- A bug in your patch, that sounds like a personal problem! Anyway I'm glad you got it resolved. I wouldn't have made a crass comment if it weren't resolved! -Chuckk
That should sound funny for native english speakers, but I'm not! Patch, as far my dicitonary tells me it's just a piece of tissue or pieces of tissue sewed together. But I forgive you... just because I got my (personal) problem resolved.
Yeah, I know it's annoying when people make jokes you don't understand. I live in Romania and people do it to me too. Well, "patch" can also be a small area of grass or hair or fur.
-Chuckk