It's straightforward to change properties in your C++, SuperCollider, Csound code. In a Pd Patch however, you need to have Pure Data installed on the host computer and then update the patch.
But there is a solution to this issue: make a settings.txt file and store it along with the patch.
In my case the file has three lines.
debug 0;
phonesA_threshold 0.09;
phonesB_threshold 0.09;
Then add this to your patch, notice the message [3( to [until], we need a bang for every line (every variable stored in the file):

You can then use the values stored in the settings.txt file as follows in your patch:

For a patch which should run a long time, it is best to avoid a lot of print commands to the console. However, sometimes you need it for debugging. To switch debug output on or of depending on the status in the settings.txt file, you can use those methods:
