I am trying to create a record function on Pd, but I am running into a difficulty. I am using an f object to store the value of a number, which is then routed to a [open $1.wav, start] message. Every press of the record button increases the value stored in f by 1 and send the value to the message, I get a new file on my hard disk named 1.wav, 2.wav, etc.
The problem is that every time I reload Pd, the count starts back from 0. I am sure there is a way to store a number in the patch's memory in a way that it can be recalled every time it loads. Could anyone point me to the right direction?