< Back to IRCAM Forum

Antescofo macro bug ?

(with latest Antescofo, 0.42-1)

Inside my score :

@MACRO_DEF TEST( PRINT1, DURATION, PRINT2 ){

ANTESCOFO_INFO PRINT1

DURATION ANTESCOFO_INFO PRINT2

}

NOTE C3 1. test

@TEST ( test1, 1s, test2 )

@TEST ( test3, 2s, test4 )

 

(Receive object [r ANTESCOFO_INFO] directly connected to a [print] object)

Result is :

ANTESCOFO_INFO: test1

ANTESCOFO_INFO: test3

But the result I expect is :

ANTESCOFO_INFO: test1

1s later :

ANTESCOFO_INFO: test2

ANTESCOFO_INFO: test3

2s later

ANTESCOFO_INFO: test4

 

With this following score :

@MACRO_DEF TEST( PRINT1, DURATION, PRINT2 ){

ANTESCOFO_INFO PRINT1

DURATION ANTESCOFO_INFO PRINT1

ANTESCOFO_INFO PRINT2

}

NOTE C3 1. test

@TEST ( test1, 1s, test2 )

@TEST ( test3, 2s, test4 )

 

Result is good :

ANTESCOFO_INFO: test1

1s later :

ANTESCOFO_INFO: test1

ANTESCOFO_INFO: test2

ANTESCOFO_INFO: test3

2s later

ANTESCOFO_INFO: test3

ANTESCOFO_INFO: test4

_TG

Thomas,

I just checked! There’s a bug… add an extra NEWLINE after the second line of you Macro and it should work! Your Macro will become like this:

@MACRO_DEF TEST( PRINT1, DURATION, PRINT2 )

{

ANTESCOFO_INFO PRINT1

DURATION ANTESCOFO_INFO PRINT2

; this is a commented extra new line!

}

Alternatively: Declare the messages inside the Macro in a GFWD:

@MACRO_DEF TEST( PRINT1, DURATION, PRINT2 ){

GFWD toto {

ANTESCOFO_INFO PRINT1

DURATION ANTESCOFO_INFO PRINT2

}

}

You can additionally add a variable for the group delay (which appears after ‘GFWD’).

First solution is perfect !