Hi Jiri,
there are a few ways to record in pd…
there is tabwrite~ which will record its input to an array and you can later save it to disk or there is writesf~ which will record to disk directly. See the attached patch.