Skip to content

Commit

Permalink
Test page - in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Jun 27, 2024
1 parent 04d539e commit 2835265
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"grunt-contrib-uglify": "^5.2.2",
"jzz-gui-select": "^1.1.5",
"jzz-input-kbd": "^1.3.3",
"mocha": "^10.5.1",
"jzz-synth-tiny": "^1.4.0",
"mocha": "^10.5.2",
"nyc": "^17.0.0"
},
"repository": {
Expand Down
47 changes: 47 additions & 0 deletions test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<title>JZZ.midi.GM</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="node_modules/jzz/javascript/JZZ.js"></script>
<script src="node_modules/jzz-synth-tiny/javascript/JZZ.synth.Tiny.js"></script>
<script src="node_modules/jzz-gui-select/javascript/JZZ.gui.Select.js"></script>
<script src="node_modules/jzz-input-kbd/javascript/JZZ.input.Kbd.js"></script>
<script src="minified/JZZ.midi.GM.js"></script>
</head>

<body>
<h1>JZZ.midi.GM</h1>
<p>
<label for="midiout">MIDI Out:</label>
<select id="midiout"></select>
<label for="system">System:</label>
<select id="system">
<option value="GM">GM</option>
<option value="GM2">GM2</option>
<option value="GS">GS</option>
<option value="XG">XG</option>
</select>
<label for="msb">Bank MSB:</label>
<select id="msb"></select>
<label for="lsb">Bank LSB:</label>
<select id="lsb"></select>
<label for="program">Program:</label>
<select id="program"></select>
</p>
<p id="piano"></p>

<script><!--
JZZ.synth.Tiny.register('Web Audio');
var midiout = JZZ.gui.SelectMidiOut({ at: 'midiout' });
var piano = JZZ.input.Kbd({at: 'piano'});
piano.connect(midiout);
midiout.select();
--></script>

<p>
<a href=https://jazz-soft.net>https://jazz-soft.net</a>
</p>

</body>
</html>

0 comments on commit 2835265

Please sign in to comment.