Documentation
¶
Overview ¶
Package stm loads Scream Tracker 2 embedded-sample modules.
Index ¶
Constants ¶
const Profile = "STM mono"
Profile identifies the native four-channel STM replay and mono mixer.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cell ¶
type Cell struct {
Note, Instrument, Volume, Command, Param uint8
}
Cell is one decoded STM note, volume and effect. Note 254 cuts the current voice. Note 255 and volume 65 stand for omitted fields.
type Driver ¶
type Driver uint8
Driver selects a Scream Tracker 2 playback revision. Later trackers share the 2.21 on-disk marker, so the caller chooses their playback behavior.
type Module ¶
type Module struct {
Title, Tracker string
Version int
Tempo, GlobalVolume uint8
Orders []uint8
Patterns []Pattern
Samples [instruments]Sample
}
Module holds an STM score and its embedded instruments. Tempo stores the speed and tempo adjustment as a byte with two nibbles.
type Pattern ¶
type Pattern [rows][channels]Cell
Pattern contains one STM pattern in playback order.
type Replay ¶
Replay applies native STM row and tick rules over a single mono PCM mixer.
func NewReplayWithDriver ¶
func NewReplayWithDriver[T audio.Sample](m *Module, driver Driver) (*Replay[T], tracker.ReplayConfig[T], error)
NewReplayWithDriver builds a replay for the specified Scream Tracker 2 driver.