Skip to content

trackerlib

A module is a Blitz object, numbered from 0: a Sound- or NoiseTracker module with 31 samples (the “M.K.” format), loaded into chip memory with LoadModule. PlayModule starts it, and from then on the music plays by itself, a step every frame from the vertical blank interrupt, while the program goes on. StopModule stops it; the music also stops when the program ends or the module is freed.

LoadModule 0,"mod.tune"
PlayModule 0
MouseWait
StopModule

The player is the classic NoiseTracker replay routine. After the last song position, also after a pattern break or position jump in it, the song starts again at the module’s restart position.

Library number 96. It manages Module objects, by default at most 5 (the compiler options set the maximum).

Commands

LoadModule

Loads a Sound- or NoiseTracker module from disk into chip memory, to be played with PlayModule; a module the object held before is freed. Amiga mode only. A file that is missing, is a drawer or cannot be opened is the error “Error Accessing Module File”; the memory and the lock the command took are freed before it.

Statement. Help text: Module#,Filename$
Arguments: .w, $

Module

The object of a loaded module. Free Module frees it, and stops it first if it is playing.

Object name. Help text: A Sound or Noise tracker module

PlayModule

Starts the module from its beginning and plays it from the vertical blank interrupt until StopModule. It switches the audio filter off.

Statement. Help text: Module#
Arguments: .w

StopModule

Stops the module that is playing and silences all channels.

Statement. No help text.
No arguments.