Documentation
¶
Overview ¶
Package s3m loads and replays Scream Tracker 3 modules.
Index ¶
Constants ¶
const Profile = "S3M PCM and melodic AdLib"
Profile is the name of the supported playback profile.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cell ¶
type Cell struct {
HasNote, HasVolume, HasEffect bool
Note, Instrument, Volume, Command, Param uint8
}
Cell retains the fields present in an S3M pattern event.
type Module ¶
type Module struct {
Title string
Flags, Version, SampleFormat int
GlobalVolume, Speed, BPM, MasterVolume uint8
ChannelSettings, Pan [channels]uint8
HasPan bool
Orders []uint8
PlayableOrders []int
Patterns []Pattern
Samples []Sample
// contains filtered or unexported fields
}
Module contains native orders, channel settings, timing and PCM.
type Replay ¶
Replay implements the S3M PCM profile.
func NewReplayWithClock ¶
func NewReplayWithClock[T audio.Sample](m *Module, clock Clock) (*Replay[T], tracker.ReplayConfig[T], error)
NewReplayWithClock builds an S3M replay with the selected timing and mixer.
type Sample ¶
type Sample struct {
Name, Filename string
Type, Volume, Packing, Flags uint8
Length, LoopStart, LoopEnd, C2Speed, DataOffset int64
PCM audio.Buffer[float64]
AdLib [12]uint8
}
Sample retains the instrument header and decoded PCM planes or AdLib patch. Lengths and loop points are in source frames.