Name
WaitPatternPosition -- halt program until module reaches pattern position
Synopsis
WaitPatternPosition(pos)
Function
This function halts the program flow until the currently playing module reaches the specified pattern position pos. You have to call PlayModule() before using this command. This is useful for timing your applications with the music.

Inputs
pos
pattern position to wait for
Example
PlayModule(1)
WaitPatternPosition(63)
The above code starts playing module number 1 and waits then for reaching the end of the first pattern.

Show TOC