サンプル12(ベースを鳴らす)

Playing Bar 1 2 3 4 5 6 7 8
Drum Ptn.Nmb
Root Note
 
 
 


3

4

6

7

8

0

-




 W




 E




 R




 T




 Y




 U




 I




 O




 P




 @

S

D

G

H

J

L

;




 Z




 X




 C




 V




 B




 N




 M




 ,




 .




 /

 
 
 

サンプル11に追加したソース
<body>

<form>
<tr align=center>
<td class=p10>Root Note</td>
<td><select></select></td><td><select></select></td><td><select></select></td>
<td><select></select></td><td><select></select></td><td><select></select></td>
<td><select></select></td><td><select></select></td>
</tr>
</form>

<script><!--

var cbn=0;

function tick(){
	if(playing==2){
		document.forms[0].elements[currbar-1].checked=true;
		currdrptnb=document.forms[1].elements[currbar-1].value;
		if(count==0){
			Jazz.MidiOut(0x81,cbn+36,0);
			cbn=document.forms[2].elements[currbar-1].selectedIndex;
			Jazz.MidiOut(0x91,cbn+36,127);
		}
	}
	if(playing==1){
		currdrptnb=select_drpt.selectedIndex;
	}
	for(j=0;j<6;j++){
		din=drar[currdrptnb][count][j][0];
		dvl=drar[currdrptnb][count][j][1];
		Jazz.MidiOut(0x99,din,dvl);
	}
	count++;
	if(count>=(beat*4)){
		count=0;
		if(playing==2){
			currbar++;
			if(currbar>8)currbar=1;
			currdrptnb=document.forms[1].elements[currbar-1].value;
			select_drpt.selectedIndex=currdrptnb;
			drartoscr();
		}
	}
	
	timeout=setTimeout(tick,interval);
}


var bns=['C','C#','D','D#','E','F','F#','G','G#','A','A#','B','C1','C1#','D1','D1#','E1'];


for(k=0;k<8;k++){
	bx=document.forms[2].elements[k];
	for(var i in bns){
		bx[i]=new Option(bns[i],i,i==k,i==k);
	}
}

--></script>