Csound Csound-dev Csound-tekno Search About

[Csnd] Re: pvsfwrite question..

Date2008-12-06 17:24
Fromvictor
Subject[Csnd] Re: pvsfwrite question..
This example shows what is possible...



instr 1

asig oscili 10000, 440, 1
fss pvsanal  asig, 1024,256,1024,0
    pvsfwrite fss, "mypvs.pvx"
ase pvsynth fss
             out ase
endin

instr 2

ktim timeinsts
fss  pvsfread ktim, "mypvs.pvx"
asig pvsynth fss
    out asig
endin



f1 0 16384 10 1
i1 0   1
i2 1   1
e


----- Original Message ----- 
From: "Rory Walsh" 
To: 
Sent: Saturday, December 06, 2008 4:17 PM
Subject: [Csnd] pvsfwrite question..


> Is there are way to explicitly close a file written using pvsfwrite?
> Currently I have one instrument which writes fsig data to disk, I then
> use another instrument to read this info.I would like to consolidate
> my two instruments but when I do I keep getting the following message:
>
> PortAudio: selected output device 'EDIROL UA-25'
> writing 20-byte blks of shorts to devaudio1
> SECTION 1:
> PVOCEX_LoadFile(): error:
>    unable to open pvocex file test.pvx:
> pvsys: error reading header
> INIT ERROR in instr 1: Failed to load PVOC-EX file
> fsigr   pvsfread        #k0     "test.pvx"      0
> *** internal error: mcalloc() called with zero nbytes
> *** internal error: mcalloc() called with zero nbytes
>
> Note that it doesn't bail on init time because I have a valid test.pvs
> file in the directory I'm working from.
>
> Rory.
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2008-12-06 17:30
From"Rory Walsh"
Subject[Csnd] Re: Re: pvsfwrite question..
AttachmentsNone  

Date2008-12-07 05:43
FromRichard Boulanger
Subject[Csnd] Re: Re: pvsfwrite question..
Maybe an example for the manual?

-dB

On Dec 6, 2008, at 12:24 PM, victor wrote:

> This example shows what is possible...
>
> 
> 
> instr 1
>
> asig oscili 10000, 440, 1
> fss pvsanal  asig, 1024,256,1024,0
>  pvsfwrite fss, "mypvs.pvx"
> ase pvsynth fss
>           out ase
> endin
>
> instr 2
>
> ktim timeinsts
> fss  pvsfread ktim, "mypvs.pvx"
> asig pvsynth fss
>  out asig
> endin
>
> 
> 
> f1 0 16384 10 1
> i1 0   1
> i2 1   1
> e
> 
> 
> ----- Original Message ----- From: "Rory Walsh" 
> To: 
> Sent: Saturday, December 06, 2008 4:17 PM
> Subject: [Csnd] pvsfwrite question..
>
>
>> Is there are way to explicitly close a file written using pvsfwrite?
>> Currently I have one instrument which writes fsig data to disk, I  
>> then
>> use another instrument to read this info.I would like to consolidate
>> my two instruments but when I do I keep getting the following  
>> message:
>>
>> PortAudio: selected output device 'EDIROL UA-25'
>> writing 20-byte blks of shorts to devaudio1
>> SECTION 1:
>> PVOCEX_LoadFile(): error:
>>  unable to open pvocex file test.pvx:
>> pvsys: error reading header
>> INIT ERROR in instr 1: Failed to load PVOC-EX file
>> fsigr   pvsfread        #k0     "test.pvx"      0
>> *** internal error: mcalloc() called with zero nbytes
>> *** internal error: mcalloc() called with zero nbytes
>>
>> Note that it doesn't bail on init time because I have a valid  
>> test.pvs
>> file in the directory I'm working from.
>>
>> Rory.
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"