mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
Trying to force a specific song length other than the default never quite worked, so we'll only support the default MAX_SAMPLES & will calculate it for the user in the user in the exported .h header file.
29 lines
1.2 KiB
Go
29 lines
1.2 KiB
Go
package tracker
|
|
|
|
import "github.com/vsariola/sointu/go4k"
|
|
|
|
var defaultSong = go4k.Song{
|
|
BPM: 100,
|
|
Patterns: [][]byte{
|
|
{64, 0, 68, 0, 32, 0, 0, 0, 75, 0, 78, 0, 0, 0, 0, 0},
|
|
{0, 0, 64, 0, 68, 0, 32, 0, 0, 0, 75, 0, 78, 0, 0, 0},
|
|
},
|
|
Tracks: []go4k.Track{
|
|
{NumVoices: 1, Sequence: []byte{0}},
|
|
{NumVoices: 1, Sequence: []byte{1}},
|
|
},
|
|
Patch: go4k.Patch{
|
|
Instruments: []go4k.Instrument{{NumVoices: 2, Units: []go4k.Unit{
|
|
{"envelope", map[string]int{"stereo": 0, "attack": 32, "decay": 32, "sustain": 64, "release": 64, "gain": 128}},
|
|
{"oscillator", map[string]int{"stereo": 0, "transpose": 64, "detune": 64, "phase": 0, "color": 96, "shape": 64, "gain": 128, "type": go4k.Sine}},
|
|
{"mulp", map[string]int{"stereo": 0}},
|
|
{"envelope", map[string]int{"stereo": 0, "attack": 32, "decay": 32, "sustain": 64, "release": 64, "gain": 128}},
|
|
{"oscillator", map[string]int{"stereo": 0, "transpose": 72, "detune": 64, "phase": 64, "color": 64, "shape": 96, "gain": 128, "type": go4k.Sine}},
|
|
{"mulp", map[string]int{"stereo": 0}},
|
|
{"out", map[string]int{"stereo": 1, "gain": 128}},
|
|
}}},
|
|
DelayTimes: []int{},
|
|
SampleOffsets: []go4k.SampleOffset{},
|
|
},
|
|
}
|