Csound Csound-dev Csound-tekno Search About

[Csnd] Using pvsout

Date2013-08-24 17:18
FromEd Costello
Subject[Csnd] Using pvsout
Hi,

I'm want to use pvsout as part of a larger project along with the CsoundAPI to further process the pvs data. Unfortunately I can't figure out how to use the pvsout opcode correctly.  After running this instrument:

instr 1


kphasor phasor 300

fsig pvsfread kphasor, "input.pvoc", 0

pvsout fsig, 0

endin


I always get a segmentation fault.

Does the channel have to be set up using the API before hand? Also I see that the pvsout opcodes use a krate variable as input, but the API uses a const char *, does this mean if the channel is 0, you use "0" as your argument?

Thanks

Ed