Documentation
¶
Overview ¶
Package mod loads four-channel M.K. modules and replays their PCM samples.
Index ¶
Constants ¶
const Profile = "four-channel M.K. MOD (PAL CIA)"
Profile is the name of the supported playback profile.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelState ¶
type ChannelState struct {
Sample uint8
Period, Volume int
Offset, Length int64
LoopStart, LoopLength int64
}
ChannelState is a read-only snapshot of a MOD replay's sample selection and effect registers. Sample is the selected one-based slot. The sample may differ from the currently sounding voice when a cell selects a slot without triggering a note.
type Module ¶
type Module struct {
Title string
SongLength uint8
Restart uint8
Orders [128]uint8
Patterns []Pattern
Samples [slots]Sample
}
Module contains the song header, patterns and one-based sample slots.
type Replay ¶
Replay implements the M.K. PAL CIA PCM profile.
func (*Replay[T]) ChannelStates ¶
func (r *Replay[T]) ChannelStates() [channels]ChannelState
ChannelStates reports the native registers after the most recent tick.
func (*Replay[T]) ClockState ¶
ClockState reports the speed and BPM currently in effect. The scheduled CIA interval changes at the tick following an Fxx tempo command.