[PD] Strange bug in my patch

William Brent william.brent at gmail.com
Fri Feb 26 06:23:50 CET 2010


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 at 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 at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>



-- 
William Brent
www.williambrent.com

“Great minds flock together”
Conflations: conversational idiom for the 21st century

www.conflations.com




More information about the Pd-list mailing list