Documentation ¶
Overview ¶
Package drum decodes .splice drum machine files.
Index ¶
Constants ¶
View Source
const ( Rest = 0 Beat = 1 )
Rest and Beat are possible values for steps of a track.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pattern ¶
type Pattern struct { HWVersion string // readable string Tempo float32 // beats per minute Tracks []Track // variable number of tracks }
Pattern represents a drum pattern of a .splice file.
func DecodeFile ¶
DecodeFile decodes the drum machine file found at the given path and returns a parsed pattern.
Valid tracks following a valid header are returned without error.
An error is returned if the file header cannot be read or decoded.
If invalid track or non-track data is encountered decoding terminates and the pattern read so far is returned without error.
Click to show internal directories.
Click to hide internal directories.