pfunc is a python script, powered by the Csound csd Python Package, that
allows users to apply a formula to targeted pfields in a Csound score en
masse. For example, let’s say you wanted to shift every frequency (pfield
5) in all instrument 1 events by a half step:
allows users to apply a formula to targeted pfields in a Csound score en
masse. For example, let’s say you wanted to shift every frequency (pfield
5) in all instrument 1 events by a half step:
$ cat foo.sco | ./pfunc.py i 1 5 ‘x * pow(2, 1 / 12.0)’
Or shift start times by 5.5 seconds for instruments 2 through 6:
$ cat foo.sco | ./pfunc.py i ‘range(2, 7)’ 3 ‘x + 5.5’
More about pfunc:
http://www.thumbuki.com/csd/demo/index.html#module-pfunc
Csound csd Python Package Home:
http://www.thumbuki.com/csd/
Download Csound csd Python Pacakge:
http://www.thumbuki.com/csd/release/csd-0.0.4.tar.gz
Best,
Jake