mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
feat(tracker): go generate parses gm.dls and show slightly more sane gui for them
This commit is contained in:
22
tracker/gmdlsentry.go
Normal file
22
tracker/gmdlsentry.go
Normal 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
|
Reference in New Issue
Block a user