Skip to content

Commit 5ada5c9

Browse files
committed
cleanup
1 parent 4227472 commit 5ada5c9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

apps/notation_viewer/index.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@
2323
background-color: white;
2424
}
2525
</style>
26-
<script src='https://surikov.github.io/webaudiofont/npm/dist/WebAudioFontPlayer.js'></script>
27-
<script>
28-
var AudioContextFunc = window.AudioContext || window.webkitAudioContext;
29-
var audioContext = new AudioContextFunc();
26+
<script src='https://surikov.github.io/webaudiofont/npm/dist/WebAudioFontPlayer.js'></script>
27+
<script>
28+
var AudioContextFunc = window.AudioContext || window.webkitAudioContext;
29+
var audioContext = new AudioContextFunc();
30+
var player=new WebAudioFontPlayer();
3031
var channels = new Map();
31-
var player=new WebAudioFontPlayer();
3232

33-
function play_note(channel, semitones, seconds, volume){
33+
function play_note(channel, semitones, seconds, volume){
3434
const info = channels.get(channel);
3535
if (info) {
3636
player.queueWaveTable(audioContext, audioContext.destination, window[info.variable], 0, semitones, seconds, volume);
3737
}
38-
}
38+
}
3939

4040
function init_channel(channel, program) {
41-
var nn = player.loader.findInstrument(program);
41+
var nn = player.loader.findInstrument(program);
4242
var info = player.loader.instrumentInfo(nn);
4343
channels.set(channel, info);
4444
console.log('init_channel(', channel, program, ') -> info:', info);
@@ -50,10 +50,10 @@
5050
console.log('load_instruments: finished', channels);
5151
});
5252
}
53-
</script>
53+
</script>
5454
</head>
5555
<script type="module">
5656
import init from './target/wasm.js'
5757
init()
5858
</script>
59-
</html>
59+
</html>

0 commit comments

Comments
 (0)