feat(tracker): go generate parses gm.dls and show slightly more sane gui for them

This commit is contained in:
vsariola
2021-02-14 19:53:59 +02:00
parent 4da225ec33
commit cece2d77d4
6 changed files with 724 additions and 70 deletions

22
tracker/gmdlsentry.go Normal file
View File

@ -0,0 +1,22 @@
package tracker
import "github.com/vsariola/sointu/compiler"
type GmDlsEntry struct {
Start int
LoopStart int
LoopLength int
SuggestedTranspose int
Name string
}
var gmDlsEntryMap = make(map[compiler.SampleOffset]int)
func init() {
for i, e := range gmDlsEntries {
key := compiler.SampleOffset{Start: uint32(e.Start), LoopStart: uint16(e.LoopStart), LoopLength: uint16(e.LoopLength)}
gmDlsEntryMap[key] = i
}
}
//go:generate go run ../cmd/sointu-generate/main.go