Csound Csound-dev Csound-tekno Search About

problem with fiopen / fout

Date2016-10-10 18:24
FromMichael Breitenbach
Subjectproblem with fiopen / fout
hi csounders,

whats wrong with this code?




-i adc -o dac -b 128 -B 128 -A -+rtmidi=coremidi -M4 ;coremidi leider nur ein input möglich



sr  	= 96000
kr	= 2400
ksmps	= 40
nchnls	= 2
0dbfs	= 1

gifh1 fiopen "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 2 

instr 100

    aSig oscili 1, 440 
    outs aSig, aSig
;    fout  "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 26, aSig, aSig
    fout  gifh1, 26, aSig, aSig

endin





i100 0 5




makes:

new alloc for instr 100:
INIT ERROR in instr 100: invalid file handle
     fout.i  gifh1   26      aSig    aSig
          B  0.000 - note deleted.  i100 had 1 init errors

filename direct as string in fout works fine.

i have tryed it with commandline-csound 6.07 and with csound~

michi


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-10-10 19:54
Fromjpff
SubjectRe: problem with fiopen / fout

On Mon, 10 Oct 2016, Michael Breitenbach wrote:

> hi csounders,
>
> whats wrong with this code?
>

Not your code but this is a bug IMHO
Breaks for me in init pass for fout.i opcode

Needs someone who understands this area.


> 
>
> 
> -i adc -o dac -b 128 -B 128 -A -+rtmidi=coremidi -M4 ;coremidi leider nur ein input möglich
> 
>
> 
> sr  	= 96000
> kr	= 2400
> ksmps	= 40
> nchnls	= 2
> 0dbfs	= 1
>
> gifh1 fiopen "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 2
>
> instr 100
>
>    aSig oscili 1, 440
>    outs aSig, aSig
> ;    fout  "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 26, aSig, aSig
>    fout  gifh1, 26, aSig, aSig
>
> endin
>
>
> 
>
> 
> i100 0 5
> 
>
> 
>
> makes:
>
> new alloc for instr 100:
> INIT ERROR in instr 100: invalid file handle
>      fout.i  gifh1   26      aSig    aSig
>          B  0.000 - note deleted.  i100 had 1 init errors
>
> filename direct as string in fout works fine.
>
> i have tryed it with commandline-csound 6.07 and with csound~
>
> michi
> 
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-10-10 20:10
FromVictor Lazzarini
SubjectRe: problem with fiopen / fout
A ticket should be opened. I can take it from there. I guess I am the one who vaguely knows the area. The code ain't pretty.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 10 Oct 2016, at 19:55, jpff  wrote:
> 
> 
> 
>> On Mon, 10 Oct 2016, Michael Breitenbach wrote:
>> 
>> hi csounders,
>> 
>> whats wrong with this code?
>> 
> 
> Not your code but this is a bug IMHO
> Breaks for me in init pass for fout.i opcode
> 
> Needs someone who understands this area.
> 
> 
>> 
>> 
>> 
>> -i adc -o dac -b 128 -B 128 -A -+rtmidi=coremidi -M4 ;coremidi leider nur ein input möglich
>> 
>> 
>> 
>> sr      = 96000
>> kr    = 2400
>> ksmps    = 40
>> nchnls    = 2
>> 0dbfs    = 1
>> 
>> gifh1 fiopen "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 2
>> 
>> instr 100
>> 
>>   aSig oscili 1, 440
>>   outs aSig, aSig
>> ;    fout  "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 26, aSig, aSig
>>   fout  gifh1, 26, aSig, aSig
>> 
>> endin
>> 
>> 
>> 
>> 
>> 
>> i100 0 5
>> 
>> 
>> 
>> 
>> makes:
>> 
>> new alloc for instr 100:
>> INIT ERROR in instr 100: invalid file handle
>>      fout.i  gifh1   26      aSig    aSig
>>         B  0.000 - note deleted.  i100 had 1 init errors
>> 
>> filename direct as string in fout works fine.
>> 
>> i have tryed it with commandline-csound 6.07 and with csound~
>> 
>> michi
>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-10-11 09:48
FromVictor Lazzarini
SubjectRe: problem with fiopen / fout
The problem is that the code does not support what is in the manual. fiopen will open only CSFILE_STD types and
fout will only handle only CSFILE_SND_W. The two are incompatible. Hence when we try to run the code,
we get

INIT ERROR in instr 100: invalid file handle

I wonder if this is a manual error or a code error.



> On 10 Oct 2016, at 20:10, Victor Lazzarini  wrote:
> 
> A ticket should be opened. I can take it from there. I guess I am the one who vaguely knows the area. The code ain't pretty.
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
>> On 10 Oct 2016, at 19:55, jpff  wrote:
>> 
>> 
>> 
>>> On Mon, 10 Oct 2016, Michael Breitenbach wrote:
>>> 
>>> hi csounders,
>>> 
>>> whats wrong with this code?
>>> 
>> 
>> Not your code but this is a bug IMHO
>> Breaks for me in init pass for fout.i opcode
>> 
>> Needs someone who understands this area.
>> 
>> 
>>> 
>>> 
>>> 
>>> -i adc -o dac -b 128 -B 128 -A -+rtmidi=coremidi -M4 ;coremidi leider nur ein input möglich
>>> 
>>> 
>>> 
>>> sr      = 96000
>>> kr    = 2400
>>> ksmps    = 40
>>> nchnls    = 2
>>> 0dbfs    = 1
>>> 
>>> gifh1 fiopen "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 2
>>> 
>>> instr 100
>>> 
>>>  aSig oscili 1, 440
>>>  outs aSig, aSig
>>> ;    fout  "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 26, aSig, aSig
>>>  fout  gifh1, 26, aSig, aSig
>>> 
>>> endin
>>> 
>>> 
>>> 
>>> 
>>> 
>>> i100 0 5
>>> 
>>> 
>>> 
>>> 
>>> makes:
>>> 
>>> new alloc for instr 100:
>>> INIT ERROR in instr 100: invalid file handle
>>>      fout.i  gifh1   26      aSig    aSig
>>>        B  0.000 - note deleted.  i100 had 1 init errors
>>> 
>>> filename direct as string in fout works fine.
>>> 
>>> i have tryed it with commandline-csound 6.07 and with csound~
>>> 
>>> michi
>>> 
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>      https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-10-11 12:09
FromJohn ff
SubjectRe: problem with fiopen / fout
Is the i in fiopen i-rate or input?


Sent from TypeApp

On 11 Oct 2016, at 09:49, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:
The problem is that the code does not support what is in the manual. fiopen will open only CSFILE_STD types and
fout will only handle only CSFILE_SND_W. The two are incompatible. Hence when we try to run the code,
we get

INIT ERROR in instr 100: invalid file handle

I wonder if this is a manual error or a code error.



On 10 Oct 2016, at 20:10, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:

A ticket should be opened. I can take it from there. I guess I am the one who vaguely knows the area. The code ain't pretty.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth Unive rsity
Ireland

On 10 Oct 2016, at 19:55, jpff <jpff@CODEMIST.CO.UK> wrote:



On Mon, 10 Oct 2016, Michael Breitenbach wrote:

hi csounders,

whats wrong with this code?


Not your code but this is a bug IMHO
Breaks for me in init pass for fout.i opcode

Needs someone who understands this area.


<CsoundSynthesizer>

<CsOptions>
-i adc -o dac -b 128 -B 128 -A -+rtmidi=coremidi -M4 ;coremidi leider nur ein input möglich
</CsOptions>

<CsInstruments>
sr = 96000 kr = 2400
ksmps = 40
nchnls = 2
0dbfs = 1

gifh1 fiopen "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 2

instr 100

aSig oscili 1, 440
outs aSig, aSig
; fout "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 26, aSig, aSig
fout gifh1, 26, aSig, aSig

endin


</CsInstruments>

<CsScore>
i100 0 5
</CsScore>

</CsoundSynthesizer>

makes:

new alloc for instr 100:
INIT ERROR in instr 100: invalid file handle
fout.i gifh1 26 aSig aSig
B 0.000 - note deleted. i100 had 1 init errors

filename direct as string in fout works fine.

i have tryed it with commandline-csound 6.07 and with csound~

michi


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cg i-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing listCsound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-10-11 12:13
FromVictor Lazzarini
SubjectRe: problem with fiopen / fout
In fiopen, a file is opened with CSFILE_STD type, then the handle is passed to fout, which
can’t do anything with it, because it expects CSFILE_SND_W.


> On 11 Oct 2016, at 12:09, John ff  wrote:
> 
> Is the i in fiopen i-rate or input?
> 
> 
> Sent from TypeApp
> 
> On 11 Oct 2016, at 09:49, Victor Lazzarini  wrote:
> The problem is that the code does not support what is in the manual. fiopen will open only CSFILE_STD types and
> fout will only handle only CSFILE_SND_W. The two are incompatible. Hence when we try to run the code,
> we get
> 
> INIT ERROR in instr 100: invalid file handle
> 
> I wonder if this is a manual error or a code error.
> 
> 
> 
>  On 10 Oct 2016, at 20:10, Victor Lazzarini  wrote:
>  
>  A ticket should be opened. I can take it from there. I guess I am the one who vaguely knows the area. The code ain't pretty.
>  
>  Victor Lazzarini
>  Dean of Arts, Celtic Studies, and Philosophy
>  Maynooth University
>  Ireland
>  
>  On 10 Oct 2016, at 19:55, jpff
>  wrote:
> 
>  
>  
>  
>  On Mon, 10 Oct 2016, Michael Breitenbach wrote:
>  
>  hi csounders,
>  
>  whats wrong with this code?
>  
>  
>  Not your code but this is a bug IMHO
>  Breaks for me in init pass for fout.i opcode
>  
>  Needs someone who understands this area.
>  
>  
>  
>  
>  
>  -i adc -o dac -b 128 -B 128 -A -+rtmidi=coremidi -M4 ;coremidi leider nur ein input möglich
>  
>  
>  
>  sr      = 96000
>  kr    = 2400
>  ksmps    = 40
>  nchnls    = 2
>  0dbfs    = 1
>  
>  gifh1 fiopen "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 2
>  
>  instr 100
>  
>   aSig oscili 1,
> 440
> 
>   outs aSig, aSig
>  ;    fout  "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 26, aSig, aSig
>   fout  gifh1, 26, aSig, aSig
>  
>  endin
>  
>  
>  
>  
>  
>  i100 0 5
>  
>  
>  
>  
>  makes:
>  
>  new alloc for instr 100:
>  INIT ERROR in instr 100:  invalid file handle 
>        fout.i  gifh1   26      aSig    aSig
>         B  0.000 - note deleted.  i100 had 1 init errors 
>  
>  filename direct as string in fout works fine.
>  
>  i have tryed it with commandline-csound 6.07 and with csound~
>  
>  michi
>   
>  
>  Csound mailing list
>  Csound@listserv.heanet.ie
>  https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>  Send bugs reports to
>       https://github.com/csound/csound/issues
>  Discussions of bugs and features can be
> posted here
> 
>  
>  
>  Csound mailing list
>  Csound@listserv.heanet.ie
>  https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>  Send bugs reports to
>       https://github.com/csound/csound/issues
>  Discussions of bugs and features can be posted here
>  
>  Csound mailing list
>  Csound@listserv.heanet.ie
>  https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>  Send bugs reports to
>         https://github.com/csound/csound/issues
>  Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-10-11 14:00
FromMichael Breitenbach
SubjectRe: problem with fiopen / fout
thanks victor - i understand, its not possible to do this in this manner.
all the best
michi



> Am 11.10.2016 um 13:13 schrieb Victor Lazzarini :
> 
> In fiopen, a file is opened with CSFILE_STD type, then the handle is passed to fout, which
> can’t do anything with it, because it expects CSFILE_SND_W.
> 
> 
>> On 11 Oct 2016, at 12:09, John ff  wrote:
>> 
>> Is the i in fiopen i-rate or input?
>> 
>> 
>> Sent from TypeApp
>> 
>> On 11 Oct 2016, at 09:49, Victor Lazzarini  wrote:
>> The problem is that the code does not support what is in the manual. fiopen will open only CSFILE_STD types and
>> fout will only handle only CSFILE_SND_W. The two are incompatible. Hence when we try to run the code,
>> we get
>> 
>> INIT ERROR in instr 100: invalid file handle
>> 
>> I wonder if this is a manual error or a code error.
>> 
>> 
>> 
>> On 10 Oct 2016, at 20:10, Victor Lazzarini  wrote:
>> 
>> A ticket should be opened. I can take it from there. I guess I am the one who vaguely knows the area. The code ain't pretty.
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>> On 10 Oct 2016, at 19:55, jpff
>>  wrote:
>> 
>> 
>> 
>> 
>> On Mon, 10 Oct 2016, Michael Breitenbach wrote:
>> 
>> hi csounders,
>> 
>> whats wrong with this code?
>> 
>> 
>> Not your code but this is a bug IMHO
>> Breaks for me in init pass for fout.i opcode
>> 
>> Needs someone who understands this area.
>> 
>> 
>> 
>> 
>> 
>> -i adc -o dac -b 128 -B 128 -A -+rtmidi=coremidi -M4 ;coremidi leider nur ein input möglich
>> 
>> 
>> 
>> sr      = 96000
>> kr    = 2400
>> ksmps    = 40
>> nchnls    = 2
>> 0dbfs    = 1
>> 
>> gifh1 fiopen "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 2
>> 
>> instr 100
>> 
>>  aSig oscili 1,
>> 440
>> 
>>  outs aSig, aSig
>> ;    fout  "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 26, aSig, aSig
>>  fout  gifh1, 26, aSig, aSig
>> 
>> endin
>> 
>> 
>> 
>> 
>> 
>> i100 0 5
>> 
>> 
>> 
>> 
>> makes:
>> 
>> new alloc for instr 100:
>> INIT ERROR in instr 100:  invalid file handle 
>>       fout.i  gifh1   26      aSig    aSig
>>        B  0.000 - note deleted.  i100 had 1 init errors 
>> 
>> filename direct as string in fout works fine.
>> 
>> i have tryed it with commandline-csound 6.07 and with csound~
>> 
>> michi
>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>      https://github.com/csound/csound/issues
>> Discussions of bugs and features can be
>> posted here
>> 
>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>      https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-10-11 14:43
FromJohn ff
SubjectRe: problem with fiopen / fout
At least the manual needs a new comment.


Sent from TypeApp

On 11 Oct 2016, at 14:17, Michael Breitenbach <m@MICHAELBREITENBACH.DE> wrote:
thanks victor - i understand, its not possible to do this in this manner.
all the best
michi



Am 11.10.2016 um 13:13 schrieb Victor Lazzarini <Victor.Lazzarini@NUIM.IE>:

In fiopen, a file is opened with CSFILE_STD type, then the handle is passed to fout, which
can’t do anything with it, because it expects CSFILE_SND_W.


On 11 Oct 2016, at 12:09, John ff <jpff@CODEMIST.CO.UK> wrote:

Is the i in fiopen i-rate or input?


Sent from TypeApp

On 11 Oct 2016 , at 09:49, Victor Lazzarini <Victor.Lazzarini@NUIM.IE> wrote:
The problem is that the code does not support what is in the manual. fiopen will open only CSFILE_STD types and
fout will only handle only CSFILE_SND_W. The two are incompatible. Hence when we try to run the code,
we get

INIT ERROR in instr 100: invalid file handle

I wonder if this is a manual error or a code error.



On 10 Oct 2016, at 20:10, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:

A ticket should be opened. I can take it from there. I guess I am the one who vaguely knows the area. The code ain't pretty.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 10 Oct 2016, at 19:55, jpff
<jpff@CODEMIST.CO.UK> wrote:




On Mon, 10 Oct 2016, Michael Breitenbach wrote:

hi csounders,

whats wrong with this code?


Not y our code but this is a bug IMHO
Breaks for me in init pass for fout.i opcode

Needs someone who understands this area.


<CsoundSynthesizer>

<CsOptions>
-i adc -o dac -b 128 -B 128 -A -+rtmidi=coremidi -M4 ;coremidi leider nur ein input möglich
</CsOptions>

<CsInstruments>
sr = 96000
kr = 2400
ksmps = 40
nchnls = 2
0dbfs = 1

gifh1 fiopen "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 2

instr 100

aSig oscili 1,
440

outs aSig, aSig
; fout "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 26, aSig, aSig
fout gifh1, 26, aSig, aSig

endin


</CsInstruments>

<CsScore>
i100 0 5
</CsScore>

</CsoundSynthesizer>

makes:

new alloc for instr 100:
INIT ERROR in instr 100: invalid file handle
fout.i gifh1 26 aSig aSig
B 0.000 - note deleted. i100 had 1 init errors

filename direct as string in fout works fine.

i have tryed it with commandline-csound 6.07 and with csound~

michi


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be
posted here



Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Cs ound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of b ugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-10-11 15:20
FromVictor Lazzarini
SubjectRe: problem with fiopen / fout
yes, it needs to be edited to say that fout does not work with fiopen.


> On 11 Oct 2016, at 14:43, John ff  wrote:
> 
> At least the manual needs a new comment.
> 
> 
> Sent from TypeApp
> 
> On 11 Oct 2016, at 14:17, Michael Breitenbach  wrote:
> thanks victor - i understand, its not possible to do this in this manner.
> all the best
> michi
> 
> 
> 
>  Am 11.10.2016 um 13:13 schrieb Victor Lazzarini :
>  
>  In fiopen, a file is opened with CSFILE_STD type, then the handle is passed to fout, which
>  can’t do anything with it, because it expects CSFILE_SND_W.
>  
>  
>  On 11 Oct 2016, at 12:09, John ff  wrote:
>  
>  Is the i in fiopen i-rate or input?
>  
>  
>  Sent from TypeApp
>  
>  On 11 Oct 2016, at 09:49, Victor Lazzarini  wrote:
>  The problem is that the code does not support what is in the manual. fiopen will open only CSFILE_STD types and
>  fout
> will only handle only CSFILE_SND_W. The two are incompatible. Hence when we try to run the code,
> 
>  we get
>  
>  INIT ERROR in instr 100: invalid file handle
>  
>  I wonder if this is a manual error or a code error.
>  
>  
>  
>  On 10 Oct 2016, at 20:10, Victor Lazzarini  wrote:
>  
>  A ticket should be opened. I can take it from there. I guess I am the one who vaguely knows the area. The code ain't pretty.
>  
>  Victor Lazzarini
>  Dean of Arts, Celtic Studies, and Philosophy
>  Maynooth University
>  Ireland
>  
>  On 10 Oct 2016, at 19:55, jpff
>   wrote:
>  
>  
>  
>  
>  On Mon, 10 Oct 2016, Michael Breitenbach wrote:
>  
>  hi csounders,
>  
>  whats wrong with this code?
>  
>  
>  Not your code but this is a bug IMHO
>  Breaks for me in init pass for fout.i opcode
>  
>  Needs someone who understands this area.
>  
>  
>  
>  
> 
> 
> 
>  -i adc -o dac -b 128 -B 128 -A -+rtmidi=coremidi -M4 ;coremidi leider nur ein input möglich
>  
>  
>  
>  sr      = 96000
>  kr    = 2400
>  ksmps    = 40
>  nchnls    = 2
>  0dbfs    = 1
>  
>  gifh1 fiopen "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 2
>  
>  instr 100
>  
>   aSig oscili 1,
>  440
>  
>   outs aSig, aSig
>  ;    fout  "/Users/michaelbreitenbach/_csound/MTR_test/testXXX.aiff", 26, aSig, aSig
>   fout  gifh1, 26, aSig, aSig
>  
>  endin
>  
>  
>  
>  
>  
>  i100 0 5
>  
>  
>  
>  
>  makes:
>  
>  new alloc for instr 100:
>  INIT ERROR in instr 100:  invalid file handle 
>        fout.i  gifh1   26      aSig    aSig
>         B  0.000 - note deleted.  i100 had 1 init errors 
>  
>  filename direct as string in fout works fine.
>  
>  i have tryed it with
> commandline-csound 6.07 and with csound~
> 
>  
>  michi
>  
>  
>  Csound mailing list
>  Csound@listserv.heanet.ie
>  https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>  Send bugs reports to
>       https://github.com/csound/csound/issues
>  Discussions of bugs and features can be
>  posted here
>  
>  
>  
>  Csound mailing list
>  Csound@listserv.heanet.ie
>  https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>  Send bugs reports to
>       https://github.com/csound/csound/issues
>  Discussions of bugs and features can be posted here
>  
>  Csound mailing list
>  Csound@listserv.heanet.ie
>  https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>  Send bugs reports to
>        
> 
> https://github.com/csound/csound/issues
>  Discussions of bugs and features can be posted here
>  
>  Csound mailing list
>  Csound@listserv.heanet.ie
>  https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>  Send bugs reports to
>         https://github.com/csound/csound/issues
>  Discussions of bugs and features can be posted here
>  Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
>  
>  
>  Csound mailing list
>  Csound@listserv.heanet.ie
>  https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>  Send bugs reports to
>         https://github.com/csound/csound/issues
>  Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here