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 ¶
View Source
var ErrExpectedSpliceMagic = errors.New("drum: expected SPLICE magic file prefix")
ErrExpectedSpliceMagic is returned when file data is corrupt (i.e. if the magic SPLICE prefix is missing).
Functions ¶
This section is empty.
Types ¶
type Pattern ¶
Pattern is the high level representation of the drum pattern contained in a .splice file.
It has a tempo (BPM) and a series of tracks that each utilize their own instrument.
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.
If any error occurs, it is returned along with a nil *Pattern.
Click to show internal directories.
Click to hide internal directories.