1 /*---------------------------------------------------------------------------*
2   Project:  TwlSDK - include - snd - common
3   File:     mml.h
4 
5   Copyright 2004-2008 Nintendo.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Date:: 2008-09-18#$
14   $Rev: 8573 $
15   $Author: okubata_ryoma $
16  *---------------------------------------------------------------------------*/
17 
18 #ifndef NITRO_SND_COMMON_MML_H_
19 #define NITRO_SND_COMMON_MML_H_
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 /******************************************************************************
26 	macro definition
27  ******************************************************************************/
28 
29 #define SND_MML_WAIT        0x80
30 #define SND_MML_PRG         0x81
31 
32 #define SND_MML_OPEN_TRACK  0x93
33 #define SND_MML_JUMP        0x94
34 #define SND_MML_CALL        0x95
35 
36 #define SND_MML_RANDOM      0xa0
37 #define SND_MML_VARIABLE    0xa1
38 #define SND_MML_IF          0xa2
39 
40 #define SND_MML_SETVAR      0xb0
41 #define SND_MML_ADDVAR      0xb1
42 #define SND_MML_SUBVAR      0xb2
43 #define SND_MML_MULVAR      0xb3
44 #define SND_MML_DIVVAR      0xb4
45 #define SND_MML_SHIFTVAR    0xb5
46 #define SND_MML_RANDVAR     0xb6
47 
48 #define SND_MML_CMP_EQ      0xb8
49 #define SND_MML_CMP_GE      0xb9
50 #define SND_MML_CMP_GT      0xba
51 #define SND_MML_CMP_LE      0xbb
52 #define SND_MML_CMP_LT      0xbc
53 #define SND_MML_CMP_NE      0xbd
54 
55 #define SND_MML_PAN         0xc0
56 #define SND_MML_VOLUME      0xc1
57 #define SND_MML_MAIN_VOLUME 0xc2
58 #define SND_MML_TRANSPOSE   0xc3
59 #define SND_MML_PITCH_BEND  0xc4
60 #define SND_MML_BEND_RANGE  0xc5
61 #define SND_MML_PRIO        0xc6
62 #define SND_MML_NOTE_WAIT   0xc7
63 #define SND_MML_TIE         0xc8
64 #define SND_MML_PORTA       0xc9
65 #define SND_MML_MOD_DEPTH   0xca
66 #define SND_MML_MOD_SPEED   0xcb
67 #define SND_MML_MOD_TYPE    0xcc
68 #define SND_MML_MOD_RANGE   0xcd
69 #define SND_MML_PORTA_SW    0xce
70 #define SND_MML_PORTA_TIME  0xcf
71 #define SND_MML_ATTACK      0xd0
72 #define SND_MML_DECAY       0xd1
73 #define SND_MML_SUSTAIN     0xd2
74 #define SND_MML_RELEASE     0xd3
75 #define SND_MML_LOOP_START  0xd4
76 #define SND_MML_VOLUME2     0xd5
77 #define SND_MML_PRINTVAR    0xd6
78 #define SND_MML_MUTE        0xd7
79 
80 #define SND_MML_MOD_DELAY   0xe0
81 #define SND_MML_TEMPO       0xe1
82 #define SND_MML_SWEEP_PITCH 0xe3
83 
84 #define SND_MML_LOOP_END    0xfc
85 #define SND_MML_RET         0xfd
86 #define SND_MML_ALLOC_TRACK 0xfe
87 #define SND_MML_FIN         0xff
88 
89 #ifdef __cplusplus
90 } /* extern "C" */
91 #endif
92 
93 #endif /* NITRO_SND_COMMON_MML_H_ */
94