< Back to IRCAM Forum

GFWD and Macros

Tow questions related to the attached file:

 

  1. Somehow I have deleted the correct syntax for empty MACROs and FUNCTIONs. What is that syntax given that I have not implemented them in this score?

 

  1. For some reason when I hit PLAY for antescofo to follow a score my first event loads and changes occur in the Max patch without an audio signal coming in. It’s as if PLAY initialized not only score reading but the first Event as well. Should not the incoming TRILL trigger Event1?

Lodestar_II.txt (40.4 KB)

Mark,

Watching the Max Window while loading your scores will reveal the problem. MACRO and FUNCTION definitions need a name and even if you don’t have any arguments to pass, they should have paranthesis. So defining your empty function/macro as follows would work:

@FUN_DEF func()

{

}

@MACRO_DEF macro()

{

}

Note that even before the score was loading without any problem! It was just ignoring those function/macros.

When loading a score, watching the Max/Pd window can sometimes reveal useful hints/information.

Thanks for that Arshia. I am still having problems with problem #2 though. I am attaching the Max patch. It will be missing some bpatchers but you can see that there are some FLOAT object on the right hand side of the main patch. These are for observation and you can see them change once you turn AUDIO ON and hit PLAY at the bottom of the patch. I tried inserting a GWFD that zeroed out everything but it still initialized Event1.

Max Patch Below:


----------begin_max5_patcher----------

3601.3oc6c8taaajD+yNOEB5qmq69+c48Mm1bMFnMoH04.JNTTPIQqnFYRCI

5zlVzC26v8TbuF2ix8jbj6rThzVT6J4cWp.jBTGYJ5ky9am+syL6v+3YmMdR

wuksd7n+5n+wnyN6Od1YmouT8ENy76mM91zea5xz05aabd1uVL4WFeN7UkY+

Vo9xKWjmMBcQy0uaU15r7xzxEE4+7prokviPgkWfNeDIQU+OLg9WPWfF8Sl+

t76ucQ9xrR8yht8hE2W1bURyiHsb56VjOu0vSP5wkHY8L72TjWtdwumUe6XR

0W+XpU+UlqCO0xOdWFL9iGed0+uYzVLSO0qfiufPQia8LxSuU+mL9xUKRWNt

9K9ym8r5ebdDgYNiGRXVvvQGlIpSIXtBe4U3.ILbyhDpFlo73CyhSIXllTO0

oRYHgYhfDeXlcRwMC3KEGDXFiEhACmwmd3rPFVbdPTaDGifqFklWlUQW2ceI

2FZq.tZhVHWg2OZ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6tOjsZsYP0Dy3aS+EX6x5lV13pc1C+pdDGuJ6CKZte0ypGs+7Y+

ek9wAb.

-----------end_max5_patcher-----------

Oops sorry I missed that one!

The Play commend actually does a Simulation of the score and does NOT do following.

If you want to play along with your trumpet, and/or test your score with an audio simulation, you should use the start command.

There is a [suivi 0] command that turns the FOLLOWER OFF (and [suivi 1] message turns it on).

Does that help? If not, give me a step-by-step instruction to see what’s happening.

I changed the FUNCTION and MACRO commands as you suggested but now getting this in the Max window:

 

Antescofo parsing function “func” error: Syntax error. IGNORED!

You can ignore that one! Antescofo doesn’t currently like empty functions… They just get ignored. Why do you need an empty function out of curiosity?

I am still not getting START to work where it replaced PLAY. Below is the patch that I adapted from the tutorials. The action is happening inside antescofo_score but the rest is there to see signal/data flow.

 


  

  
----------begin_max5_patcher----------
  

  
1932.3oc2a0rjZiCD9L7T3x0djLqkjk+Yus6sT09FjJ0TFPvnDiEksXxjMUx
  

  
y9perMRfMHLFlYxggAIgs59q+5Vsja+ioS7mydgT468WdexaxjeLcxDUWxNl
  

  
T2dh+lrWVjmUo9Y961PJ14OSORwtMzhbBWMDntS55BVIYQNcwWM6daFewSzh
  

  
0OJFiqmQ.B.eHXlGFgd.OyCDDHaAEe5848y.aGuYJP08lUVx9lrifladIohT
  

  
vy3TVgkrrTIzr4e4CfvnFwdEqfWjsgnF6uKoY49sBYoneNo7QRQ17bh4bnlz
  

  
Uk0WWfw8ph9ep9TZitaNa8BVNqTqnAODllDfRm042.F5qVY4eeKQek9zBt+L
  

  
Oe0es+JS00.OiUvXTRrBMgIGglTNYSs01el7VVsPXpjeImksjrT9M69KXbig
  

  
89r797yoSkeLyQFCOa9I4KcQL.XjT3CiSkpRZpi7BWnA3ftoAOSJnkd+Ci80
  

  
lwmyJWRJsLiAyL9vztcJhi..Z.8JNaqBe4Yk781S8LI+MPqdXEtM68PBuJxT
  

  
X.VylBz9lJ1DJTNqCfDTP9l.8aPVN4E0r3u0KqfSDrsUrGq4bCiofAgZwzUp
  

  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JDappo3WKUE5L+MxQM81KynQWlOv5DpdNV
  

  
P8AylhZa7p3v4hlhdyXaztNtHyv2NxLBdqihiRAJVDJwLJtp4clTE5npheCQ
  

  
oBc17.dCI02bRUKMplbY17tuhIv0UL6H.wqmMx4z25HT7qW3JriRc36PYd3g
  

  
Xg0gXisCwFeggXqOTfl5wvuJ6YxxGEhlX+ZOlw4kz46358JYVJIWaISb9Rx3
  

  
BpifNEhSL48MoqyYyyxqKdl1qsixUX5dP7RKJocalSJu3RNBljHs1XcnO74J
  

  
ZQXWUbT70UKhWXAeoNJuAU2V1Owt8mUWAa0SYka79CPmvG77vWjdaH06BIoW
  

  
3qyR4LYDKXqAgKB+Ptva3hqVsTM0AqJQS34nNcV+hMmxVOmb6nZl46JHCwFW
  

  
qm01X7PrwX7qsMdUNSHlC1FeEgGvQ2mvCBML6JCPzbLeGxbXE+Ia0pKF7Po5
  

  
JBWW0oXUCHpWv6Rp+abrqE96px0ysJkt9.zdJcVA203byBQ6UhwqxYEyFg9L
  

  
4Wdzhs63W9ZX0kMqNPjtd5tv.QQinCZEccg3pF0XWKxxoyKy3CJ.VntdmifJ
  

  
e4Xz.BfEE+ZG.iyVuN+xKo5ZcGqii47hTt3CFk3R3qS9ni50oKptZPSOTpGO
  

  
mt1mO4uFfCmJVVTbraupKgcfdwQiacp2F9u56alyxM9lEnojP6mRiFCObmX0
  

  
H4w6.SZ12uup918Uj0tuNdmWGu8oirptKQwtHQwQmQhN7n0CAJyaDFneEbh.
  

  
sM2OWinVfGEsXDkHbjKRDFeGkH7MwRCqWfnN2VCKcvsvRiCcBWumVZmjnv3g
  

  
gq3jj529j8MuI3ZfSZQ58CWOXtFK9JHBpIn5G2GTuujiZBsiaAuMwsBsdZti
  

  
nOYrd205hqDhR043Z2rgYo0waFyRoivyxrtXcTahv0UFOTWbtG1T+teBpOWR
  

  
UyahNl7Va8mPmVW+.41cIRmJzAuhdRg4fWMuCds7N9UxquWGOw77yo++y4Pv
  

  
K
  

  
-----------end_max5_patcher-----------
  

  

I am using Noteability Pro to export my files and that is what it sends out. I am sure I have deleted something somewhere in the NaPro file. :stuck_out_tongue:

I haven’t tried using MACROs; just not sure how they fit in with what I am doing just yet. To be honest, I am not sure what FUNTION does as I cannot find it in the tutorials. Perhaps I am missing it somewhere.

OK… Tested…

Solution:

Just add a dummy silence event before the first note like this:

NOTE 0 3.0

This way, when you Start it’ll stay on silence (and wait for the first note).

It should behave like that normally… I’ll fix this for the next release. Sorry!

Regarding FUNCTIONS and MACROS…

You can still wait on that… since the next release (0.5) will considerably extend those two features.

However, you can use MACROs… think of them as electronic Leitmotives! See/listen to example “3-AdditiveMacros.asco.txt” in the help folder and read the text score!

Mark:

I checked the lodeStarII NAPro file that you sent last week (when there was an empty GFWD) and it seems that you have defined a few things in the GFWD Editor – probaby by mistake. If you bring up the GFWD Editor from the Tools Menu, you will see that there is a GFWD called harmv2 defined as well as a macro with no definition and a func with no function. That is why they are being added to your antescofo file. Unfortunately, even if you remove the text in these fields, NAPro remembers that there were macros and functions set. I will make a change to NAPro so it does not generate macros and functions if they are blank.

  • Keith Hamel

Thanks much to both of you for your help.