;::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;	Nintendo64  Original Music Macro Language
;
;                 Macro Define File  
;
;	Version: 1996.07.24 (Thu.) 
;	(Last Change : Add [nenv] command. )
;	Creator: Hideaki Shimizu (EAD.Nintendo Co.Ltd)
;
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::


;###################################################
;
;		 Musical Note section
;
;###################################################


;-----------------------------------------
; BASE:CN4 [ Freq. (x1.000) ]
;-----------------------------------------
; FORMAT:
; (A mode:Length Optimize Mode)
;	 ---(W) 
;        ---L1
;	 ---L2
;
; (B mode:Real Length Mode)
;	 ---B0(W)
;	 ---B1(W)
;	 ---B2(W)
;-----------------------------------------
; LENGTH:  0-127  : 1 byte mode(normal)
;        128-32767: 2 byte mode(add "W")   
;-----------------------------------------
;



AN0 	$000 byte 
AS0 	$001 byte
BF0 	$001 byte
BN0 	$002 byte
CN1 	$003 byte
CS1 	$004 byte
DF1 	$004 byte
DN1 	$005 byte
DS1 	$006 byte
EF1 	$006 byte
EN1 	$007 byte
FN1 	$008 byte
FS1 	$009 byte
GF1 	$009 byte
GN1 	$00A byte
GS1 	$00B byte
AF1 	$00B byte
AN1 	$00C byte
AS1 	$00D byte
BF1 	$00D byte
BN1 	$00E byte

CN2 	$00F byte
CS2 	$010 byte
DF2 	$010 byte
DN2 	$011 byte
DS2 	$012 byte
EF2 	$012 byte
EN2 	$013 byte
FN2 	$014 byte
FS2 	$015 byte
GF2 	$015 byte
GN2 	$016 byte 
GS2 	$017 byte 
AF2 	$017 byte 
AN2 	$018 byte 
AS2 	$019 byte 
BF2 	$019 byte 
BN2 	$01A byte 

CN3 	$01B byte 
CS3 	$01C byte 
DF3 	$01C byte 
DN3 	$01D byte 
DS3 	$01E byte 
EF3 	$01E byte 
EN3 	$01F byte 
FN3 	$020 byte 
FS3 	$021 byte 
GF3 	$021 byte 
GN3 	$022 byte 
GS3 	$023 byte 
AF3 	$023 byte 
AN3 	$024 byte 
AS3 	$025 byte 
BF3 	$025 byte 
BN3 	$026 byte 

CN4 	$027 byte 
CS4 	$028 byte 
DF4 	$028 byte 
DN4 	$029 byte 
DS4 	$02a byte 
EF4 	$02a byte 
EN4 	$02b byte 
FN4 	$02c byte 
FS4 	$02d byte 
GF4 	$02d byte 
GN4 	$02e byte 
GS4 	$02f byte 
AF4 	$02f byte 
AN4 	$030 byte 
AS4 	$031 byte 
BF4 	$031 byte 
BN4 	$032 byte 

CN5 	$033 byte 
CS5 	$034 byte 
DF5 	$034 byte 
DN5 	$035 byte 
DS5 	$036 byte 
EF5 	$036 byte 
EN5 	$037 byte 
FN5 	$038 byte 
FS5 	$039 byte 
GF5 	$039 byte 
GN5 	$03a byte 
GS5 	$03b byte 
AF5 	$03b byte 
AN5 	$03c byte 
AS5 	$03d byte 
BF5 	$03d byte 
BN5 	$03E byte 

AN0W 	$000 wlen 
AS0W 	$001 wlen
BF0W 	$001 wlen
BN0W	$002 wlen 
CN1W 	$003 wlen 
CS1W 	$004 wlen
DF1W 	$004 wlen
DN1W 	$005 wlen
DS1W 	$006 wlen
EF1W 	$006 wlen
EN1W 	$007 wlen
FN1W 	$008 wlen
FS1W 	$009 wlen
GF1W 	$009 wlen
GN1W 	$00A wlen
GS1W 	$00B wlen
AF1W 	$00B wlen
AN1W 	$00C wlen
AS1W 	$00D wlen
BF1W 	$00D wlen
BN1W 	$00E wlen

CN2W	$00F wlen
CS2W	$010 wlen
DF2W	$010 wlen
DN2W	$011 wlen
DS2W	$012 wlen
EF2W	$012 wlen
EN2W	$013 wlen
FN2W	$014 wlen
FS2W 	$015 wlen
GF2W	$015 wlen
GN2W	$016 wlen
GS2W	$017 wlen
AF2W 	$017 wlen
AN2W	$018 wlen
AS2W	$019 wlen
BF2W	$019 wlen
BN2W 	$01A wlen

CN3W	$01B wlen
CS3W 	$01C wlen
DF3W	$01C wlen
DN3W 	$01D wlen
DS3W 	$01E wlen
EF3W 	$01E wlen
EN3W 	$01F wlen
FN3W 	$020 wlen
FS3W 	$021 wlen
GF3W 	$021 wlen
GN3W 	$022 wlen
GS3W 	$023 wlen
AF3W 	$023 wlen
AN3W 	$024 wlen
AS3W 	$025 wlen
BF3W 	$025 wlen
BN3W 	$026 wlen

CN4W 	$027 wlen
CS4W 	$028 wlen
DF4W 	$028 wlen
DN4W 	$029 wlen
DS4W 	$02a wlen
EF4W 	$02a wlen
EN4W 	$02b wlen
FN4W 	$02c wlen
FS4W 	$02d wlen
GF4W 	$02d wlen
GN4W 	$02e wlen
GS4W 	$02f wlen
AF4W 	$02f wlen
AN4W 	$030 wlen
AS4W 	$031 wlen
BF4W 	$031 wlen
BN4W 	$032 wlen

CN5W 	$033 wlen
CS5W 	$034 wlen
DF5W 	$034 wlen
DN5W 	$035 wlen
DS5W 	$036 wlen
EF5W 	$036 wlen
EN5W 	$037 wlen
FN5W 	$038 wlen
FS5W 	$039 wlen
GF5W 	$039 wlen
GN5W 	$03a wlen
GS5W 	$03b wlen
AF5W 	$03b wlen
AN5W 	$03c wlen
AS5W 	$03d wlen
BF5W 	$03d wlen
BN5W 	$03E wlen

P00     $000 byte
P01     $001 byte
P02     $002 byte
P03     $003 byte
P04     $004 byte
P05     $005 byte
P06     $006 byte
P07     $007 byte
P08     $008 byte
P09     $009 byte
P0A     $00a byte
P0B     $00b byte
P0C     $00c byte
P0D     $00d byte
P0E     $00e byte
P0F     $00f byte
P10     $010 byte
P11     $011 byte
P12     $012 byte
P13     $013 byte
P14     $014 byte
P15     $015 byte

P00W    $000 wlen
P01W    $001 wlen
P02W    $002 wlen
P03W    $003 wlen
P04W    $004 wlen
P05W    $005 wlen
P06W    $006 wlen
P07W    $007 wlen
P08W    $008 wlen
P09W    $009 wlen
P0AW    $00a wlen
P0BW    $00b wlen
P0CW    $00c wlen
P0DW    $00d wlen
P0EW    $00e wlen
P0FW    $00f wlen
P10W    $010 wlen
P11W    $011 wlen
P12W    $012 wlen
P13W    $013 wlen
P14W    $014 wlen
P15W    $015 wlen




;63
;>51->39->27->15->3

AN0L1	$040 
AS0L1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byte,byte
EF1B0 	$006 byte,byte,byte
EN1B0 	$007 byte,byte,byte
FN1B0 	$008 byte,byte,byte
FS1B0 	$009 byte,byte,byte
GF1B0 	$009 byte,byte,byte
GN1B0 	$00A byte,byte,byte
GS1B0 	$00B byte,byte,byte
AF1B0 	$00B byte,byte,byte
AN1B0 	$00C byte,byte,byte
AS1B0 	$00D byte,byte,byte
BF1B0 	$00D byte,byte,byte
BN1B0 	$00E byte,byte,byte

CN2B0	$00F byte,byte,byte
CS2B0	$010 byte,byte,byte
DF2B0	$010 byte,byte,byte
DN2B0	$011 byte,byte,byte
DS2B0	$012 byte,byte,byte
EF2B0	$012 byte,byte,byte
EN2B0	$013 byte,byte,byte
FN2B0	$014 byte,byte,byte
FS2B0 	$015 byte,byte,byte
GF2B0	$015 byte,byte,byte
GN2B0	$016 byte,byte,byte
GS2B0	$017 byte,byte,byte
AF2B0 	$017 byte,byte,byte
AN2B0	$018 byte,byte,byte
AS2B0	$019 byte,byte,byte
BF2B0	$019 byte,byte,byte
BN2B0 	$01A byte,byte,byte

CN3B0	$01B byte,byte,byte
CS3B0 	$01C byte,byte,byte
DF3B0	$01C byte,byte,byte
DN3B0 	$01D byte,byte,byte
DS3B0 	$01E byte,byte,byte
EF3B0 	$01E byte,byte,byte
EN3B0 	$01F byte,byte,byte
FN3B0 	$020 byte,byte,byte
FS3B0 	$021 byte,byte,byte
GF3B0 	$021 byte,byte,byte
GN3B0 	$022 byte,byte,byte
GS3B0 	$023 byte,byte,byte
AF3B0 	$023 byte,byte,byte
AN3B0 	$024 byte,byte,byte
AS3B0 	$025 byte,byte,byte
BF3B0 	$025 byte,byte,byte
BN3B0 	$026 byte,byte,byte

CN4B0 	$027 byte,byte,byte
CS4B0 	$028 byte,byte,byte
DF4B0 	$028 byte,byte,byte
DN4B0 	$029 byte,byte,byte
DS4B0 	$02a byte,byte,byte
EF4B0 	$02a byte,byte,byte
EN4B0 	$02b byte,byte,byte
FN4B0 	$02c byte,byte,byte
FS4B0 	$02d byte,byte,byte
GF4B0 	$02d byte,byte,byte
GN4B0 	$02e byte,byte,byte
GS4B0 	$02f byte,byte,byte
AF4B0 	$02f byte,byte,byte
AN4B0 	$030 byte,byte,byte
AS4B0 	$031 byte,byte,byte
BF4B0 	$031 byte,byte,byte
BN4B0 	$032 byte,byte,byte

CN5B0 	$033 byte,byte,byte
CS5B0 	$034 byte,byte,byte
DF5B0 	$034 byte,byte,byte
DN5B0 	$035 byte,byte,byte
DS5B0 	$036 byte,byte,byte
EF5B0 	$036 byte,byte,byte
EN5B0 	$037 byte,byte,byte
FN5B0 	$038 byte,byte,byte
FS5B0 	$039 byte,byte,byte
GF5B0 	$039 byte,byte,byte
GN5B0 	$03a byte,byte,byte
GS5B0 	$03b byte,byte,byte
AF5B0 	$03b byte,byte,byte
AN5B0 	$03c byte,byte,byte
AS5B0 	$03d byte,byte,byte
BF5B0 	$03d byte,byte,byte
BN5B0 	$03E byte,byte,byte


; *** gate 100% ***/

AN0B1 	$040 byte,byte 
AS0B1 	$041 byte,byte
BF0B1 	$041 byte,byte
BN0B1	$042 byte,byte 
CN1B1 	$043 byte,byte 
CS1B1 	$044 byte,byte
DF1B1 	$044 byte,byte
DN1B1 	$045 byte,byte
DS1B1 	$046 byte,byte
EF1B1 	$046 byte,byte
EN1B1 	$047 byte,byte
FN1B1 	$048 byte,byte
FS1B1 	$049 byte,byte
GF1B1 	$049 byte,byte
GN1B1 	$04A byte,byte
GS1B1 	$04B byte,byte
AF1B1 	$04B byte,byte
AN1B1 	$04C byte,byte
AS1B1 	$04D byte,byte
BF1B1 	$04D byte,byte
BN1B1 	$04E byte,byte

CN2B1	$04F byte,byte
CS2B1	$050 byte,byte
DF2B1	$050 byte,byte
DN2B1	$051 byte,byte
DS2B1	$052 byte,byte
EF2B1	$052 byte,byte
EN2B1	$053 byte,byte
FN2B1	$054 byte,byte
FS2B1 	$055 byte,byte
GF2B1	$055 byte,byte
GN2B1	$056 byte,byte
GS2B1	$057 byte,byte
AF2B1 	$057 byte,byte
AN2B1	$058 byte,byte
AS2B1	$059 byte,byte
BF2B1	$059 byte,byte
BN2B1 	$05A byte,byte

CN3B1	$05B byte,byte
CS3B1 	$05C byte,byte
DF3B1	$05C byte,byte
DN3B1 	$05D byte,byte
DS3B1 	$05E byte,byte
EF3B1 	$05E byte,byte
EN3B1 	$05F byte,byte
FN3B1 	$060 byte,byte
FS3B1 	$061 byte,byte
GF3B1 	$061 byte,byte
GN3B1 	$062 byte,byte
GS3B1 	$063 byte,byte
AF3B1 	$063 byte,byte
AN3B1 	$064 byte,byte
AS3B1 	$065 byte,byte
BF3B1 	$065 byte,byte
BN3B1 	$066 byte,byte

CN4B1 	$067 byte,byte
CS4B1 	$068 byte,byte
DF4B1 	$068 byte,byte
DN4B1 	$069 byte,byte
DS4B1 	$06a byte,byte
EF4B1 	$06a byte,byte
EN4B1 	$06b byte,byte
FN4B1 	$06c byte,byte
FS4B1 	$06d byte,byte
GF4B1 	$06d byte,byte
GN4B1 	$06e byte,byte
GS4B1 	$06f byte,byte
AF4B1 	$06f byte,byte
AN4B1 	$070 byte,byte
AS4B1 	$071 byte,byte
BF4B1 	$071 byte,byte
BN4B1 	$072 byte,byte

CN5B1 	$073 byte,byte
CS5B1 	$074 byte,byte
DF5B1 	$074 byte,byte
DN5B1 	$075 byte,byte
DS5B1 	$076 byte,byte
EF5B1 	$076 byte,byte
EN5B1 	$077 byte,byte
FN5B1 	$078 byte,byte
FS5B1 	$079 byte,byte
GF5B1 	$079 byte,byte
GN5B1 	$07a byte,byte
GS5B1 	$07b byte,byte
AF5B1 	$07b byte,byte
AN5B1 	$07c byte,byte
AS5B1 	$07d byte,byte
BF5B1 	$07d byte,byte
BN5B1 	$07E byte,byte

; *** velo before ***/

AN0B2 	$080 byte,byte 
AS0B2 	$081 byte,byte
BF0B2 	$081 byte,byte
BN0B2	$082 byte,byte 
CN1B2 	$083 byte,byte 
CS1B2 	$084 byte,byte
DF1B2 	$084 byte,byte
DN1B2 	$085 byte,byte
DS1B2 	$086 byte,byte
EF1B2 	$086 byte,byte
EN1B2 	$087 byte,byte
FN1B2 	$088 byte,byte
FS1B2 	$089 byte,byte
GF1B2 	$089 byte,byte
GN1B2 	$08A byte,byte
GS1B2 	$08B byte,byte
AF1B2 	$08B byte,byte
AN1B2 	$08C byte,byte
AS1B2 	$08D byte,byte
BF1B2 	$08D byte,byte
BN1B2 	$08E byte,byte

CN2B2	$08F byte,byte
CS2B2	$090 byte,byte
DF2B2	$090 byte,byte
DN2B2	$091 byte,byte
DS2B2	$092 byte,byte
EF2B2	$092 byte,byte
EN2B2	$093 byte,byte
FN2B2	$094 byte,byte
FS2B2 	$095 byte,byte
GF2B2	$095 byte,byte
GN2B2	$096 byte,byte
GS2B2	$097 byte,byte
AF2B2 	$097 byte,byte
AN2B2	$098 byte,byte
AS2B2	$099 byte,byte
BF2B2	$099 byte,byte
BN2B2 	$09A byte,byte

CN3B2	$09B byte,byte
CS3B2 	$09C byte,byte
DF3B2	$09C byte,byte
DN3B2 	$09D byte,byte
DS3B2 	$09E byte,byte
EF3B2 	$09E byte,byte
EN3B2 	$09F byte,byte
FN3B2 	$0A0 byte,byte
FS3B2 	$0A1 byte,byte
GF3B2 	$0A1 byte,byte
GN3B2 	$0A2 byte,byte
GS3B2 	$0A3 byte,byte
AF3B2 	$0A3 byte,byte
AN3B2 	$0A4 byte,byte
AS3B2 	$0A5 byte,byte
BF3B2 	$0A5 byte,byte
BN3B2 	$0A6 byte,byte

CN4B2 	$0A7 byte,byte
CS4B2 	$0A8 byte,byte
DF4B2 	$0A8 byte,byte
DN4B2 	$0A9 byte,byte
DS4B2 	$0Aa byte,byte
EF4B2 	$0Aa byte,byte
EN4B2 	$0Ab byte,byte
FN4B2 	$0Ac byte,byte
FS4B2 	$0Ad byte,byte
GF4B2 	$0Ad byte,byte
GN4B2 	$0Ae byte,byte
GS4B2 	$0Af byte,byte
AF4B2 	$0Af byte,byte
AN4B2 	$0B0 byte,byte
AS4B2 	$0B1 byte,byte
BF4B2 	$0B1 byte,byte
BN4B2 	$0B2 byte,byte

CN5B2 	$0B3 byte,byte
CS5B2 	$0B4 byte,byte
DF5B2 	$0B4 byte,byte
DN5B2 	$0B5 byte,byte
DS5B2 	$0B6 byte,byte
EF5B2 	$0B6 byte,byte
EN5B2 	$0B7 byte,byte
FN5B2 	$0B8 byte,byte
FS5B2 	$0B9 byte,byte
GF5B2 	$0B9 byte,byte
GN5B2 	$0Ba byte,byte
GS5B2 	$0Bb byte,byte
AF5B2 	$0Bb byte,byte
AN5B2 	$0Bc byte,byte
AS5B2 	$0Bd byte,byte
BF5B2 	$0Bd byte,byte
BN5B2 	$0BE byte,byte


;/*** W-Length ***/


AN0B0W 	$000 wlen,byte,byte 
AS0B0W 	$001 wlen,byte,byte
BF0B0W 	$001 wlen,byte,byte
BN0B0W	$002 wlen,byte,byte 
CN1B0W 	$003 wlen,byte,byte 
CS1B0W 	$004 wlen,byte,byte
DF1B0W 	$004 wlen,byte,byte
DN1B0W 	$005 wlen,byte,byte
DS1B0W 	$006 wlen,byte,byte
EF1B0W 	$006 wlen,byte,byte
EN1B0W 	$007 wlen,byte,byte
FN1B0W 	$008 wlen,byte,byte
FS1B0W 	$009 wlen,byte,byte
GF1B0W 	$009 wlen,byte,byte
GN1B0W 	$00A wlen,byte,byte
GS1B0W 	$00B wlen,byte,byte
AF1B0W 	$00B wlen,byte,byte
AN1B0W 	$00C wlen,byte,byte
AS1B0W 	$00D wlen,byte,byte
BF1B0W 	$00D wlen,byte,byte
BN1B0W 	$00E wlen,byte,byte

CN2B0W	$00F wlen,byte,byte
CS2B0W	$010 wlen,byte,byte
DF2B0W	$010 wlen,byte,byte
DN2B0W	$011 wlen,byte,byte
DS2B0W	$012 wlen,byte,byte
EF2B0W	$012 wlen,byte,byte
EN2B0W	$013 wlen,byte,byte
FN2B0W	$014 wlen,byte,byte
FS2B0W 	$015 wlen,byte,byte
GF2B0W	$015 wlen,byte,byte
GN2B0W	$016 wlen,byte,byte
GS2B0W	$017 wlen,byte,byte
AF2B0W 	$017 wlen,byte,byte
AN2B0W	$018 wlen,byte,byte
AS2B0W	$019 wlen,byte,byte
BF2B0W	$019 wlen,byte,byte
BN2B0W 	$01A wlen,byte,byte

CN3B0W	$01B wlen,byte,byte
CS3B0W 	$01C wlen,byte,byte
DF3B0W	$01C wlen,byte,byte
DN3B0W 	$01D wlen,byte,byte
DS3B0W 	$01E wlen,byte,byte
EF3B0W 	$01E wlen,byte,byte
EN3B0W 	$01F wlen,byte,byte
FN3B0W 	$020 wlen,byte,byte
FS3B0W 	$021 wlen,byte,byte
GF3B0W 	$021 wlen,byte,byte
GN3B0W 	$022 wlen,byte,byte
GS3B0W 	$023 wlen,byte,byte
AF3B0W 	$023 wlen,byte,byte
AN3B0W 	$024 wlen,byte,byte
AS3B0W 	$025 wlen,byte,byte
BF3B0W 	$025 wlen,byte,byte
BN3B0W 	$026 wlen,byte,byte

CN4B0W 	$027 wlen,byte,byte
CS4B0W 	$028 wlen,byte,byte
DF4B0W 	$028 wlen,byte,byte
DN4B0W 	$029 wlen,byte,byte
DS4B0W 	$02a wlen,byte,byte
EF4B0W 	$02a wlen,byte,byte
EN4B0W 	$02b wlen,byte,byte
FN4B0W 	$02c wlen,byte,byte
FS4B0W 	$02d wlen,byte,byte
GF4B0W 	$02d wlen,byte,byte
GN4B0W 	$02e wlen,byte,byte
GS4B0W 	$02f wlen,byte,byte
AF4B0W 	$02f wlen,byte,byte
AN4B0W 	$030 wlen,byte,byte
AS4B0W 	$031 wlen,byte,byte
BF4B0W 	$031 wlen,byte,byte
BN4B0W 	$032 wlen,byte,byte

CN5B0W 	$033 wlen,byte,byte
CS5B0W 	$034 wlen,byte,byte
DF5B0W 	$034 wlen,byte,byte
DN5B0W 	$035 wlen,byte,byte
DS5B0W 	$036 wlen,byte,byte
EF5B0W 	$036 wlen,byte,byte
EN5B0W 	$037 wlen,byte,byte
FN5B0W 	$038 wlen,byte,byte
FS5B0W 	$039 wlen,byte,byte
GF5B0W 	$039 wlen,byte,byte
GN5B0W 	$03a wlen,byte,byte
GS5B0W 	$03b wlen,byte,byte
AF5B0W 	$03b wlen,byte,byte
AN5B0W 	$03c wlen,byte,byte
AS5B0W 	$03d wlen,byte,byte
BF5B0W 	$03d wlen,byte,byte
BN5B0W 	$03E wlen,byte,byte


; *** gate 100% ***/

AN0B1W 	$040 wlen,byte 
AS0B1W 	$041 wlen,byte
BF0B1W 	$041 wlen,byte
BN0B1W	$042 wlen,byte 
CN1B1W 	$043 wlen,byte 
CS1B1W 	$044 wlen,byte
DF1B1W 	$044 wlen,byte
DN1B1W 	$045 wlen,byte
DS1B1W 	$046 wlen,byte
EF1B1W 	$046 wlen,byte
EN1B1W 	$047 wlen,byte
FN1B1W 	$048 wlen,byte
FS1B1W 	$049 wlen,byte
GF1B1W 	$049 wlen,byte
GN1B1W 	$04A wlen,byte
GS1B1W 	$04B wlen,byte
AF1B1W 	$04B wlen,byte
AN1B1W 	$04C wlen,byte
AS1B1W 	$04D wlen,byte
BF1B1W 	$04D wlen,byte
BN1B1W 	$04E wlen,byte

CN2B1W	$04F wlen,byte
CS2B1W	$050 wlen,byte
DF2B1W	$050 wlen,byte
DN2B1W	$051 wlen,byte
DS2B1W	$052 wlen,byte
EF2B1W	$052 wlen,byte
EN2B1W	$053 wlen,byte
FN2B1W	$054 wlen,byte
FS2B1W 	$055 wlen,byte
GF2B1W	$055 wlen,byte
GN2B1W	$056 wlen,byte
GS2B1W	$057 wlen,byte
AF2B1W 	$057 wlen,byte
AN2B1W	$058 wlen,byte
AS2B1W	$059 wlen,byte
BF2B1W	$059 wlen,byte
BN2B1W 	$05A wlen,byte

CN3B1W	$05B wlen,byte
CS3B1W 	$05C wlen,byte
DF3B1W	$05C wlen,byte
DN3B1W 	$05D wlen,byte
DS3B1W 	$05E wlen,byte
EF3B1W 	$05E wlen,byte
EN3B1W 	$05F wlen,byte
FN3B1W 	$060 wlen,byte
FS3B1W 	$061 wlen,byte
GF3B1W 	$061 wlen,byte
GN3B1W 	$062 wlen,byte
GS3B1W 	$063 wlen,byte
AF3B1W 	$063 wlen,byte
AN3B1W 	$064 wlen,byte
AS3B1W 	$065 wlen,byte
BF3B1W 	$065 wlen,byte
BN3B1W 	$066 wlen,byte

CN4B1W 	$067 wlen,byte
CS4B1W 	$068 wlen,byte
DF4B1W 	$068 wlen,byte
DN4B1W 	$069 wlen,byte
DS4B1W 	$06a wlen,byte
EF4B1W 	$06a wlen,byte
EN4B1W 	$06b wlen,byte
FN4B1W 	$06c wlen,byte
FS4B1W 	$06d wlen,byte
GF4B1W 	$06d wlen,byte
GN4B1W 	$06e wlen,byte
GS4B1W 	$06f wlen,byte
AF4B1W 	$06f wlen,byte
AN4B1W 	$070 wlen,byte
AS4B1W 	$071 wlen,byte
BF4B1W 	$071 wlen,byte
BN4B1W 	$072 wlen,byte

CN5B1W 	$073 wlen,byte
CS5B1W 	$074 wlen,byte
DF5B1W 	$074 wlen,byte
DN5B1W 	$075 wlen,byte
DS5B1W 	$076 wlen,byte
EF5B1W 	$076 wlen,byte
EN5B1W 	$077 wlen,byte
FN5B1W 	$078 wlen,byte
FS5B1W 	$079 wlen,byte
GF5B1W 	$079 wlen,byte
GN5B1W 	$07a wlen,byte
GS5B1W 	$07b wlen,byte
AF5B1W 	$07b wlen,byte
AN5B1W 	$07c wlen,byte
AS5B1W 	$07d wlen,byte
BF5B1W 	$07d wlen,byte
BN5B1W 	$07E wlen,byte

; *** velo before ***/

AN0B2W 	$080 wlen,byte 
AS0B2W 	$081 wlen,byte
BF0B2W 	$081 wlen,byte
BN0B2W	$082 wlen,byte
CN1B2W 	$083 wlen,byte
CS1B2W 	$084 wlen,byte
DF1B2W 	$084 wlen,byte
DN1B2W 	$085 wlen,byte
DS1B2W 	$086 wlen,byte
EF1B2W 	$086 wlen,byte
EN1B2W 	$087 wlen,byte
FN1B2W 	$088 wlen,byte
FS1B2W 	$089 wlen,byte
GF1B2W 	$089 wlen,byte
GN1B2W 	$08A wlen,byte
GS1B2W 	$08B wlen,byte
AF1B2W 	$08B wlen,byte
AN1B2W 	$08C wlen,byte
AS1B2W 	$08D wlen,byte
BF1B2W 	$08D wlen,byte
BN1B2W 	$08E wlen,byte

CN2B2W	$08F wlen,byte
CS2B2W	$090 wlen,byte
DF2B2W	$090 wlen,byte
DN2B2W	$091 wlen,byte
DS2B2W	$092 wlen,byte
EF2B2W	$092 wlen,byte
EN2B2W	$093 wlen,byte
FN2B2W	$094 wlen,byte
FS2B2W 	$095 wlen,byte
GF2B2W	$095 wlen,byte
GN2B2W	$096 wlen,byte
GS2B2W	$097 wlen,byte
AF2B2W 	$097 wlen,byte
AN2B2W	$098 wlen,byte
AS2B2W	$099 wlen,byte
BF2B2W	$099 wlen,byte
BN2B2W 	$09A wlen,byte

CN3B2W	$09B wlen,byte
CS3B2W 	$09C wlen,byte
DF3B2W	$09C wlen,byte
DN3B2W 	$09D wlen,byte
DS3B2W 	$09E wlen,byte
EF3B2W 	$09E wlen,byte
EN3B2W 	$09F wlen,byte
FN3B2W 	$0A0 wlen,byte
FS3B2W 	$0A1 wlen,byte
GF3B2W 	$0A1 wlen,byte
GN3B2W 	$0A2 wlen,byte
GS3B2W 	$0A3 wlen,byte
AF3B2W 	$0A3 wlen,byte
AN3B2W 	$0A4 wlen,byte
AS3B2W 	$0A5 wlen,byte
BF3B2W 	$0A5 wlen,byte
BN3B2W 	$0A6 wlen,byte

CN4B2W 	$0A7 wlen,byte
CS4B2W 	$0A8 wlen,byte
DF4B2W 	$0A8 wlen,byte
DN4B2W 	$0A9 wlen,byte
DS4B2W 	$0Aa wlen,byte
EF4B2W 	$0Aa wlen,byte
EN4B2W 	$0Ab wlen,byte
FN4B2W 	$0Ac wlen,byte
FS4B2W 	$0Ad wlen,byte
GF4B2W 	$0Ad wlen,byte
GN4B2W 	$0Ae wlen,byte
GS4B2W 	$0Af wlen,byte
AF4B2W 	$0Af wlen,byte
AN4B2W 	$0B0 wlen,byte
AS4B2W 	$0B1 wlen,byte
BF4B2W 	$0B1 wlen,byte
BN4B2W 	$0B2 wlen,byte

CN5B2W 	$0B3 wlen,byte
CS5B2W 	$0B4 wlen,byte
DF5B2W 	$0B4 wlen,byte
DN5B2W 	$0B5 wlen,byte
DS5B2W 	$0B6 wlen,byte
EF5B2W 	$0B6 wlen,byte
EN5B2W 	$0B7 wlen,byte
FN5B2W 	$0B8 wlen,byte
FS5B2W 	$0B9 wlen,byte
GF5B2W 	$0B9 wlen,byte
GN5B2W 	$0Ba wlen,byte
GS5B2W 	$0Bb wlen,byte
AF5B2W 	$0Bb wlen,byte
AN5B2W 	$0Bc wlen,byte
AS5B2W 	$0Bd wlen,byte
BF5B2W 	$0Bd wlen,byte
BN5B2W 	$0BE wlen,byte


;/**** BMode SE ***/

P00B0 	$000 byte,byte,byte 
P00B1   $040 byte,byte

P00B0W 	$000 wlen,byte,byte 
P00B1W  $040 wlen,byte
P01B0W 	$001 wlen,byte,byte 
P01B1W  $041 wlen,byte




;###################################################
;
;	    Control Command Section
;
;###################################################



;----------------------------
;
; Common Commands:$f0-$ff
;
;----------------------------

FIN	 $0ff 
RETURN   $0fe
WAIT     $0fd byte
WAITW    $0fd wlen
CALL     $0fc label
JUMP     $0fb label
JUMP0    $0fa label
JUMPN    $0f9 label
LOOPS    $0f8 byte
LOOPE    $0f7 
LOOPBREAK $0f6
JUMPP    $0f5 label
BRA	 $0f4 rela	;branch always
BR0	 $0f3 rela	;branch zero
BRN	 $0f2 rela	;branch negative
ALLOCVOICE $0f1 byte
DEALLOCVOICE $0f0
DPRINT	 $0ef label,byte	;Label of Message Top. (Must terminate \0)


XXXW     $0c0 wlen
XXX 	 $0c0 byte


;----------------------------
;
; Other  Commands
;
;----------------------------

;----------------------------
;
; GROUP TRACK COMMANDS
;
;----------------------------

CHKSUB   $000 half 
OPENSUB	 $090 half,label

GR_PORTREAD	$80 half
GR_PORTWRITE	$70 half 
GR_PORTSBC	$50 half

TRANSCHG $0df byte
TRANSOFS $0de byte
TEMPOCHG $0dd byte
TEMPOOFS $0dc byte
VOLUMECHG  $0db byte
VOLUMEMODE $0da byte word
GR_EVOLUME $0d9 byte
;	  $0d8		reserve

ALLOCSUB    $0d7 word
DEALLOCSUB  $0d6 word
PAUSEVOLUME $0d5 byte
SELFPAUSE   $0d4
DEFPAUSE    $0d3 byte
VTSET       $0d2 label
GTSET       $0d1 label	
DEFMONOMODE $0d0 byte

GR_LOAD   $cc byte
GR_AND    $c9 byte	
GR_SBC    $c8 byte	



;---------------------------------
;
; SUB TRACK COMMANDS
;
; 0x0n-0xBn : Half Byte Commands
; 0xC0-0xEf : Normal    Commands
;
;---------------------------------
;       PARAMETER RANGE
;---------------------------------
;
;SVolume 0~127   : x0.0 ~ 1.00 volume
;STune   0~65535 : x0.0 ~ 2.00 pitch
;SPan    0~127   : Left <-> Right  
;SPanPow 0~127   : x0.0 ~ 1.00 (shift between Left and Right)
;STrans  -64~+64 : -64  ~ +64  note
;
;Prg     0~127
;Release 0~127	 : x128 release rate / frame
;
;---------------------------------

;################
; New Names
;################

SR_TBLNOPEN     $0B0 half       ;old:[CTBLOPEN]

SR_PORTREAD	$080 half	;old:[CHKMYB]
SR_PORTWRITE	$070 half 	;old:[CPYMYB]
SR_PORTSBC	$050 half	;old:[CMPMYB]

SR_LOAD   $0cc byte		;old:[CLOAD]
SR_EXTBL  $0cb label		;old:[CEXTABLE]
SR_AND    $0c9 byte		;old:[CHKBIT]
SR_SBC    $0c8 byte		;old:[CHKCMP]
SR_STORE  $0c7 byte,label	;old:[CSELFWRITEB]
SR_JPTBL  $0c5			;old:[CTBLJUMP]
SR_CALLTBL $0e4			;old:[CTBLCALL]


SOPENSUB 	$10 half,label		; subtrack,add
SCLOSESUB 	$20 half		;
SR_SUBPORTWRITE $30 half,byte		; subtrack,port
SR_SUBPORTREAD  $40 half,byte		; subtrack,port

;#################
; Olds or Others
;#################

CHKNOTE   $00  half

CMPMYB    $050 half
WAITH     $060 half
CPYMYB    $070 half
CHKMYB    $080 half
OPENNOTE  $090 half,label
CLOSENOTE $0A0 half


PRG         $0c1 byte
TBLSET      $0c2 label
AMODE       $0c3
BMODE       $0c4
CTBLJUMP    $0c5
BANKCHG     $0c6 byte
CSELFWRITEB $0c7 byte,label
CHKCMP     $0c8  byte
CHKBIT     $0c9 byte
PAUSESTATUS $0ca byte
CEXTABLE    $0cb label
CLOAD       $0cc byte


; CTBLOPEN  $020 half
; DTBLOPEN  $030 half,byte

FILGAIN	     $ed  byte		;Filter Gain.
INITPITCH    $ec		;Clear Pitch & Modulation.
BPRG	    $0eb  byte,byte	;Bank and Program     
HALT 	      $0ea
PRIORITY      $0e9 byte
MULTIPARAMSET $0e8 byte,byte,byte,byte,byte,byte,byte,byte 
MULTITABLESET $0e7 label 
NOISEMODE  $0e6 byte		;
FXLINE     $0e5	byte		; 
CTBLCALL   $0e4			;No argument 
VIBDELAY   $0e3 byte
VIBDEPTHMV $0e2 byte,byte,byte	;first,target(*8),time(*16)
VIBPITCHMV $0e1 byte,byte,byte	;first,target(*32),time(*16)
EVOLUME  $0e0 byte
SVOLUME  $0df byte
STUNE    $0de word
SPAN     $0dd byte
SPANPOW  $0dc byte
STRANS   $0db byte
ENVELOPE $0da label
RELEASE  $0d9 byte
VIBDEPTH $0d8 byte
VIBPITCH $0d7 byte
VIBINT   $0d6 byte
FXMIX    $0d4 byte
PITCHBEND $0d3 byte

SREVERB  $0d2 byte
MONOMODE $0d1 byte
PANMODE  $0d0 byte

;-------------------------------------------
;
; NOTE TRACK COMMANDS
;
; 0x00-0xBf : Musical Note Commands
; 0xC0-0xCf : Note-track Control Commands
; 0xDn,0xEn : Half byte Commands
;-------------------------------------------
;
;---------------------------------
;       PARAMETER RANGE
;---------------------------------
;
;Vel	 0~127   : x0.0 ~ 1.00 volume
;NTrans -64~ +64  : -64  ~ +64  note
;
;
;-------------------------------------------


VELO	 $0c1  byte
NTRANS	 $0c2  byte

DEFLEN   $0c3  wlen
TIEON    $0c4
TIEOFF   $0c5
NPRG     $0c6  byte
SWEEPFROM  $0c7 byte comm byte
SWEEP	   $0c7 byte comm byte

SWEEPFROMW $0c7 byte comm wlen
SWEEPW     $0c7 byte comm wlen



SWEEPEND   $0c8

DGATE     $0c9  byte
NPAN	  $0ca  byte
NENV	  $0cb  label,byte	; Data,release
KILLPAN  $0cc
PHASE	  $0cd	byte		; 4bit Packed Data (status+phaseside)

TVELO     $0d0  half
TGATE     $0e0  half


dprintn		$0cf  label,byte
