Csound Csound-dev Csound-tekno Search About

[Csnd] mystery error using scanu/scans

Date2018-08-13 18:48
Fromcybilsopsin
Subject[Csnd] mystery error using scanu/scans
Good afternoon,

I am just beginning a scanned synthesis project from scratch and I'm running
into an error I don't understand.

I will post the .csd file below. there is only one note event in the score
and the error is given when that note is initialized, and then the note is
deleted and not performed. 

The error message says "INIT ERROR in instr 747: cannot be more In arguments
than Out in init (1,3)"

Please note that my extremely simple example file doesn't output any sound
because no output opcode (e.g. outs) is used.

Thanks for your help!

Here's the file:






sr = 44100
ksmps = 4
nchnls = 2
0dbfs = 4

instr 747
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;INPUT
i_ftinit = 8
i_ftvel = 9
i_ftmass = 10 
i_ftstif = 11
i_ftcntr = 12
i_ftdamp = 13
k_mass init 2
k_stif linseg .2, p3*.5, .05, p3*.5, .2
k_cntr line .1, p3, .3
k_damp init -.1, p3, 0 
i_left = 0
i_right = 0
k_x = 0
k_y = 0
a_in line 0, p3, 0
i_ftwav = 1
k_amp xadsr .15, .15, .89, .25
k_freq xadsr .15, 0, 1, .25
k_freq = k_freq*p4
i_fttraj = 14

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SCANNED
SYNTHESIS
scanu i_ftinit, .01, i_ftvel, i_ftmass, i_ftstif, i_ftcntr, i_ftdamp, \
k_mass, k_stif, k_cntr, k_damp, i_left, i_right, k_x, k_y, a_in, 1, i_ftwav
a1 scans k_amp, k_freq, i_fttraj, i_ftwav
endin




f 8 0 8 10 1                             ;init
f 9 0 8 -2 1 1 1 1 1 1 1 1          ;velocity
f 10 0 8 -2 1 1 1 1 1 1 1 1        ;mass
f 11 0 64 -23 "str_mtrx_1.txt"  ;stiff
f 12 0 8 -2 1 1 1 1 1 1 1 1        ;center
f 13 0 8 -2 1 1 1 1 1 1 1 1        ;damp
f 14 0 8 -2 1 2 3 4 5 6 7 8        ;trajectory

i747 0 10 1000







-----
***cybilopsin***
"We are all guilty of crime, the great crime of not living life to the full." - Henry Miller
--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2018-08-13 21:38
FromJohn ff
SubjectRe: [Csnd] mystery error using scanu/scans
Your line calling init is wrong

k_damp init -.1, p3, 0

Init goes not take 3 args except on array cases

Sent from TypeApp
On 13 Aug 2018, at 18:49, cybilsopsin <cybilopsin@gmail.com> wrote:
Good afternoon,

I am just beginning a scanned synthesis project from scratch and I'm running
into an error I don't understand.

I will post the .csd file below. there is only one note event in the score
and the error is given when that note is initialized, and then the note is
deleted and not performed.

The error message says "INIT ERROR in instr 747: cannot be more In arguments
than Out in init (1,3)"

Please note that my extremely simple example file doesn't output any sound
because no output opcode (e.g. outs) is used.

Thanks for your help!

Here's the file:

<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 4
nchnls = 2
0dbfs = 4

instr 747
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;INPUT
i_ftinit = 8
i_ftvel = 9
i_ftmass = 10
i_ftstif = 11
i_ftcntr = 12
i_ftdamp = 13
k_mass init 2
k_stif linseg .2, p3*.5, .05, p3*.5, .2
k_cntr line .1, p3, .3
k_damp init -.1, p3, 0
i_left = 0
i_right = 0
k_x = 0
k_y = 0
a_in line 0, p3, 0
i_ftwav = 1
k_amp xadsr .15, .15, .89, .25
k_freq xadsr .15, 0, 1, .25
k_freq = k_freq*p4
i_fttraj = 14

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SCANNED
SYNTHESIS
scanu i_ftinit, .01, i_ftvel, i_ftmass, i_ftstif, i_ftcntr, i_ftdamp, \
k_mass, k_stif, k_cntr, k_damp, i_left, i_right, k_x, k_y, a_in, 1, i_ftwav
a1 scans k_amp, k_freq, i_fttraj, i_ftwav
endin

</CsInstruments>
<CsScore>

f 8 0 8 10 1 ;init
f 9 0 8 -2 1 1 1 1 1 1 1 1 ;velocity
f 10 0 8 -2 1 1 1 1 1 1 1 1 ;mass
f 11 0 64 -23 "str_mtrx_1.txt" ;stiff
f 12 0 8 -2 1 1 1 1 1 1 1 1 ;center
f 13 0 8 -2 1 1 1 1 1 1 1 1 ;damp
f 14 0 8 -2 1 2 3 4 5 6 7 8 ;trajectory

i747 0 10 1000

</CsScore>
</CsoundSynthesizer>




-----
***cybilopsin***
"We are all guilty of crime, the great crime of not living life to the full." - Henry Miller
--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2018-08-14 12:57
FromJohn ff
SubjectRe: [Csnd] mystery error using scanu/scans
PS you probably mean line not init

Error message says there is only 1 output (k_dsmp) and 3 inputs (-1, p3, 0)

Seems clear to me

Sent from TypeApp
On 13 Aug 2018, at 21:40, John ff <jpff@codemist.co.uk> wrote:
Your line calling init is wrong

k_damp init -.1, p3, 0

Init goes not take 3 args except on array cases

Sent from TypeApp
On 13 Aug 2018, at 18:49, cybilsopsin < cybilopsin@gmail.com> wrote:
Good afternoon,

I am just beginning a scanned synthesis project from scratch and I'm running
into an error I don't understand.

I will post the .csd file below. there is only one note event in the score
and the error is given when that note is initialized, and then the note is
deleted and not performed.

The error message says "INIT ERROR in instr 747: cannot be more In arguments
than Out in init (1,3)"

Please note that my extremely simple example file doesn't output any sound
because no output opcode (e.g. outs) is used.

Thanks for your help!

Here's the file:

<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 4
nchnls = 2
0dbfs = 4

instr 747
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;INPUT
i_ftinit = 8
i_ftvel = 9
i_ftmass = 10
i_ftstif = 11
i_ftcntr = 12
i_ftdamp = 13
k_mass init 2
k_stif linseg .2, p3*.5, .05, p3*.5, .2
k_cntr line .1, p3, .3
k_damp init -.1, p3, 0
i_left = 0
i_right = 0
k_x = 0
k_y = 0
a_in line 0, p3, 0
i_ftwav = 1
k_amp xadsr .15, .15, .89, .25
k_freq xadsr .15, 0, 1, .25
k_freq = k_freq*p4
i_fttraj = 14

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SCANNED
SYNTHESIS
scanu i_ftinit, .01, i_ftvel, i_ftmass, i_ftstif, i_ftcntr, i_ftdamp, \
k_mass, k_stif, k_cntr, k_damp, i_left, i_right, k_x, k_y, a_in, 1, i_ftwav
a1 scans k_amp, k_freq, i_fttraj, i_ftwav
endin

</CsInstruments>
<CsScore>

f 8 0 8 10 1 ;init
f 9 0 8 -2 1 1 1 1 1 1 1 1 ;velocity
f 10 0 8 -2 1 1 1 1 1 1 1 1 ;mass
f 11 0 64 -23 "str_mtrx_1.txt" ;stiff
f 12 0 8 -2 1 1 1 1 1 1 1 1 ;center
f 13 0 8 -2 1 1 1 1 1 1 1 1 ;damp
f 14 0 8 -2 1 2 3 4 5 6 7 8 ;trajectory

i747 0 10 1000

</CsScore>
</CsoundSynthesizer>




-----
***cybilopsin***
"We are all guilty of crime, the great crime of not living life to the full." - Henry Miller
--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2018-08-14 14:32
Fromjoachim heintz
SubjectRe: [Csnd] mystery error using scanu/scans
do you think it would be possible to include the line number in the 
errer message?



On 14/08/18 13:57, John ff wrote:
> PS you probably mean line not init
>
> Error message says there is only 1 output (k_dsmp) and 3 inputs (-1, p3, 0)
>
> Seems clear to me
>
> Sent from TypeApp 
> On 13 Aug 2018, at 21:40, John ff  > wrote:
>
>     Your line calling init is wrong
>
>     k_damp init -.1, p3, 0
>
>     Init goes not take 3 args except on array cases
>
>     Sent from TypeApp 
>     On 13 Aug 2018, at 18:49, cybilsopsin < cybilopsin@gmail.com
>     > wrote:
>
>         Good afternoon,
>
>         I am just beginning a scanned synthesis project from scratch and I'm running
>         into an error I don't understand.
>
>         I will post the .csd file below. there is only one note event in the score
>         and the error is given when that note is initialized, and then the note is
>         deleted and not performed.
>
>         The error message says "INIT ERROR in instr 747: cannot be more In arguments
>         than Out in init (1,3)"
>
>         Please note that my extremely simple example file doesn't output any sound
>         because no output opcode (e.g. outs) is used.
>
>         Thanks for your help!
>
>         Here's the file:
>
>         
>         
>         
>         
>
>         sr = 44100
>         ksmps = 4
>         nchnls = 2
>         0dbfs = 4
>
>         instr 747
>         ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;INPUT
>         i_ftinit = 8
>         i_ftvel = 9
>         i_ftmass = 10
>         i_ftstif = 11
>         i_ftcntr = 12
>         i_ftdamp = 13
>         k_mass init 2
>         k_stif linseg .2, p3*.5, .05, p3*.5, .2
>         k_cntr line .1, p3, .3
>         k_damp init -.1, p3, 0
>         i_left = 0
>         i_right = 0
>         k_x = 0
>         k_y = 0
>         a_in line 0, p3, 0
>         i_ftwav = 1
>         k_amp xadsr .15, .15, .89, .25
>         k_freq xadsr .15, 0, 1, .25
>         k_freq = k_freq*p4
>         i_fttraj = 14
>
>         ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SCANNED
>         SYNTHESIS
>         scanu i_ftinit, .01, i_ftvel, i_ftmass, i_ftstif, i_ftcntr, i_ftdamp, \
>         k_mass, k_stif, k_cntr, k_damp, i_left, i_right, k_x, k_y, a_in, 1, i_ftwav
>         a1 scans k_amp, k_freq, i_fttraj, i_ftwav
>         endin
>
>         
>         
>
>         f 8 0 8 10 1                             ;init
>         f 9 0 8 -2 1 1 1 1 1 1 1 1          ;velocity
>         f 10 0 8 -2 1 1 1 1 1 1 1 1        ;mass
>         f 11 0 64 -23 "str_mtrx_1.txt"  ;stiff
>         f 12 0 8 -2 1 1 1 1 1 1 1 1        ;center
>         f 13 0 8 -2 1 1 1 1 1 1 1 1        ;damp
>         f 14 0 8 -2 1 2 3 4 5 6 7 8        ;trajectory
>
>         i747 0 10 1000
>
>         
>         
>
>
>
>
>         -----
>         ***cybilopsin***
>         "We are all guilty of crime, the great crime of not living life to the full." - Henry Miller
>         --
>         Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
>         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

Date2018-08-14 15:00
Fromjpff
SubjectRe: [Csnd] mystery error using scanu/scans
Not easily as the error is at run time and the line number is lost in the 
compilation.  I will think about it but there us no trivial/simple method 
that comes to mind.


On Tue, 14 Aug 2018, joachim heintz wrote:

> do you think it would be possible to include the line number in the errer 
> message?
>
>
>
> On 14/08/18 13:57, John ff wrote:
>> PS you probably mean line not init
>> 
>> Error message says there is only 1 output (k_dsmp) and 3 inputs (-1, p3, 0)
>> 
>> Seems clear to me
>> 
>> Sent from TypeApp 
>> On 13 Aug 2018, at 21:40, John ff > > wrote:
>>
>>     Your line calling init is wrong
>>
>>     k_damp init -.1, p3, 0
>>
>>     Init goes not take 3 args except on array cases
>>
>>     Sent from TypeApp 
>>     On 13 Aug 2018, at 18:49, cybilsopsin < cybilopsin@gmail.com
>>     > wrote:
>>
>>         Good afternoon,
>>
>>         I am just beginning a scanned synthesis project from scratch and 
>> I'm running
>>         into an error I don't understand.
>>
>>         I will post the .csd file below. there is only one note event in 
>> the score
>>         and the error is given when that note is initialized, and then the 
>> note is
>>         deleted and not performed.
>>
>>         The error message says "INIT ERROR in instr 747: cannot be more In 
>> arguments
>>         than Out in init (1,3)"
>>
>>         Please note that my extremely simple example file doesn't output 
>> any sound
>>         because no output opcode (e.g. outs) is used.
>>
>>         Thanks for your help!
>>
>>         Here's the file:
>>
>>         
>>         
>>         
>>         
>>
>>         sr = 44100
>>         ksmps = 4
>>         nchnls = 2
>>         0dbfs = 4
>>
>>         instr 747
>>         ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;INPUT
>>         i_ftinit = 8
>>         i_ftvel = 9
>>         i_ftmass = 10
>>         i_ftstif = 11
>>         i_ftcntr = 12
>>         i_ftdamp = 13
>>         k_mass init 2
>>         k_stif linseg .2, p3*.5, .05, p3*.5, .2
>>         k_cntr line .1, p3, .3
>>         k_damp init -.1, p3, 0
>>         i_left = 0
>>         i_right = 0
>>         k_x = 0
>>         k_y = 0
>>         a_in line 0, p3, 0
>>         i_ftwav = 1
>>         k_amp xadsr .15, .15, .89, .25
>>         k_freq xadsr .15, 0, 1, .25
>>         k_freq = k_freq*p4
>>         i_fttraj = 14
>>
>>         ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SCANNED
>>         SYNTHESIS
>>         scanu i_ftinit, .01, i_ftvel, i_ftmass, i_ftstif, i_ftcntr, 
>> i_ftdamp, \
>>         k_mass, k_stif, k_cntr, k_damp, i_left, i_right, k_x, k_y, a_in, 1, 
>> i_ftwav
>>         a1 scans k_amp, k_freq, i_fttraj, i_ftwav
>>         endin
>>
>>         
>>         
>>
>>         f 8 0 8 10 1                             ;init
>>         f 9 0 8 -2 1 1 1 1 1 1 1 1          ;velocity
>>         f 10 0 8 -2 1 1 1 1 1 1 1 1        ;mass
>>         f 11 0 64 -23 "str_mtrx_1.txt"  ;stiff
>>         f 12 0 8 -2 1 1 1 1 1 1 1 1        ;center
>>         f 13 0 8 -2 1 1 1 1 1 1 1 1        ;damp
>>         f 14 0 8 -2 1 2 3 4 5 6 7 8        ;trajectory
>>
>>         i747 0 10 1000
>>
>>         
>>         
>> 
>> 
>> 
>>
>>         -----
>>         ***cybilopsin***
>>         "We are all guilty of crime, the great crime of not living life to 
>> the full." - Henry Miller
>>         --
>>         Sent from: 
>> http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>>
>>         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

Date2018-08-14 15:33
Fromjoachim heintz
SubjectRe: [Csnd] mystery error using scanu/scans
thanks.
perhaps a stupid question:
why is it a runtime error?
does the mismatch of input and output not show up during compilation?



On 14/08/18 16:00, jpff wrote:
> Not easily as the error is at run time and the line number is lost in
> the compilation.  I will think about it but there us no trivial/simple
> method that comes to mind.
>
>
> On Tue, 14 Aug 2018, joachim heintz wrote:
>
>> do you think it would be possible to include the line number in the
>> errer message?
>>
>>
>>
>> On 14/08/18 13:57, John ff wrote:
>>> PS you probably mean line not init
>>>
>>> Error message says there is only 1 output (k_dsmp) and 3 inputs (-1,
>>> p3, 0)
>>>
>>> Seems clear to me
>>>
>>> Sent from TypeApp 
>>> On 13 Aug 2018, at 21:40, John ff >> > wrote:
>>>
>>>     Your line calling init is wrong
>>>
>>>     k_damp init -.1, p3, 0
>>>
>>>     Init goes not take 3 args except on array cases
>>>
>>>     Sent from TypeApp 
>>>     On 13 Aug 2018, at 18:49, cybilsopsin < cybilopsin@gmail.com
>>>     > wrote:
>>>
>>>         Good afternoon,
>>>
>>>         I am just beginning a scanned synthesis project from scratch
>>> and I'm running
>>>         into an error I don't understand.
>>>
>>>         I will post the .csd file below. there is only one note event
>>> in the score
>>>         and the error is given when that note is initialized, and
>>> then the note is
>>>         deleted and not performed.
>>>
>>>         The error message says "INIT ERROR in instr 747: cannot be
>>> more In arguments
>>>         than Out in init (1,3)"
>>>
>>>         Please note that my extremely simple example file doesn't
>>> output any sound
>>>         because no output opcode (e.g. outs) is used.
>>>
>>>         Thanks for your help!
>>>
>>>         Here's the file:
>>>
>>>         
>>>         
>>>         
>>>         
>>>
>>>         sr = 44100
>>>         ksmps = 4
>>>         nchnls = 2
>>>         0dbfs = 4
>>>
>>>         instr 747
>>>
>>> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;INPUT
>>>
>>>         i_ftinit = 8
>>>         i_ftvel = 9
>>>         i_ftmass = 10
>>>         i_ftstif = 11
>>>         i_ftcntr = 12
>>>         i_ftdamp = 13
>>>         k_mass init 2
>>>         k_stif linseg .2, p3*.5, .05, p3*.5, .2
>>>         k_cntr line .1, p3, .3
>>>         k_damp init -.1, p3, 0
>>>         i_left = 0
>>>         i_right = 0
>>>         k_x = 0
>>>         k_y = 0
>>>         a_in line 0, p3, 0
>>>         i_ftwav = 1
>>>         k_amp xadsr .15, .15, .89, .25
>>>         k_freq xadsr .15, 0, 1, .25
>>>         k_freq = k_freq*p4
>>>         i_fttraj = 14
>>>
>>>
>>> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SCANNED
>>>
>>>         SYNTHESIS
>>>         scanu i_ftinit, .01, i_ftvel, i_ftmass, i_ftstif, i_ftcntr,
>>> i_ftdamp, \
>>>         k_mass, k_stif, k_cntr, k_damp, i_left, i_right, k_x, k_y,
>>> a_in, 1, i_ftwav
>>>         a1 scans k_amp, k_freq, i_fttraj, i_ftwav
>>>         endin
>>>
>>>         
>>>         
>>>
>>>         f 8 0 8 10 1                             ;init
>>>         f 9 0 8 -2 1 1 1 1 1 1 1 1          ;velocity
>>>         f 10 0 8 -2 1 1 1 1 1 1 1 1        ;mass
>>>         f 11 0 64 -23 "str_mtrx_1.txt"  ;stiff
>>>         f 12 0 8 -2 1 1 1 1 1 1 1 1        ;center
>>>         f 13 0 8 -2 1 1 1 1 1 1 1 1        ;damp
>>>         f 14 0 8 -2 1 2 3 4 5 6 7 8        ;trajectory
>>>
>>>         i747 0 10 1000
>>>
>>>         
>>>         
>>>
>>>
>>>
>>>
>>>         -----
>>>         ***cybilopsin***
>>>         "We are all guilty of crime, the great crime of not living
>>> life to the full." - Henry Miller
>>>         --
>>>         Sent from:
>>> http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>>>
>>>         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

Date2018-08-14 16:33
Fromjpff
SubjectRe: [Csnd] mystery error using scanu/scans
The definition of the opcode "init" says there are a variable number of 
outputs and a unknown number of inputs.  There is no way of specifying 
that the count should be the same (as indeed they are not in array case). 
So the check is delegated to the opcode init pass.

I have been looking at the more general issue of providing line numbers in 
init and perf error messages.  I think I can see where to place the data but 
have not identified where it can be populated.

Tempting to go back to not having any line numbers, limits to orc sizes, 
fixed sizes of lines of code, instrument numbers,........  -;) +other 
emojis!

  On Tue, 14 Aug 2018, joachim heintz wrote:

> thanks.
> perhaps a stupid question:
> why is it a runtime error?
> does the mismatch of input and output not show up during compilation?
>
>
>
> On 14/08/18 16:00, jpff wrote:
>> Not easily as the error is at run time and the line number is lost in
>> the compilation.  I will think about it but there us no trivial/simple
>> method that comes to mind.
>> 
>> 
>> On Tue, 14 Aug 2018, joachim heintz wrote:
>> 
>>> do you think it would be possible to include the line number in the
>>> errer message?
>>> 
>>> 
>>> 
>>> On 14/08/18 13:57, John ff wrote:
>>>> PS you probably mean line not init
>>>> 
>>>> Error message says there is only 1 output (k_dsmp) and 3 inputs (-1,
>>>> p3, 0)
>>>> 
>>>> Seems clear to me
>>>> 
>>>> Sent from TypeApp 
>>>> On 13 Aug 2018, at 21:40, John ff >>> > wrote:
>>>>
>>>>     Your line calling init is wrong
>>>>
>>>>     k_damp init -.1, p3, 0
>>>>
>>>>     Init goes not take 3 args except on array cases
>>>>
>>>>     Sent from TypeApp 
>>>>     On 13 Aug 2018, at 18:49, cybilsopsin < cybilopsin@gmail.com
>>>>     > wrote:
>>>>
>>>>         Good afternoon,
>>>>
>>>>         I am just beginning a scanned synthesis project from scratch
>>>> and I'm running
>>>>         into an error I don't understand.
>>>>
>>>>         I will post the .csd file below. there is only one note event
>>>> in the score
>>>>         and the error is given when that note is initialized, and
>>>> then the note is
>>>>         deleted and not performed.
>>>>
>>>>         The error message says "INIT ERROR in instr 747: cannot be
>>>> more In arguments
>>>>         than Out in init (1,3)"
>>>>
>>>>         Please note that my extremely simple example file doesn't
>>>> output any sound
>>>>         because no output opcode (e.g. outs) is used.
>>>>
>>>>         Thanks for your help!
>>>>
>>>>         Here's the file:
>>>>
>>>>         
>>>>         
>>>>         
>>>>         
>>>>
>>>>         sr = 44100
>>>>         ksmps = 4
>>>>         nchnls = 2
>>>>         0dbfs = 4
>>>>
>>>>         instr 747
>>>> 
>>>> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;INPUT
>>>>
>>>>         i_ftinit = 8
>>>>         i_ftvel = 9
>>>>         i_ftmass = 10
>>>>         i_ftstif = 11
>>>>         i_ftcntr = 12
>>>>         i_ftdamp = 13
>>>>         k_mass init 2
>>>>         k_stif linseg .2, p3*.5, .05, p3*.5, .2
>>>>         k_cntr line .1, p3, .3
>>>>         k_damp init -.1, p3, 0
>>>>         i_left = 0
>>>>         i_right = 0
>>>>         k_x = 0
>>>>         k_y = 0
>>>>         a_in line 0, p3, 0
>>>>         i_ftwav = 1
>>>>         k_amp xadsr .15, .15, .89, .25
>>>>         k_freq xadsr .15, 0, 1, .25
>>>>         k_freq = k_freq*p4
>>>>         i_fttraj = 14
>>>> 
>>>> 
>>>> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SCANNED
>>>>
>>>>         SYNTHESIS
>>>>         scanu i_ftinit, .01, i_ftvel, i_ftmass, i_ftstif, i_ftcntr,
>>>> i_ftdamp, \
>>>>         k_mass, k_stif, k_cntr, k_damp, i_left, i_right, k_x, k_y,
>>>> a_in, 1, i_ftwav
>>>>         a1 scans k_amp, k_freq, i_fttraj, i_ftwav
>>>>         endin
>>>>
>>>>         
>>>>         
>>>>
>>>>         f 8 0 8 10 1                             ;init
>>>>         f 9 0 8 -2 1 1 1 1 1 1 1 1          ;velocity
>>>>         f 10 0 8 -2 1 1 1 1 1 1 1 1        ;mass
>>>>         f 11 0 64 -23 "str_mtrx_1.txt"  ;stiff
>>>>         f 12 0 8 -2 1 1 1 1 1 1 1 1        ;center
>>>>         f 13 0 8 -2 1 1 1 1 1 1 1 1        ;damp
>>>>         f 14 0 8 -2 1 2 3 4 5 6 7 8        ;trajectory
>>>>
>>>>         i747 0 10 1000
>>>>
>>>>         
>>>>         
>>>> 
>>>> 
>>>> 
>>>>
>>>>         -----
>>>>         ***cybilopsin***
>>>>         "We are all guilty of crime, the great crime of not living
>>>> life to the full." - Henry Miller
>>>>         --
>>>>         Sent from:
>>>> http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>>>>
>>>>         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

Date2018-08-14 17:41
Fromjpff
SubjectRe: [Csnd] mystery error using scanu/scans
OK; it was partially done.  My version gives better init errors messages

SECTION 1:
new alloc for instr 1:
INIT ERROR in instr 1 line 5: Cannot be more In arguments than Out in init 
(1,3)
  from file errinit.csd (1)
kk      init.k  0       1       2
           B  0.000 - note deleted.  i1 had 1 init errors


Will take a little longer to do this to PerfError, and then I will commit.


On Tue, 14 Aug 2018, joachim heintz wrote:

> thanks.
> perhaps a stupid question:
> why is it a runtime error?
> does the mismatch of input and output not show up during compilation?
>

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

Date2018-08-14 19:11
Fromjoachim heintz
SubjectRe: [Csnd] mystery error using scanu/scans
super — looking forward!
thanks -
	j



On 14/08/18 18:41, jpff wrote:
> OK; it was partially done.  My version gives better init errors messages
>
> SECTION 1:
> new alloc for instr 1:
> INIT ERROR in instr 1 line 5: Cannot be more In arguments than Out in
> init (1,3)
>  from file errinit.csd (1)
> kk      init.k  0       1       2
>           B  0.000 - note deleted.  i1 had 1 init errors
>
>
> Will take a little longer to do this to PerfError, and then I will commit.
>
>
> On Tue, 14 Aug 2018, joachim heintz wrote:
>
>> thanks.
>> perhaps a stupid question:
>> why is it a runtime error?
>> does the mismatch of input and output not show up during compilation?
>>
>
> 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

Date2018-08-14 21:39
Fromjpff
SubjectRe: [Csnd] mystery error using scanu/scans
Committed -- treat with care

On Tue, 14 Aug 2018, joachim heintz wrote:

> super — looking forward!
> thanks -
> 	j
>
>
>
> On 14/08/18 18:41, jpff wrote:
>> OK; it was partially done.  My version gives better init errors messages
>> 
>> SECTION 1:
>> new alloc for instr 1:
>> INIT ERROR in instr 1 line 5: Cannot be more In arguments than Out in
>> init (1,3)
>>  from file errinit.csd (1)
>> kk      init.k  0       1       2
>>           B  0.000 - note deleted.  i1 had 1 init errors
>> 
>> 
>> Will take a little longer to do this to PerfError, and then I will commit.
>> 
>>

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

Date2018-08-14 21:47
Fromjoachim heintz
SubjectRe: [Csnd] mystery error using scanu/scans
i pulled and it looks perfect on first test.
will report back when i experience oddities.



On 14/08/18 22:39, jpff wrote:
> Committed -- treat with care
>
> On Tue, 14 Aug 2018, joachim heintz wrote:
>
>> super — looking forward!
>> thanks -
>>     j
>>
>>
>>
>> On 14/08/18 18:41, jpff wrote:
>>> OK; it was partially done.  My version gives better init errors messages
>>>
>>> SECTION 1:
>>> new alloc for instr 1:
>>> INIT ERROR in instr 1 line 5: Cannot be more In arguments than Out in
>>> init (1,3)
>>>  from file errinit.csd (1)
>>> kk      init.k  0       1       2
>>>           B  0.000 - note deleted.  i1 had 1 init errors
>>>
>>>
>>> Will take a little longer to do this to PerfError, and then I will
>>> commit.
>>>
>>>
>
> 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