Hey,
I think subject says it all.
Can one delete an object in a similar manner to creating an object using dynamic patching?
delete object using dynamic patching?
Hey,
I think subject says it all.
Can one delete an object in a similar manner to creating an object using dynamic patching?
Exactly!!! And that makes other problems. When doing this, it slows down the program and keeps things visible that should not be visible. And makes things stuck, visually at least.
And nearly freezes Pd.
Thoughts? Is this an error in the Pd?
@raynovich It has certainly changed. But whether it is a bug I don't know.
Fortunately none of my patches rely on deletion, but some really heavy ones that I use for work rely on dynamic creation. I hope that never gets broken.
Out of interest what are you trying to do?...... what happens when [soundcard2~] is created or deleted?
David.
@raynovich Just as a prove of concept, here is another way to do it, using mouse commands. The created objects are kept in a [text], so it is also possible to find specific objects and only delete them.
Hello,
Thanks for all of the dialogue.
So, I am considering using some additive synthesis. Think every soundcard is an osc with ramps for pitch, amplitude, panning, and anything else I might be interested in using.
So, I got this idea that my program will get unwieldy if I keep on adding more and more osc~ objects without deleting some.
Now, I could instead send "soundcards" to various soundcards, but that limits the number of osc~ I can use and make the program run slower?
Make sense? Thoughts?
I have never sent a notice of an error. How does that get "registered?"
@raynovich You can use [switch~] to turn off abstractions...
So, I assume my computer is "fast enough." The problem that I am detecting is that if I activate creating a objects too quickly in succession the audio lags and creates digital clicks. This may also happen when I delete objects as well.
So, I think I am not able to use this method for creating good audio using additive synthesis, but I really appreciate all of the communication.
I though do not understand the switch~ comment yet.
@raynovich Well, i do not know your project, but in a general sense my opinion is that relying heavily on creating and deleting objects is a dubious approach in most cases.
With [switch~] you can activate and disable abstractions (and possibly subpatches), so probably all necessary objects can just be in the patch and activated or deactivated when needed or not.
This can also be combined with [clone].
@raynovich I use [switch~] to pause audio playback of a file here...... cart_wav_simple.pd
The audio is muted in 5ms with [line] and at 8ms the audio processing for the patch is turned off.
Other patches will still have their audio running.
Taking the audio output to zero before turning audio off avoids clicks.
A 1 into switch turns audio on and a 0 turns it off.
When it is off there is no cpu load for the patch as there is no audio process running (for that patch).
David.
Hey,
I finally understand switch~ Thank you!!!!!
Oops! Looks like something went wrong!