Documentation ¶
Overview ¶
Package drum is supposed to implement the decoding of .splice drum machine files. See golang-challenge.com/go-challenge1/ for more information
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pattern ¶
Pattern is the high level representation of the drum pattern contained in a .splice file.
func Decode ¶
Decode reads a drum machine file from r and returns a pointer to a parsed pattern which is the entry point to the rest of the data.
func DecodeFile ¶
DecodeFile decodes the drum machine file found at the provided path and returns a pointer to a parsed pattern which is the entry point to the rest of the data.
type Track ¶
type Track struct { Header TrackHeader Name string Steps [16]bool }
A Track represents a sound.
type TrackHeader ¶
type TrackHeader struct { ID uint32 // ID of the track. NameLen uint8 // Length (in bytes) of the track name. }
A TrackHeader represents the header of a Track.
Click to show internal directories.
Click to hide internal directories.