-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructs.go
More file actions
109 lines (96 loc) · 1.8 KB
/
structs.go
File metadata and controls
109 lines (96 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
package main
type header struct {
Magic uint32
Length uint32
_ uint16
Channels uint16
PPQ uint16
}
type Project struct {
title string
tempo uint32
version string
style string
author string
comments string
URL string
}
type Channel struct {
id uint16
name string
sample string
ctype uint8
fileName string
plugin Plugin
}
type Insert struct {
name string
slots [10]Slot
}
type Slot struct {
id uint16
name string
plugin Plugin
}
type Plugin struct {
pluginType string
name string
filename string
vendor string
}
var channelType = map[uint8]string{
0: "Sample",
4: "Sample",
5: "Automation",
2: "VST",
}
var VSTType = map[uint8]string{
8: "VST External (8)",
9: "VST External (9)",
3: "VST Internal",
}
const (
PluginMidi = 1
PluginFlags = 2
PluginIo = 30
PluginInputInfo = 31
PluginOutputInfo = 32
PluginPluginInfo = 50
PluginVstPlugin = 51
PluginGuid = 52
PluginState = 53
PluginName = 54
PluginFilename = 55
PluginVendorName = 56
)
const (
ByteChanType = 21
Undef = 192
Text = 192
TextChanName = 192
TextPatName = 193
TextTitle = 194
TextComment = 195
TextSampleFileName = 196
TextURL = 197
TextCommentRtf = 198
TextVersion = 199
GeneratorName = 201
TextComments = 202
TextPluginName = 203
TextInsertName = 204
TextMidiCtrls = 208
TextDelay = 209
TextStyle = 206
TextAuthor = 207
DWordFineTempo = 156
Word = 64
WordNewChan = 64
WordCurrentSlotNum = 98
Int = 128
Data = 210
DataPatternNotes = 224
DataNewPlugin = 212
DataPluginParams = 213
DataInsertRoutes = 235
)