質問編集履歴
4
文法の修正(oscillator[noteNo].connect(gain[notoNo]);→noteNo)
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,6 +26,12 @@
|
|
26
26
|
|
27
27
|
at OscillatorNode.checkNote(164行目)
|
28
28
|
|
29
|
+
(追記)
|
30
|
+
|
31
|
+
Oscillator[noteNo].connect(gain[notoNo])(64行目)
|
32
|
+
|
33
|
+
notoNoをnoteNoに訂正。
|
34
|
+
|
29
35
|
|
30
36
|
|
31
37
|
```
|
3
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -306,7 +306,7 @@
|
|
306
306
|
|
307
307
|
//接続
|
308
308
|
|
309
|
-
oscillator[noteNo].connect(gain[not
|
309
|
+
oscillator[noteNo].connect(gain[noteNo]);
|
310
310
|
|
311
311
|
gain[noteNo].connect(audioContext.destination);
|
312
312
|
|
2
文法の修正
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -276,13 +276,13 @@
|
|
276
276
|
|
277
277
|
function touchKey(event){
|
278
278
|
|
279
|
-
var not
|
279
|
+
var noteNo = Number(event.target.id.split("_")[1]) + 72;
|
280
280
|
|
281
281
|
event.target.classList.add("yellow");
|
282
282
|
|
283
283
|
//音階をセット
|
284
284
|
|
285
|
-
sound(not
|
285
|
+
sound(noteNo);
|
286
286
|
|
287
287
|
}
|
288
288
|
|
@@ -672,11 +672,11 @@
|
|
672
672
|
|
673
673
|
function showKeyboard(n){
|
674
674
|
|
675
|
-
var not
|
675
|
+
var noteNo,keyText;
|
676
676
|
|
677
677
|
for(var i=0;i<keyboard.length;i++){
|
678
678
|
|
679
|
-
not
|
679
|
+
noteNo = i+minNoteNo;
|
680
680
|
|
681
681
|
if(n == 0){
|
682
682
|
|