mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
23 lines
523 B
Go
23 lines
523 B
Go
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
|