PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
dmyprint.c
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright ps2dev - http://www.ps2dev.org
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
11#include "libsnd2_internal.h"
12
13static int is_first_dmy_SsNoteOn = 0;
14static int is_first_dmy_SsSetProgramChange = 0;
15static int is_first_dmy_SsGetMetaEvent = 0;
16static int is_first_dmy_SsSetPitchBend = 0;
17static int is_first_dmy_SsSetControlChange = 0;
18static int is_first_dmy_SsContBankChange = 0;
19static int is_first_dmy_SsContDataEntry = 0;
20static int is_first_dmy_SsContMainVol = 0;
21static int is_first_dmy_SsContPanpot = 0;
22static int is_first_dmy_SsContExpression = 0;
23static int is_first_dmy_SsContDamper = 0;
24static int is_first_dmy_SsContExternal = 0;
25static int is_first_dmy_SsContNrpn1 = 0;
26static int is_first_dmy_SsContNrpn2 = 0;
27static int is_first_dmy_SsContRpn1 = 0;
28static int is_first_dmy_SsContRpn2 = 0;
29static int is_first_dmy_SsContResetAll = 0;
30static int is_first_dmy_SsSetNrpnVabAttr0 = 0;
31static int is_first_dmy_SsSetNrpnVabAttr1 = 0;
32static int is_first_dmy_SsSetNrpnVabAttr2 = 0;
33static int is_first_dmy_SsSetNrpnVabAttr3 = 0;
34static int is_first_dmy_SsSetNrpnVabAttr4 = 0;
35static int is_first_dmy_SsSetNrpnVabAttr5 = 0;
36static int is_first_dmy_SsSetNrpnVabAttr6 = 0;
37static int is_first_dmy_SsSetNrpnVabAttr7 = 0;
38static int is_first_dmy_SsSetNrpnVabAttr8 = 0;
39static int is_first_dmy_SsSetNrpnVabAttr9 = 0;
40static int is_first_dmy_SsSetNrpnVabAttr10 = 0;
41static int is_first_dmy_SsSetNrpnVabAttr11 = 0;
42static int is_first_dmy_SsSetNrpnVabAttr12 = 0;
43static int is_first_dmy_SsSetNrpnVabAttr13 = 0;
44static int is_first_dmy_SsSetNrpnVabAttr14 = 0;
45static int is_first_dmy_SsSetNrpnVabAttr15 = 0;
46static int is_first_dmy_SsSetNrpnVabAttr16 = 0;
47static int is_first_dmy_SsSetNrpnVabAttr17 = 0;
48static int is_first_dmy_SsSetNrpnVabAttr18 = 0;
49static int is_first_dmy_SsSetNrpnVabAttr19 = 0;
50
51void dmy_nothing1(s16 seq_no, s16 sep_no, u8 note, u8 vollr)
52{
53 (void)sep_no;
54 (void)seq_no;
55 (void)note;
56 (void)vollr;
57}
58
59void dmy_SsNoteOn(s16 sep_no, s16 seq_no, u8 note, u8 vollr)
60{
61 (void)sep_no;
62 (void)seq_no;
63 (void)note;
64 (void)vollr;
65 if ( !is_first_dmy_SsNoteOn )
66 {
67 printf("_SsNoteOn\n");
68 is_first_dmy_SsNoteOn = 1;
69 }
70}
71
72void dmy_SsSetProgramChange(s16 sep_no, s16 seq_no, u8 prog)
73{
74 (void)sep_no;
75 (void)seq_no;
76 (void)prog;
77 if ( !is_first_dmy_SsSetProgramChange )
78 {
79 printf("_SsSetProgramChange\n");
80 is_first_dmy_SsSetProgramChange = 1;
81 }
82}
83
84void dmy_SsGetMetaEvent(s16 sep_no, s16 seq_no, u8 meta_event)
85{
86 (void)sep_no;
87 (void)seq_no;
88 (void)meta_event;
89 if ( !is_first_dmy_SsGetMetaEvent )
90 {
91 printf("_SsGetMetaEvent\n");
92 is_first_dmy_SsGetMetaEvent = 1;
93 }
94}
95
96void dmy_SsSetPitchBend(s16 sep_no, s16 seq_no)
97{
98 (void)sep_no;
99 (void)seq_no;
100 if ( !is_first_dmy_SsSetPitchBend )
101 {
102 printf("_SsSetPitchBend\n");
103 is_first_dmy_SsSetPitchBend = 1;
104 }
105}
106
107void dmy_SsSetControlChange(s16 sep_no, s16 seq_no, u8 control_value)
108{
109 (void)sep_no;
110 (void)seq_no;
111 (void)control_value;
112 if ( !is_first_dmy_SsSetControlChange )
113 {
114 printf("_SsSetControlChange\n");
115 is_first_dmy_SsSetControlChange = 1;
116 }
117}
118
119void dmy_SsContBankChange(s16 sep_no, s16 seq_no, u8 control_value)
120{
121 (void)sep_no;
122 (void)seq_no;
123 (void)control_value;
124 if ( !is_first_dmy_SsContBankChange )
125 {
126 printf("_SsContBankChange\n");
127 is_first_dmy_SsContBankChange = 1;
128 }
129}
130
131void dmy_SsContDataEntry(s16 sep_no, s16 seq_no, u8 control_value)
132{
133 (void)sep_no;
134 (void)seq_no;
135 (void)control_value;
136 if ( !is_first_dmy_SsContDataEntry )
137 {
138 printf("_SsContDataEntry\n");
139 is_first_dmy_SsContDataEntry = 1;
140 }
141}
142
143void dmy_SsContMainVol(s16 sep_no, s16 seq_no, u8 control_value)
144{
145 (void)sep_no;
146 (void)seq_no;
147 (void)control_value;
148 if ( !is_first_dmy_SsContMainVol )
149 {
150 printf("_SsContMainVol\n");
151 is_first_dmy_SsContMainVol = 1;
152 }
153}
154
155void dmy_SsContPanpot(s16 sep_no, s16 seq_no, u8 control_value)
156{
157 (void)sep_no;
158 (void)seq_no;
159 (void)control_value;
160 if ( !is_first_dmy_SsContPanpot )
161 {
162 printf("_SsContPanpot\n");
163 is_first_dmy_SsContPanpot = 1;
164 }
165}
166
167void dmy_SsContExpression(s16 sep_no, s16 seq_no, u8 control_value)
168{
169 (void)sep_no;
170 (void)seq_no;
171 (void)control_value;
172 if ( !is_first_dmy_SsContExpression )
173 {
174 printf("_SsContExpression\n");
175 is_first_dmy_SsContExpression = 1;
176 }
177}
178
179void dmy_SsContDamper(s16 sep_no, s16 seq_no, u8 control_value)
180{
181 (void)sep_no;
182 (void)seq_no;
183 (void)control_value;
184 if ( !is_first_dmy_SsContDamper )
185 {
186 printf("_SsContDamper\n");
187 is_first_dmy_SsContDamper = 1;
188 }
189}
190
191void dmy_SsContExternal(s16 sep_no, s16 seq_no, u8 control_value)
192{
193 (void)sep_no;
194 (void)seq_no;
195 (void)control_value;
196 if ( !is_first_dmy_SsContExternal )
197 {
198 printf("_SsContExternal\n");
199 is_first_dmy_SsContExternal = 1;
200 }
201}
202
203void dmy_SsContNrpn1(s16 sep_no, s16 seq_no, u8 control_value)
204{
205 (void)sep_no;
206 (void)seq_no;
207 (void)control_value;
208 if ( !is_first_dmy_SsContNrpn1 )
209 {
210 printf("_SsContNrpn1\n");
211 is_first_dmy_SsContNrpn1 = 1;
212 }
213}
214
215void dmy_SsContNrpn2(s16 sep_no, s16 seq_no, u8 control_value)
216{
217 (void)sep_no;
218 (void)seq_no;
219 (void)control_value;
220 if ( !is_first_dmy_SsContNrpn2 )
221 {
222 printf("_SsContNrpn2\n");
223 is_first_dmy_SsContNrpn2 = 1;
224 }
225}
226
227void dmy_SsContRpn1(s16 sep_no, s16 seq_no, u8 control_value)
228{
229 (void)sep_no;
230 (void)seq_no;
231 (void)control_value;
232 if ( !is_first_dmy_SsContRpn1 )
233 {
234 printf("_SsContRpn1\n");
235 is_first_dmy_SsContRpn1 = 1;
236 }
237}
238
239void dmy_SsContRpn2(s16 sep_no, s16 seq_no, u8 control_value)
240{
241 (void)sep_no;
242 (void)seq_no;
243 (void)control_value;
244 if ( !is_first_dmy_SsContRpn2 )
245 {
246 printf("_SsContRpn2\n");
247 is_first_dmy_SsContRpn2 = 1;
248 }
249}
250
251void dmy_SsContResetAll(s16 sep_no, s16 seq_no, u8 control_value)
252{
253 (void)sep_no;
254 (void)seq_no;
255 (void)control_value;
256 if ( !is_first_dmy_SsContResetAll )
257 {
258 printf("_SsContResetAll\n");
259 is_first_dmy_SsContResetAll = 1;
260 }
261}
262
263void dmy_SsSetNrpnVabAttr0(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
264{
265 (void)vab_id;
266 (void)prog;
267 (void)tone;
268 (void)vag_attr;
269 (void)fn_idx;
270 (void)attribute_value;
271 if ( !is_first_dmy_SsSetNrpnVabAttr0 )
272 {
273 printf("_SsSetNrpnVabAttr0\n");
274 is_first_dmy_SsSetNrpnVabAttr0 = 1;
275 }
276}
277
278void dmy_SsSetNrpnVabAttr1(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
279{
280 (void)vab_id;
281 (void)prog;
282 (void)tone;
283 (void)vag_attr;
284 (void)fn_idx;
285 (void)attribute_value;
286 if ( !is_first_dmy_SsSetNrpnVabAttr1 )
287 {
288 printf("_SsSetNrpnVabAttr1\n");
289 is_first_dmy_SsSetNrpnVabAttr1 = 1;
290 }
291}
292
293void dmy_SsSetNrpnVabAttr2(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
294{
295 (void)vab_id;
296 (void)prog;
297 (void)tone;
298 (void)vag_attr;
299 (void)fn_idx;
300 (void)attribute_value;
301 if ( !is_first_dmy_SsSetNrpnVabAttr2 )
302 {
303 printf("_SsSetNrpnVabAttr2\n");
304 is_first_dmy_SsSetNrpnVabAttr2 = 1;
305 }
306}
307
308void dmy_SsSetNrpnVabAttr3(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
309{
310 (void)vab_id;
311 (void)prog;
312 (void)tone;
313 (void)vag_attr;
314 (void)fn_idx;
315 (void)attribute_value;
316 if ( !is_first_dmy_SsSetNrpnVabAttr3 )
317 {
318 printf("_SsSetNrpnVabAttr3\n");
319 is_first_dmy_SsSetNrpnVabAttr3 = 1;
320 }
321}
322
323void dmy_SsSetNrpnVabAttr4(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
324{
325 (void)vab_id;
326 (void)prog;
327 (void)tone;
328 (void)vag_attr;
329 (void)fn_idx;
330 (void)attribute_value;
331 if ( !is_first_dmy_SsSetNrpnVabAttr4 )
332 {
333 printf("_SsSetNrpnVabAttr4\n");
334 is_first_dmy_SsSetNrpnVabAttr4 = 1;
335 }
336}
337
338void dmy_SsSetNrpnVabAttr5(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
339{
340 (void)vab_id;
341 (void)prog;
342 (void)tone;
343 (void)vag_attr;
344 (void)fn_idx;
345 (void)attribute_value;
346 if ( !is_first_dmy_SsSetNrpnVabAttr5 )
347 {
348 printf("_SsSetNrpnVabAttr5\n");
349 is_first_dmy_SsSetNrpnVabAttr5 = 1;
350 }
351}
352
353void dmy_SsSetNrpnVabAttr6(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
354{
355 (void)vab_id;
356 (void)prog;
357 (void)tone;
358 (void)vag_attr;
359 (void)fn_idx;
360 (void)attribute_value;
361 if ( !is_first_dmy_SsSetNrpnVabAttr6 )
362 {
363 printf("_SsSetNrpnVabAttr6\n");
364 is_first_dmy_SsSetNrpnVabAttr6 = 1;
365 }
366}
367
368void dmy_SsSetNrpnVabAttr7(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
369{
370 (void)vab_id;
371 (void)prog;
372 (void)tone;
373 (void)vag_attr;
374 (void)fn_idx;
375 (void)attribute_value;
376 if ( !is_first_dmy_SsSetNrpnVabAttr7 )
377 {
378 printf("_SsSetNrpnVabAttr7\n");
379 is_first_dmy_SsSetNrpnVabAttr7 = 1;
380 }
381}
382
383void dmy_SsSetNrpnVabAttr8(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
384{
385 (void)vab_id;
386 (void)prog;
387 (void)tone;
388 (void)vag_attr;
389 (void)fn_idx;
390 (void)attribute_value;
391 if ( !is_first_dmy_SsSetNrpnVabAttr8 )
392 {
393 printf("_SsSetNrpnVabAttr8\n");
394 is_first_dmy_SsSetNrpnVabAttr8 = 1;
395 }
396}
397
398void dmy_SsSetNrpnVabAttr9(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
399{
400 (void)vab_id;
401 (void)prog;
402 (void)tone;
403 (void)vag_attr;
404 (void)fn_idx;
405 (void)attribute_value;
406 if ( !is_first_dmy_SsSetNrpnVabAttr9 )
407 {
408 printf("_SsSetNrpnVabAttr9\n");
409 is_first_dmy_SsSetNrpnVabAttr9 = 1;
410 }
411}
412
413void dmy_SsSetNrpnVabAttr10(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
414{
415 (void)vab_id;
416 (void)prog;
417 (void)tone;
418 (void)vag_attr;
419 (void)fn_idx;
420 (void)attribute_value;
421 if ( !is_first_dmy_SsSetNrpnVabAttr10 )
422 {
423 printf("_SsSetNrpnVabAttr10\n");
424 is_first_dmy_SsSetNrpnVabAttr10 = 1;
425 }
426}
427
428void dmy_SsSetNrpnVabAttr11(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
429{
430 (void)vab_id;
431 (void)prog;
432 (void)tone;
433 (void)vag_attr;
434 (void)fn_idx;
435 (void)attribute_value;
436 if ( !is_first_dmy_SsSetNrpnVabAttr11 )
437 {
438 printf("_SsSetNrpnVabAttr11\n");
439 is_first_dmy_SsSetNrpnVabAttr11 = 1;
440 }
441}
442
443void dmy_SsSetNrpnVabAttr12(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
444{
445 (void)vab_id;
446 (void)prog;
447 (void)tone;
448 (void)vag_attr;
449 (void)fn_idx;
450 (void)attribute_value;
451 if ( !is_first_dmy_SsSetNrpnVabAttr12 )
452 {
453 printf("_SsSetNrpnVabAttr12\n");
454 is_first_dmy_SsSetNrpnVabAttr12 = 1;
455 }
456}
457
458void dmy_SsSetNrpnVabAttr13(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
459{
460 (void)vab_id;
461 (void)prog;
462 (void)tone;
463 (void)vag_attr;
464 (void)fn_idx;
465 (void)attribute_value;
466 if ( !is_first_dmy_SsSetNrpnVabAttr13 )
467 {
468 printf("_SsSetNrpnVabAttr13\n");
469 is_first_dmy_SsSetNrpnVabAttr13 = 1;
470 }
471}
472
473void dmy_SsSetNrpnVabAttr14(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
474{
475 (void)vab_id;
476 (void)prog;
477 (void)tone;
478 (void)vag_attr;
479 (void)fn_idx;
480 (void)attribute_value;
481 if ( !is_first_dmy_SsSetNrpnVabAttr14 )
482 {
483 printf("_SsSetNrpnVabAttr14\n");
484 is_first_dmy_SsSetNrpnVabAttr14 = 1;
485 }
486}
487
488void dmy_SsSetNrpnVabAttr15(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
489{
490 (void)vab_id;
491 (void)prog;
492 (void)tone;
493 (void)vag_attr;
494 (void)fn_idx;
495 (void)attribute_value;
496 if ( !is_first_dmy_SsSetNrpnVabAttr15 )
497 {
498 printf("_SsSetNrpnVabAttr15\n");
499 is_first_dmy_SsSetNrpnVabAttr15 = 1;
500 }
501}
502
503void dmy_SsSetNrpnVabAttr16(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
504{
505 (void)vab_id;
506 (void)prog;
507 (void)tone;
508 (void)vag_attr;
509 (void)fn_idx;
510 (void)attribute_value;
511 if ( !is_first_dmy_SsSetNrpnVabAttr16 )
512 {
513 printf("_SsSetNrpnVabAttr16\n");
514 is_first_dmy_SsSetNrpnVabAttr16 = 1;
515 }
516}
517
518void dmy_SsSetNrpnVabAttr17(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
519{
520 (void)vab_id;
521 (void)prog;
522 (void)tone;
523 (void)vag_attr;
524 (void)fn_idx;
525 (void)attribute_value;
526 if ( !is_first_dmy_SsSetNrpnVabAttr17 )
527 {
528 printf("_SsSetNrpnVabAttr17\n");
529 is_first_dmy_SsSetNrpnVabAttr17 = 1;
530 }
531}
532
533void dmy_SsSetNrpnVabAttr18(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
534{
535 (void)vab_id;
536 (void)prog;
537 (void)tone;
538 (void)vag_attr;
539 (void)fn_idx;
540 (void)attribute_value;
541 if ( !is_first_dmy_SsSetNrpnVabAttr18 )
542 {
543 printf("_SsSetNrpnVabAttr18\n");
544 is_first_dmy_SsSetNrpnVabAttr18 = 1;
545 }
546}
547
548void dmy_SsSetNrpnVabAttr19(s16 vab_id, s16 prog, s16 tone, VagAtr vag_attr, s16 fn_idx, u8 attribute_value)
549{
550 (void)vab_id;
551 (void)prog;
552 (void)tone;
553 (void)vag_attr;
554 (void)fn_idx;
555 (void)attribute_value;
556 if ( !is_first_dmy_SsSetNrpnVabAttr19 )
557 {
558 printf("_SsSetNrpnVabAttr19\n");
559 is_first_dmy_SsSetNrpnVabAttr19 = 1;
560 }
561}