This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVpr.cs
244 lines (216 loc) · 7.13 KB
/
Vpr.cs
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
using System.Collections.Generic;
using System.Linq;
namespace UtaFormatix
{
public class Vpr
{
public VprVersion Version { get; set; }
public string Vender { get; set; }
public string Title { get; set; }
public VprMasterTrack MasterTrack { get; set; }
public List<VprVoice> Voices { get; set; }
public List<VprTrack> Tracks { get; set; }
public class VprVersion
{
public int Major { get; set; }
public int Minor { get; set; }
public int Revision { get; set; }
}
public class VprLoop
{
public bool IsEnabled { get; set; }
public int Begin { get; set; }
public int End { get; set; }
}
public class VprGlobal
{
public bool IsEnabled { get; set; }
public int Value { get; set; }
}
public class VprTempoEvent
{
public int Pos { get; set; }
public int Value { get; set; }
}
public class VprTempo
{
public bool IsFolded { get; set; }
public double Height { get; set; }
public VprGlobal Global { get; set; }
public List<VprTempoEvent> Events { get; set; }
}
public class VprTimeSigEvent
{
public int Bar { get; set; }
public int Numer { get; set; }
public int Denom { get; set; }
}
public class VprTimeSig
{
public bool IsFolded { get; set; }
public List<VprTimeSigEvent> Events { get; set; }
}
public class VprVolumeEvent
{
public int Pos { get; set; }
public int Value { get; set; }
}
public class VprMasterTrackVolume
{
public bool IsFolded { get; set; }
public double Height { get; set; }
public List<VprVolumeEvent> Events { get; set; }
}
public class VprMasterTrack
{
public int SamplingRate { get; set; }
public VprLoop Loop { get; set; }
public VprTempo Tempo { get; set; }
public VprTimeSig TimeSig { get; set; }
public VprMasterTrackVolume Volume { get; set; }
}
public class VprVoice
{
public string CompID { get; set; }
public string Name { get; set; }
}
public class VprTrackVolumeEvent
{
public int Pos { get; set; }
public int Value { get; set; }
}
public class VprTrackVolume
{
public bool IsFolded { get; set; }
public double Height { get; set; }
public List<VprTrackVolumeEvent> Events { get; set; }
}
public class VprPanpotEvent
{
public int Pos { get; set; }
public int Value { get; set; }
}
public class VprPanpot
{
public bool IsFolded { get; set; }
public double Height { get; set; }
public List<VprPanpotEvent> Events { get; set; }
}
public class VprPartVoice
{
public string CompID { get; set; }
public int LangID { get; set; }
}
public class VprParameter
{
public string Name { get; set; }
public object Value { get; set; }
}
public class VprMidiEffect
{
public string Id { get; set; }
public bool IsBypassed { get; set; }
public bool IsFolded { get; set; }
public List<VprParameter> Parameters { get; set; }
}
public class VprExp
{
public int Opening { get; set; }
}
public class VprWeight
{
public int Pre { get; set; }
public int Post { get; set; }
}
public class VprSingingSkill
{
public int Duration { get; set; }
public VprWeight Weight { get; set; }
}
public class VprVibrato
{
public int Type { get; set; }
public int Duration { get; set; }
}
public class VprNote
{
public string Lyric { get; set; }
public string Phoneme { get; set; }
public bool IsProtected { get; set; }
public int Pos { get; set; }
public int Duration { get; set; }
public int Number { get; set; }
public int Velocity { get; set; }
public VprExp Exp { get; set; }
public VprSingingSkill SingingSkill { get; set; }
public VprVibrato Vibrato { get; set; }
public VprNote CloneBlank()
{
return new VprNote
{
Lyric = Lyric,
Phoneme = Phoneme,
IsProtected = IsProtected,
Pos = Pos,
Duration = Duration,
Number = Number,
Velocity = Velocity,
Exp = Exp,
SingingSkill = SingingSkill,
Vibrato = Vibrato
};
}
}
public class VprPart
{
public int Pos { get; set; }
public int Duration { get; set; }
public string StyleName { get; set; }
public VprPartVoice Voice { get; set; }
public List<VprMidiEffect> MidiEffects { get; set; }
public List<VprNote> Notes { get; set; }
}
public class VprTrack
{
public int Type { get; set; }
public string Name { get; set; }
public int Color { get; set; }
public int BusNo { get; set; }
public bool IsFolded { get; set; }
public double Height { get; set; }
public VprTrackVolume Volume { get; set; }
public VprPanpot Panpot { get; set; }
public bool IsMuted { get; set; }
public bool IsSoloMode { get; set; }
public List<VprPart> Parts { get; set; }
public VprTrack CloneBlank()
{
return new VprTrack
{
Type = Type,
Name = Name,
Color = Color,
BusNo = BusNo,
IsFolded = IsFolded,
Height = Height,
Volume = Volume,
Panpot = Panpot,
IsMuted = IsMuted,
IsSoloMode = IsSoloMode,
Parts = new List<VprPart>
{
new VprPart()
{
Pos = Parts.First().Pos,
Duration = Parts.First().Duration,
StyleName = Parts.First().StyleName,
Voice = Parts.First().Voice,
MidiEffects = Parts.First().MidiEffects,
Notes = new List<VprNote>()
}
}
};
}
}
}
}