dropped aas, moved to maxmod
[gbajam21] / libs / maxmod / mp_format_mas.inc
1 /****************************************************************************
2  *                                                          __              *
3  *                ____ ___  ____ __  ______ ___  ____  ____/ /              *
4  *               / __ `__ \/ __ `/ |/ / __ `__ \/ __ \/ __  /               *
5  *              / / / / / / /_/ />  </ / / / / / /_/ / /_/ /                *
6  *             /_/ /_/ /_/\__,_/_/|_/_/ /_/ /_/\____/\__,_/                 *
7  *                                                                          *
8  *         Copyright (c) 2008, Mukunda Johnson (mukunda@maxmod.org)         *
9  *                                                                          *
10  * Permission to use, copy, modify, and/or distribute this software for any *
11  * purpose with or without fee is hereby granted, provided that the above   *
12  * copyright notice and this permission notice appear in all copies.        *
13  *                                                                          *
14  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES *
15  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF         *
16  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR  *
17  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES   *
18  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN    *
19  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF  *
20  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.           *
21  ****************************************************************************/
22
23 .ifndef MP_FORMAT_MAS_INC
24 .equ    MP_FORMAT_MAS_INC, 1
25
26 @ MAS header structure..................................
27 .equ    C_MAS_LEN       ,0
28 .equ    C_MAS_INSTN     ,1
29 .equ    C_MAS_SAMPN     ,2      
30 .equ    C_MAS_PATTN     ,3
31 .equ    C_MAS_FLAGS     ,4
32 .equ    C_MAS_GV        ,5
33 .equ    C_MAS_SPEED     ,6
34 .equ    C_MAS_TEMPO     ,7
35 .equ    C_MAS_REP       ,8
36
37 .equ    C_MAS_CHANVOL   ,12
38 .equ    C_MAS_CHANPAN   ,44
39 .equ    C_MAS_ORDER     ,76
40 .equ    C_MAS_TABLES    ,276
41
42 .equ    C_FLAGS_GS      ,1
43 .equ    C_FLAGS_OS      ,2
44 .equ    C_FLAGS_SS      ,3
45 .equ    C_FLAGS_XS      ,4
46 .equ    C_FLAGS_DS      ,5
47 ///////.equ     C_FLAGS_LS      ,5              HUH???
48 .equ    C_FLAGS_LS      ,6
49
50 .equ    C_FLAGS_X,      (1<<3)
51
52 @ instrument struct.....................................
53 .equ    C_MASI_GVOL     ,0
54 .equ    C_MASI_FADE     ,1
55 .equ    C_MASI_RANDVOL  ,2
56 .equ    C_MASI_DCT      ,3
57 .equ    C_MASI_NNA      ,4
58 .equ    C_MASI_ENVFLAGS ,5
59 .equ    C_MASI_PAN      ,6
60 .equ    C_MASI_DCA      ,7
61 .equ    C_MASI_MAP      ,8
62 .equ    C_MASI_ENVELOPES,12
63 //.equ  C_MASI_ENVELOPES,248
64
65 .equ    C_MASIE_SIZE    ,0
66 .equ    C_MASIE_LSTART  ,1
67 .equ    C_MASIE_LEND    ,2
68 .equ    C_MASIE_SSTART  ,3
69 .equ    C_MASIE_SEND    ,4
70 .equ    C_MASIE_NODEC   ,5
71 .equ    C_MASIE_FILTER  ,6
72 .equ    C_MASIE_NODES   ,8
73
74 .EQU    ENVFLAG_A,      0b1000
75
76 @ sample structure......................................
77 .equ    C_MASS_DV       ,0
78 .equ    C_MASS_PAN      ,1
79 .equ    C_MASS_FREQ     ,2
80 .equ    C_MASS_VIT      ,4
81 .equ    C_MASS_VID      ,5
82 .equ    C_MASS_VIS      ,6
83 .equ    C_MASS_VIR      ,8
84 .equ    C_MASS_GV       ,7
85
86 .equ    C_MASS_MSLID    ,10
87
88 @ pattern structure.....................................
89 .equ    C_MASP_NROWS    ,0
90 .equ    C_MASP_DATA     ,1
91
92 @ sample structure......................................
93 .equ    C_SAMPLE_LEN    ,0
94 .equ    C_SAMPLE_LOOP   ,4
95 .equ    C_SAMPLE_POINT  ,12
96 .equ    C_SAMPLE_DATA   ,16
97
98 .equ    C_SAMPLEN_LSTART,0
99 .equ    C_SAMPLEN_LEN   ,4
100 .equ    C_SAMPLEN_FORMAT,8
101 .equ    C_SAMPLEN_REP   ,9
102 .equ    C_SAMPLEN_POINT ,12
103 .equ    C_SAMPLEN_DATA  ,16
104
105 .equ    C_SAMPLEC_DFREQ ,10
106
107
108 .endif