Csound Csound-dev Csound-tekno Search About

#define behavior change

Date2016-12-30 21:45
FromAllessandro Valencia
Subject#define behavior change
I was wondering if the behavior of #define has changed in the .sco  Are we not allowed to call a defined function from within another function?  after I got 6.08 my file does not work.  in attempting...

#define SONG0001_P1
#
$BEATS____01_SEQ01(1')
$SYNTH_SINE__0001(1')
#
 
#define SONG0001_P2
#
$BEATS____01_SEQ01(2')
$SYNTH_SINE__0002(2')
#
 
 
 
 
#define SONG0001
#
$BPM(138')
 
i30000    $SDUR        $TDUR    0
 
  
$SONG0001_P1
$SONG0001_P2
 #
 
  
 
$SONG0001

In that example i'm told that $BEATS... is not defined when it is.  If I uncomment to check, then the next line is declared undefined.  Basically any calls to a defined function WITHIN another function declares the called function undefined.  Is this a new change?
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-12-30 22:06
FromJohn ff
SubjectRe: #define behavior change
The macro system was rewritten for the last release to fix a number of bugs.  Will check your example soon

Sent from TypeApp
On 30 Dec 2016, at 21:56, Allessandro Valencia <artisan.audio.research@GMAIL.COM target=_blank>artisan.audio.research@GMAIL.COM> wrote:
I was wondering if the behavior of #define has changed in the .sco  Are we not allowed to call a defined function from within another function?  after I got 6.08 my file does not work.  in attempting...

#define SONG0001_P1
#
$BEATS____01_SEQ01(1')
$SYNTH_SINE__0001(1')
#
 
#define SONG0001_P2
#
$BEATS____01_SEQ01(2')
$SYNTH_SINE__0002(2')
#
 
 
 
 
#define SONG0001
#
$BPM(138')
 
i30000    $SDUR        $TDUR    0
 
  
$SONG0001_P1
$SONG0001_P2
 #
 
  
 
$SONG0001

In that example i'm told that $BEATS... is not defined when it is.  If I uncomment to check, then the next line is declared undefined.  Basically any calls to a defined function WITHIN another function declares the called function undefined.  Is this a new change?
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-12-31 18:15
FromAllessandro Valencia
SubjectRe: #define behavior change
I tried out some things this morning, and it seems that the score (what i tested) wont recognize a #define's name if it has more than one underscore (side by side).

On Fri, Dec 30, 2016 at 5:06 PM, John ff <jpff@codemist.co.uk> wrote:
The macro system was rewritten for the last release to fix a number of bugs.  Will check your example soon

Sent from TypeApp
On 30 Dec 2016, at 21:56, Allessandro Valencia <artisan.audio.research@GMAIL.COM target=_blank>artisan.audio.research@GMAIL.COM> wrote:
I was wondering if the behavior of #define has changed in the .sco  Are we not allowed to call a defined function from within another function?  after I got 6.08 my file does not work.  in attempting...

#define SONG0001_P1
#
$BEATS____01_SEQ01(1')
$SYNTH_SINE__0001(1')
#
 
#define SONG0001_P2
#
$BEATS____01_SEQ01(2')
$SYNTH_SINE__0002(2')
#
 
 
 
 
#define SONG0001
#
$BPM(138')
 
i30000    $SDUR        $TDUR    0
 
  
$SONG0001_P1
$SONG0001_P2
 #
 
  
 
$SONG0001

In that example i'm told that $BEATS... is not defined when it is.  If I uncomment to check, then the next line is declared undefined.  Basically any calls to a defined function WITHIN another function declares the called function undefined.  Is this a new change?
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-12-31 18:23
Fromjpff
SubjectRe: #define behavior change
Yes; double _ is used to associate arg names to macro names.  I naively 
toug no one would se __ in a name.


On Sat, 31 Dec 2016, Allessandro Valencia wrote:

> I tried out some things this morning, and it seems that the score (what i
> tested) wont recognize a #define's name if it has more than one underscore
> (side by side).
> 
> On Fri, Dec 30, 2016 at 5:06 PM, John ff  wrote:
>       The macro system was rewritten for the last release to fix a
>       number of bugs.  Will check your example soon
> 
> Sent from TypeApp
> On 30 Dec 2016, at 21:56, Allessandro Valencia
>  target=_blank>artisan.audio.research@GMAIL.COM> wrote:
>       I was wondering if the behavior of #define has changed in
>       the .sco  Are we not allowed to call a defined function from
>       within another function?  after I got 6.08 my file does not
>       work.  in attempting...
>
>       #define SONG0001_P1
>       #
>       $BEATS____01_SEQ01(1')
>       $SYNTH_SINE__0001(1')
>       #
>        
>       #define SONG0001_P2
>       #
>       $BEATS____01_SEQ01(2')
>       $SYNTH_SINE__0002(2')
>       #
>        
>        
>        
>        
>       #define SONG0001
>       #
>       $BPM(138')
>        
>       i30000    $SDUR        $TDUR    0
>        
>         
>       $SONG0001_P1
>       $SONG0001_P2
>        #
>        
>         
>        
>       $SONG0001
> 
> In that example i'm told that $BEATS... is not defined when it
> is.  If I uncomment to check, then the next line is declared
> undefined.  Basically any calls to a defined function WITHIN
> another function declares the called function undefined.  Is this
> a new change?
> 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-12-31 19:08
FromAllessandro Valencia
SubjectRe: #define behavior change
How extensive was the score handling change though?  I'm confused that no one else is having problems.  I changed all names but now I have no processing of my notes (no sound).  Has zak been modified?   Like what should I look out for?  Is there any documentation?

On Sat, Dec 31, 2016 at 1:23 PM, jpff <jpff@codemist.co.uk> wrote:
Yes; double _ is used to associate arg names to macro names.  I naively toug no one would se __ in a name.



On Sat, 31 Dec 2016, Allessandro Valencia wrote:

I tried out some things this morning, and it seems that the score (what i
tested) wont recognize a #define's name if it has more than one underscore
(side by side).

On Fri, Dec 30, 2016 at 5:06 PM, John ff <jpff@codemist.co.uk> wrote:
      The macro system was rewritten for the last release to fix a
      number of bugs.  Will check your example soon

Sent from TypeApp
On 30 Dec 2016, at 21:56, Allessandro Valencia
<artisan.audio.research@GMAIL.COM
target=_blank>artisan.audio.research@GMAIL.COM> wrote:
      I was wondering if the behavior of #define has changed in
      the .sco  Are we not allowed to call a defined function from
      within another function?  after I got 6.08 my file does not
      work.  in attempting...

      #define SONG0001_P1
      #
      $BEATS____01_SEQ01(1')
      $SYNTH_SINE__0001(1')
      #
       
      #define SONG0001_P2
      #
      $BEATS____01_SEQ01(2')
      $SYNTH_SINE__0002(2')
      #
       
       
       
       
      #define SONG0001
      #
      $BPM(138')
       
      i30000    $SDUR        $TDUR    0
       
        
      $SONG0001_P1
      $SONG0001_P2
       #
       
        
       
      $SONG0001

In that example i'm told that $BEATS... is not defined when it
is.  If I uncomment to check, then the next line is declared
undefined.  Basically any calls to a defined function WITHIN
another function declares the called function undefined.  Is this
a new change?
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-12-31 20:22
FromJohn ff
SubjectRe: #define behavior change
Total rewrite to match orchestra macros.  Fixes many bugs.

No change to Zak as far as I know

Sent from TypeApp
On 31 Dec 2016, at 19:09, Allessandro Valencia <artisan.audio.research@GMAIL.COM target=_blank>artisan.audio.research@GMAIL.COM> wrote:
How extensive was the score handling change though?  I'm confused that no one else is having problems.  I changed all names but now I have no processing of my notes (no sound).  Has zak been modified?   Like what should I look out for?  Is there any documentation?

On Sat, Dec 31, 2016 at 1:23 PM, jpff <jpff@codemist.co.uk> wrote:
Yes; double _ is used to associate arg names to macro names.  I naively toug no one would se __ in a name.



On Sat, 31 Dec 2016, Allessandro Valencia wrote:

I tried out some things this morning, and it seems that the score (what i
tested) wont recognize a #define's name if it has more than one underscore
(side by side).

On Fri, Dec 30, 2016 at 5:06 PM, John ff <jpff@codemist.co.uk> wrote:
      The macro system was rewritten for the last release to fix a
      number of bugs.  Will check your example soon

Sent from TypeApp
On 30 Dec 2016, at 21:56, Allessandro Valencia
<artisan.audio.research@GMAIL.COM
target=_blank>artisan.audio.research@GMAIL.COM> wrote:
      I was wondering if the behavior of #define has changed in
      the .sco  Are we not allowed to call a defined function from
      within another function?  after I got 6.08 my file does not
      work.  in attempting...

      #define SONG0001_P1
      #
      $BEATS____01_SEQ01(1')
      $SYNTH_SINE__0001(1')
      #
       
      #define SONG0001_P2
      #
      $BEATS____01_SEQ01(2')
      $SYNTH_SINE__0002(2')
      #
       
       
       
       
      #define SONG0001
      #
      $BPM(138')
       
      i30000    $SDUR        $TDUR    0
       
        
      $SONG0001_P1
      $SONG0001_P2
       #
       
        
       
      $SONG0001

In that example i'm told that $BEATS... is not defined when it
is.  If I uncomment to check, then the next line is declared
undefined.  Basically any calls to a defined function WITHIN
another function declares the called function undefined.  Is this
a new change?
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-12-31 21:17
FromVictor Lazzarini
SubjectRe: #define behavior change
zak is not in the score.

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

On 31 Dec 2016, at 19:08, Allessandro Valencia <artisan.audio.research@GMAIL.COM> wrote:

How extensive was the score handling change though?  I'm confused that no one else is having problems.  I changed all names but now I have no processing of my notes (no sound).  Has zak been modified?   Like what should I look out for?  Is there any documentation?

On Sat, Dec 31, 2016 at 1:23 PM, jpff <jpff@codemist.co.uk> wrote:
Yes; double _ is used to associate arg names to macro names.  I naively toug no one would se __ in a name.



On Sat, 31 Dec 2016, Allessandro Valencia wrote:

I tried out some things this morning, and it seems that the score (what i
tested) wont recognize a #define's name if it has more than one underscore
(side by side).

On Fri, Dec 30, 2016 at 5:06 PM, John ff <jpff@codemist.co.uk> wrote:
      The macro system was rewritten for the last release to fix a
      number of bugs.  Will check your example soon

Sent from TypeApp
On 30 Dec 2016, at 21:56, Allessandro Valencia
<artisan.audio.research@GMAIL.COM
target=_blank>artisan.audio.research@GMAIL.COM> wrote:
      I was wondering if the behavior of #define has changed in
      the .sco  Are we not allowed to call a defined function from
      within another function?  after I got 6.08 my file does not
      work.  in attempting...

      #define SONG0001_P1
      #
      $BEATS____01_SEQ01(1')
      $SYNTH_SINE__0001(1')
      #
       
      #define SONG0001_P2
      #
      $BEATS____01_SEQ01(2')
      $SYNTH_SINE__0002(2')
      #
       
       
       
       
      #define SONG0001
      #
      $BPM(138')
       
      i30000    $SDUR        $TDUR    0
       
        
      $SONG0001_P1
      $SONG0001_P2
       #
       
        
       
      $SONG0001

In that example i'm told that $BEATS... is not defined when it
is.  If I uncomment to check, then the next line is declared
undefined.  Basically any calls to a defined function WITHIN
another function declares the called function undefined.  Is this
a new change?
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