Richard: If you are trying to find when a melody is done by using ON TIMER, then you're heading down a complicated road. I suggest that you become familiar with the Apple's Sound Manager. In there, it provides a way for a program to know when a melody is done and much, much more. It's a bit of a steep learning curve, but well worth it if you're doing sound stuff. Besides, using the ON TIMER thing is not only difficult to use for things like that, but can never be turned off. tedd --- >I've been experimenting with Timer event handling as a means to signal the >user when a melody has finished playing and it seems to be working OK. >However, when I try use certain ON TIMER statements, I get error messages. > >ON TIMER END gives me the following errors: > >Error: Missing a begin '(' Fix it... >in file Sebastian:HOMMEL SOUND TUTOR.INCL at line 31 in STOPTHEMUSIC >*on timer *end > >and > >Error: Variable 'END' has not been DIM'ed. >in file Sebastian:HOMMEL SOUND TUTOR.INCL at line 31 in STOPTHEMUSIC >*on timer end* > >and > >Error: Expected an end ')' here... >Example: Too many parameters, or mismatched (). >in file Sebastian:HOMMEL SOUND TUTOR.INCL at line 31 in STOPTHEMUSIC >*on timer end* > >I get a corresponding set of errors if I try to use ON TIMER OFF instead of >ON TIMER END > >TIMER(0) OFF gives similar errors > >TIMER OFF gives one error: > >Error: Variable 'OFF' has not been DIM'ed. >in file Sebastian:HOMMEL SOUND TUTOR.INCL at line 32 in STOPTHEMUSIC >*Timer off* > >TIMER (0) is OK, however; it doesn't result in any errors. I trust that it >will flush the timer event queue as advertised. > >Is the Reference Manual incorrect about the syntax of these various >statements or is there some arcane aspect of their usage that I'm missing? > >(I am running FB^3, release 6 on a G-3 with System 8.6) > >TIA > >Richard > > > >-- >To unsubscribe, send ANY message to <futurebasic-unsubscribe@...> -- http://sperling.com