MIDITest.dfm
7.15 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
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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
object MainForm: TMainForm
Left = 215
Top = 210
BorderStyle = bsDialog
Caption = 'kMIDIPlayer'
ClientHeight = 576
ClientWidth = 434
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
Position = poDesigned
OnClose = FormClose
OnCreate = FormCreate
OnDestroy = FormDestroy
OnShow = FormShow
PixelsPerInch = 96
TextHeight = 16
object Label1: TLabel
Left = 28
Top = 155
Width = 38
Height = 16
Alignment = taRightJustify
Caption = 'Tracks'
end
object Label2: TLabel
Left = 25
Top = 57
Width = 41
Height = 16
Alignment = taRightJustify
Caption = 'Format'
end
object Label4: TLabel
Left = 14
Top = 25
Width = 20
Height = 16
Alignment = taRightJustify
Caption = 'File'
end
object Label7: TLabel
Left = 12
Top = 90
Width = 54
Height = 16
Alignment = taRightJustify
Caption = 'Copyright'
end
object Label9: TLabel
Left = 28
Top = 122
Width = 38
Height = 16
Alignment = taRightJustify
Caption = 'Length'
end
object Label3: TLabel
Left = 376
Top = 401
Width = 41
Height = 14
Caption = 'Volume'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object Label6: TLabel
Left = 132
Top = 159
Width = 207
Height = 16
Caption = '(Unchecked tracks won'#39't be played.)'
end
object lbl_Synth: TLabel
Left = 20
Top = 402
Width = 62
Height = 14
Alignment = taRightJustify
Caption = 'Synthesizer'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Tahoma'
Font.Style = []
ParentFont = False
end
object Label5: TLabel
Left = 19
Top = 536
Width = 276
Height = 16
Caption = 'Demo program to test TMIDIPlayer2 and revised'
end
object Label8: TLabel
Left = 25
Top = 553
Width = 156
Height = 16
Caption = 'version of MidiSheetMusic. '
end
object btnOpen: TButton
Left = 362
Top = 21
Width = 60
Height = 25
Caption = 'Open'
TabOrder = 0
OnClick = btnOpenClick
end
object btnClose: TButton
Left = 342
Top = 540
Width = 75
Height = 25
Caption = 'Close'
TabOrder = 1
OnClick = btnCloseClick
end
object edTracks: TEdit
Left = 72
Top = 152
Width = 53
Height = 24
ImeName = 'Microsoft Office IME 2007'
ReadOnly = True
TabOrder = 2
end
object edFormat: TEdit
Left = 72
Top = 54
Width = 341
Height = 24
ImeName = 'Microsoft Office IME 2007'
ReadOnly = True
TabOrder = 3
end
object edLength: TEdit
Left = 72
Top = 119
Width = 341
Height = 24
ImeName = 'Microsoft Office IME 2007'
ReadOnly = True
TabOrder = 4
end
object edFile: TEdit
Left = 39
Top = 22
Width = 317
Height = 24
ImeName = 'Microsoft Office IME 2007'
ReadOnly = True
TabOrder = 5
end
object edCopyright: TEdit
Left = 72
Top = 87
Width = 341
Height = 24
ImeName = 'Microsoft Office IME 2007'
ReadOnly = True
TabOrder = 6
end
object btnPlay: TButton
Left = 28
Top = 464
Width = 60
Height = 25
Caption = 'Play'
TabOrder = 7
OnClick = btnPlayClick
end
object cbSynthesizer: TComboBox
Left = 87
Top = 398
Width = 212
Height = 24
Style = csDropDownList
ImeName = 'Microsoft Office IME 2007'
TabOrder = 8
OnChange = cbSynthesizerChange
end
object btnStop: TButton
Left = 180
Top = 464
Width = 60
Height = 25
Caption = 'Stop'
TabOrder = 9
OnClick = btnStopClick
end
object PositionBar: TProgressBar
Left = 22
Top = 433
Width = 340
Height = 17
Cursor = crHandPoint
Align = alCustom
Smooth = True
TabOrder = 10
OnMouseDown = PositionBarMouseDown
end
object btnPause: TButton
Left = 104
Top = 464
Width = 60
Height = 25
Caption = 'Pause'
TabOrder = 11
OnClick = btnPauseClick
end
object edTime: TEdit
Left = 368
Top = 430
Width = 42
Height = 24
ImeName = 'Microsoft Office IME 2007'
ReadOnly = True
TabOrder = 12
end
object tbVolume: TTrackBar
Left = 307
Top = 399
Width = 65
Height = 29
Max = 21
Position = 16
TabOrder = 13
TickStyle = tsNone
OnChange = tbVolumeChange
end
object PageControl1: TPageControl
Left = 18
Top = 183
Width = 395
Height = 206
ActivePage = TrackSheet
TabOrder = 14
object TrackSheet: TTabSheet
Caption = 'Track Info'
object TrackList: TCheckListBox
Left = 5
Top = 7
Width = 376
Height = 164
OnClickCheck = TrackListClickCheck
ImeName = 'Microsoft Office IME 2007'
IntegralHeight = True
Style = lbOwnerDrawFixed
TabOrder = 0
end
end
object PlainLyricsSheet: TTabSheet
Caption = 'Plain Lyrics'
ImageIndex = 2
object PlainLyrics: TListBox
Left = 5
Top = 6
Width = 376
Height = 164
Style = lbOwnerDrawVariable
ImeName = 'Microsoft Office IME 2007'
ItemHeight = 20
TabOrder = 0
end
end
object TabSheet1: TTabSheet
Caption = 'Sync Lyrics'
ImageIndex = 2
object SyncLyricsList: TListBox
Left = 5
Top = 6
Width = 376
Height = 164
Style = lbOwnerDrawVariable
ImeName = 'Microsoft Office IME 2007'
ItemHeight = 20
TabOrder = 0
end
end
end
object Button1: TButton
Left = 292
Top = 464
Width = 84
Height = 25
Caption = 'Tempo/Pitch'
TabOrder = 15
OnClick = Button1Click
end
object btnShowLyricsWindow: TButton
Left = 14
Top = 503
Width = 130
Height = 25
Caption = 'Show Lyrics Window'
TabOrder = 16
OnClick = btnShowLyricsWindowClick
end
object btnViewChannel: TButton
Left = 150
Top = 503
Width = 144
Height = 25
Caption = 'Show Channel Window'
TabOrder = 17
OnClick = btnViewChannelClick
end
object btnShowMusicSheet: TButton
Left = 301
Top = 503
Width = 121
Height = 25
Caption = 'Show Music Sheet'
TabOrder = 18
OnClick = btnShowMusicSheetClick
end
object OpenDialog1: TOpenDialog
Filter = 'MIDI File (*.MID, *.KAR)|*.mid;*.kar'
Left = 331
Top = 272
end
object XPManifest1: TXPManifest
Left = 251
Top = 268
end
object MidiFile: TMidiFile2
Left = 147
Top = 240
end
object MidiPlayer: TMidiPlayer2
MidiFile = MidiFile
Priority = TIME_CRITICAL
TimerInterval = 5
OnMidiEvent = MidiPlayerMidiEvent
OnGotLyrics = MidiPlayerGotLyrics
OnTempoChange = MidiPlayerTempoChange
OnPosUpdate = MidiPlayerPosUpdate
OnEndOfTrack = MidiPlayerTrackEnd
OnPlayEnd = MidiPlayerPlayEnd
Left = 75
Top = 240
end
object ApplicationEvents1: TApplicationEvents
OnMessage = ApplicationEvents1Message
Left = 168
Top = 312
end
end