Csound Csound-dev Csound-tekno Search About

Re: [Csnd] UDO order

Date2019-10-28 20:41
FromPartev Barr Sarkissian
SubjectRe: [Csnd] UDO order
"used before defined",... get that all the time. Have to 
remember to declare items before using them. 

UDO within an UDO,... would think that wouldn't be any different. 


-pbs 


================================


--- Victor.Lazzarini@MU.IE wrote:

From:         Victor Lazzarini 
To:           CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] UDO order
Date:         Mon, 28 Oct 2019 19:49:05 +0000

The parser expects it to be defined when called, so if you are using a UDO within a UDO, then
that UDO needs to have been previously defined in the code.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 28 Oct 2019, at 19:45, Johann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE> wrote:
> 
> Hello everybody, 
> 
> Working on last fix on the tracker I showed at ICSC, I'm having a bit of
> trouble with UDO's. Actually, the problem comes from order of UDO's in csd
> file. Several tests I ran today could confirm that a UDO cannot call a UDO
> that isn't declared previously in the csd file. 
> 
> For example - this won't work here : 
> opcode one,i,i
>   iinput xin
>     output = two(iinput, iinput+1)
>   xout ioutput
> endop
> 
> opcode two,i,ii
>  ione, itwo xin
>  ioutput = ione + itwo
>  xout ioutput
> endop
> 
> But if the opcode "two" is declared first, it will work. 
> I expected that the parser would make a first pass to collect every
> opcode/variables names at global scope before to process/compile the body of
> UDO's ? 
> Is it the expected behavior ? 
> 
> I'm running on Linux mint 19 - Csound 6.13. 
> 
> Thanks.
> 
> Bests.
> Johann 
> 
> 
> 
> 
> 
> --
> 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




_____________________________________________________________
Netscape.  Just the Net You Need.

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

Date2019-10-28 21:12
FromRory Walsh
SubjectRe: [Csnd] UDO order
Nothing to add, but a big hello to Johann! I really enjoyed talking about the lost of tracking in Cagli ;)

On Mon, 28 Oct 2019 at 20:41, Partev Barr Sarkissian <encino_man@netscape.com> wrote:
"used before defined",... get that all the time. Have to
remember to declare items before using them.

UDO within an UDO,... would think that wouldn't be any different.


-pbs


================================


--- Victor.Lazzarini@MU.IE wrote:

From:         Victor Lazzarini <Victor.Lazzarini@MU.IE>
To:           CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] UDO order
Date:         Mon, 28 Oct 2019 19:49:05 +0000

The parser expects it to be defined when called, so if you are using a UDO within a UDO, then
that UDO needs to have been previously defined in the code.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 28 Oct 2019, at 19:45, Johann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE> wrote:
>
> Hello everybody,
>
> Working on last fix on the tracker I showed at ICSC, I'm having a bit of
> trouble with UDO's. Actually, the problem comes from order of UDO's in csd
> file. Several tests I ran today could confirm that a UDO cannot call a UDO
> that isn't declared previously in the csd file.
>
> For example - this won't work here :
> opcode one,i,i
>   iinput xin
>     output = two(iinput, iinput+1)
>   xout ioutput
> endop
>
> opcode two,i,ii
>  ione, itwo xin
>  ioutput = ione + itwo
>  xout ioutput
> endop
>
> But if the opcode "two" is declared first, it will work.
> I expected that the parser would make a first pass to collect every
> opcode/variables names at global scope before to process/compile the body of
> UDO's ?
> Is it the expected behavior ?
>
> I'm running on Linux mint 19 - Csound 6.13.
>
> Thanks.
>
> Bests.
> Johann
>
>
>
>
>
> --
> 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




_____________________________________________________________
Netscape.  Just the Net You Need.

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

Date2019-10-29 04:51
FromPete Goodeve
SubjectRe: [Csnd] UDO order
AttachmentsNone  

Date2019-10-29 05:47
FromJosh Moore
SubjectRe: [Csnd] UDO order
Is this a pitch tracker or a sequencer/tracker?

I drive Csound with Tutka on the Pi and Renoise on ARM. I much prefer trackers... I've been trying to get the Renoise guys to add native CSound instruments and fx.

On Mon, Oct 28, 2019 at 3:13 PM Rory Walsh <rorywalsh@ear.ie> wrote:
Nothing to add, but a big hello to Johann! I really enjoyed talking about the lost of tracking in Cagli ;)

On Mon, 28 Oct 2019 at 20:41, Partev Barr Sarkissian <encino_man@netscape.com> wrote:
"used before defined",... get that all the time. Have to
remember to declare items before using them.

UDO within an UDO,... would think that wouldn't be any different.


-pbs


================================


--- Victor.Lazzarini@MU.IE wrote:

From:         Victor Lazzarini <Victor.Lazzarini@MU.IE>
To:           CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] UDO order
Date:         Mon, 28 Oct 2019 19:49:05 +0000

The parser expects it to be defined when called, so if you are using a UDO within a UDO, then
that UDO needs to have been previously defined in the code.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 28 Oct 2019, at 19:45, Johann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE> wrote:
>
> Hello everybody,
>
> Working on last fix on the tracker I showed at ICSC, I'm having a bit of
> trouble with UDO's. Actually, the problem comes from order of UDO's in csd
> file. Several tests I ran today could confirm that a UDO cannot call a UDO
> that isn't declared previously in the csd file.
>
> For example - this won't work here :
> opcode one,i,i
>   iinput xin
>     output = two(iinput, iinput+1)
>   xout ioutput
> endop
>
> opcode two,i,ii
>  ione, itwo xin
>  ioutput = ione + itwo
>  xout ioutput
> endop
>
> But if the opcode "two" is declared first, it will work.
> I expected that the parser would make a first pass to collect every
> opcode/variables names at global scope before to process/compile the body of
> UDO's ?
> Is it the expected behavior ?
>
> I'm running on Linux mint 19 - Csound 6.13.
>
> Thanks.
>
> Bests.
> Johann
>
>
>
>
>
> --
> 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




_____________________________________________________________
Netscape.  Just the Net You Need.

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

Date2019-10-29 05:47
FromJosh Moore
SubjectRe: [Csnd] UDO order
I meant to say Intel, not ARM :P

On Mon, Oct 28, 2019 at 10:47 PM Josh Moore <kh405.7h30ry@gmail.com> wrote:
Is this a pitch tracker or a sequencer/tracker?

I drive Csound with Tutka on the Pi and Renoise on ARM. I much prefer trackers... I've been trying to get the Renoise guys to add native CSound instruments and fx.

On Mon, Oct 28, 2019 at 3:13 PM Rory Walsh <rorywalsh@ear.ie> wrote:
Nothing to add, but a big hello to Johann! I really enjoyed talking about the lost of tracking in Cagli ;)

On Mon, 28 Oct 2019 at 20:41, Partev Barr Sarkissian <encino_man@netscape.com> wrote:
"used before defined",... get that all the time. Have to
remember to declare items before using them.

UDO within an UDO,... would think that wouldn't be any different.


-pbs


================================


--- Victor.Lazzarini@MU.IE wrote:

From:         Victor Lazzarini <Victor.Lazzarini@MU.IE>
To:           CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] UDO order
Date:         Mon, 28 Oct 2019 19:49:05 +0000

The parser expects it to be defined when called, so if you are using a UDO within a UDO, then
that UDO needs to have been previously defined in the code.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 28 Oct 2019, at 19:45, Johann Philippe <000002c2c0737523-dmarc-request@LISTSERV.HEANET.IE> wrote:
>
> Hello everybody,
>
> Working on last fix on the tracker I showed at ICSC, I'm having a bit of
> trouble with UDO's. Actually, the problem comes from order of UDO's in csd
> file. Several tests I ran today could confirm that a UDO cannot call a UDO
> that isn't declared previously in the csd file.
>
> For example - this won't work here :
> opcode one,i,i
>   iinput xin
>     output = two(iinput, iinput+1)
>   xout ioutput
> endop
>
> opcode two,i,ii
>  ione, itwo xin
>  ioutput = ione + itwo
>  xout ioutput
> endop
>
> But if the opcode "two" is declared first, it will work.
> I expected that the parser would make a first pass to collect every
> opcode/variables names at global scope before to process/compile the body of
> UDO's ?
> Is it the expected behavior ?
>
> I'm running on Linux mint 19 - Csound 6.13.
>
> Thanks.
>
> Bests.
> Johann
>
>
>
>
>
> --
> 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




_____________________________________________________________
Netscape.  Just the Net You Need.

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