2021-01-13 05:24:00 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
2021-01-13 06:39:25 +01:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>musicbox</title>
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
|
2021-01-13 05:24:00 +01:00
|
|
|
<script src='musicbox.js'></script>
|
|
|
|
<style>
|
|
|
|
textarea {
|
|
|
|
height: 300px;
|
2021-01-13 06:39:25 +01:00
|
|
|
font-family: monospace;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sequencers {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sequencer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
width: 200px;
|
|
|
|
margin: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
font-size: small;
|
2021-01-13 05:24:00 +01:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
2021-01-13 06:39:25 +01:00
|
|
|
<span id='status'>loading samples...</span>
|
|
|
|
<div class='sequencers'>
|
|
|
|
<div class='sequencer'>
|
|
|
|
<span>beats</span>
|
|
|
|
<textarea id='beats'></textarea>
|
|
|
|
<p>Each letter corresponds to a different sample. Non-letters are
|
|
|
|
silent.</p>
|
|
|
|
</div>
|
|
|
|
<div class='sequencer'>
|
|
|
|
<span>piano</span>
|
|
|
|
<textarea id='piano'></textarea>
|
2021-01-13 06:43:48 +01:00
|
|
|
<p>On a QWERTY keyboard, the first 7 letters on each row represent
|
|
|
|
notes C through B, with lower rows representing higher octaves. Capital
|
|
|
|
letters are louder, non-letters are silent.</p>
|
2021-01-13 06:39:25 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-23 23:48:35 +02:00
|
|
|
<button id="play">Play/Stop</button>
|
2021-01-13 05:24:00 +01:00
|
|
|
</html>
|