resident samples (always in ARAM regardless of which music is played)

		SRCN00 (same to SMW original bank) 	
		SRCN01 		.
		SRCN02 		.
		SRCN03 		.
		SRCN04 
		SRCN05 	
		SRCN06 	
		SRCN08 	
		SRCN0B 	
		SRCN0C 	
		SRCN0E 		
		SRCN10 	
		SRCN12 		
		SRCN13 	



		SRCN09 special square wave
		
		These samples are inserted to your ROM when you patch INIT.asm.
		So, you don't have to think of them when you use addmusicM.exe.
			

custom (non-resident) samples 		(contents depend on which PCMset your music uses)

		SRCN20@can be accessed with @9
		SRCN21	can be accessed with @7
		SRCN22	can be accessed with @5
		SRCN23	can be accessed with @14
		SRCN24	can be accessed with @17
		SRCN25	can be accessed only with $F3 command
		SRCN26 
		  .
		  .
		  .
		
		
		
		
		


to use custom "non-resident" samples

	sWW			declare the "PCMset number" this mml uses
	_XX_YY_ZZ..._FF		edit contents of PCMset WW
				FF (end command) is vital 
			
				PCMsetWW uses
				SRCN20 XX in blist.txt
				SRCN21 YY in blist.txt
				SRCN22 ZZ in blist.txt
				  .
				  .
				  .



				Warning:If you use more than 16 brr files in sXX, (N brr files,)
					sXX uses spaces for sXX to s(XX + (N / 16)).
				

	

	PCMset 00,01,02 have already been used by SMW original musics. 
	s00 ... empty
	s01 ... only SMW original Piano(SRCN0A)
	s02 ... SMW original bank
	s03 ... only SMW original SRCN07
	
	If you don't use sXX command in mml, SMW original bank (s02) is used.
	
	
	You can't edit more than one PCMsets in a mml.
	If you edit the same PCMset in more than one mmls, mml that has the highest number has priority.




To make custum brr files

	You can dump brr files from SPC with "split700" 
	(http://d.hatena.ne.jp/GOCHA/20081031/split700)
	
	Open a brr file with hex editer and add two bytes header. 
	(Loop point - Start point : little endian)

	You can know Loop point and Start point with SMWS.




To use custum SE (unique to mml)

	channel #9 to #12 represent custum SE (only when music is played)

			$1DF9 = 2C 	...	#9
			$1DF9 = 2D 	...	#10
			$1DF9 = 2E	...	#11
			$1DF9 = 2F	...	#12
			$1DFC = 60	...	#9
			$1DFC = 61	...	#10
			$1DFC = 62	...	#11
			$1DFC = 63	...	#12 



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; mml-commands added by addmusicM 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

1:ADSR

	$ED $XX $YY		$ED command is for BGM's private use.
				When you use this in a SFX, the SFX affects the BGM's ADSR.
				Instead, you can use following command in a SFX. 
				$F6 $XX $n5 $F6 $YY $n6 (n = channel number of SFX)


	
2:SRCN

	$F3 $XX $YY		

				XX  SRCN
				YY  rough Pitch adjustment

				$ED command is for BGM's private use.
				When you use this in a SFX, the SFX affects the BGM's ADSR.
				Instead, you can use following command in a SFX. 
				$F6 $XX $n4 $F7 $YY $02 $1N (n = channel number of SFX ;N = 2*n)


3:repeat command

	$E6 $XX			compatible with [] loop command

				XX is 00	declare repeat start point
				XX is not 00	declare repeat end point and number of repeat times (repeat XX + 1 times)


4:Yoshi filter On/Off

	$F4 $00			If Yoshi filter is On, channel #5 works only when mario rides on Yoshi. 
				When BGM starts, this filter is formatted to Off.
				(Pay attention to the BGM loop. I advise you to use this command with / command.



5:portamento

	$F4 $02			light portament On/Off
				This command affects all channnels.
				When BGM starts, light portament is formatted to Off.

				Normaly, even if you use q7x command, sound stops two unit times before next note.
				If light portament is turned On, sound stops a unit time before.


	$F4 $01			real portament On/Off
				This command affects single channel.
				When BGM starts, real portament is formatted to Off.
				
				If real portament is turned On, contiguous notes are played without a break.


6:special square wave

	SRCN09 is special square wave whose ratio of peak to trough oscillates.
	This oscillation can be controled by following commands.

	$F4 $04			make ratio of peak to trough 1:1

	$FA $XX			set frequency of oscillation 
				(When BGM starts, formatted to 0.)

			

7:Noise command by 757

	$F8 $XX 		XX set pitch of noise (00`1F)
				With this command, this channel starts to noise mode.
				To turn it off, use @ command or reuse $F8 $XX command.

	
8:echo extended command

	$F4 $03			changes channel echo on/off 

	
	$F5 $XX $XX $XX $XX $XX $XX $XX $XX
				sets echo FIR filter (by gocha)



9:technical command

	$F6 $XX $YY		"YY" to "DSP XX"

	$F7 $XX $YY $YY		"XX" to ARAM $YYYYibig endianj