< Back to IRCAM Forum

$DUR

What a wonderful piece of software Antescofo is!

I am running Antescofo in PureData under OSX 10.9.1, and having a little trouble understanding what I am doing wrong using the reserved system variable $DUR.

$PITCH and $BEAT_POS both report correctly, but when I call the $DUR variable I get the error “Variable $DUR is undefined.” Am I calling it incorrectly if used in this syntax (sending the duration of the CHORD event to the PD object named EventDur; this is obviously a simplified example).

CHORD (4800 5100 5500 5900 6000 6300 6700 7100 ) 0.25 EventDur $DUR

My apologies for the very basic level question, I am only just getting started.

Thanks!

~Nicholas R. Nelson
~Technical Director: Ensemble Moto Perpetuo
~Brooklyn College Center for Computer Music

Dear Nicholas,

Thanks for the nice words!!!

You just pointed to a problem in our reference documentation! The internal variable depicting duration is $duration$ and not $dur. In your case, since $dur is not internally defined, it is considering it as a user-defined variable and expecting a value!

You can refer to the corrected Reference Documentation section 5.2 (using this link or from Antescofo Product Page) for more details.

Sorry about that and thanks for bringing it up.

Arshia

Amazing, thanks so much!

~NRN~