...in case you had not learned it already.
If your patch freezes or hard crashes, two things you can do to debug the code:
-
rename the offending files by adding a suffix
-
using a text editor to rename the object-names by adding a suffix
-
renaming the offending files:
kill the patch
go into your folder structure and rename (what may be) the offending .pd file by adding a suffix, ex. add "abs-hold", "abs-broken", etc.
reopen the patch:
Pure data will keep all the connections on the original file but won't actually reload the original file since it's really no longer there.
If the patch no longer freezes or crashes, then you know that abs was the offending file and you can focus on debugging it.
If the patch still freezes, remove the suffix and try renaming a different abs.
Repeat this process until it stops freezing and you will know which abs is causing the problem and you can focus on fixing that one. -
renaming the object:
kill the patch
then open it in a text editor
do a FIND in the editor for what you believe may be causing the problem, whether an abs or an object, ex. [sel], [route], [until], etc
add the suffix at the end of the abs or object name, ex "until-hold"
reopen the patch in PD
if it now loads, then you know that object was causing the problem and can fix it inside PD since PD no longer is loading it.
I hope this may make your life easier, work more fluid, or process more effective.
Peace Thru Sharing.
Love Thru Music.
And if you've learned in effective techniques, do share them me.
-s