musicbox/index.html

95 lines
2.1 KiB
HTML
Raw Normal View History

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>
2022-11-09 01:10:48 +01:00
.body {
display: flex;
flex-direction: column;
}
button {
width: 150px;
margin: 10px;
}
p {
font-size: small;
margin-top: 0px;
}
2021-01-13 05:24:00 +01:00
textarea {
2022-11-09 01:10:48 +01:00
height: 150px;
flex: 1;
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
2021-01-13 06:39:25 +01:00
}
.sequencers {
2022-11-09 01:10:48 +01:00
display: flex;
flex-direction: column;
}
.sequencer-main {
2021-01-13 06:39:25 +01:00
display: flex;
flex-direction: row;
2022-11-09 01:10:48 +01:00
font-family: monospace;
2021-01-13 06:39:25 +01:00
}
.sequencer {
display: flex;
flex-direction: column;
2022-11-09 01:10:48 +01:00
width: 400px;
2021-01-13 06:39:25 +01:00
}
2022-11-09 01:10:48 +01:00
.sequencer-preview {
flex: 1;
background-color: #d0cfcf;
border-radius: 6px;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
border: none;
margin-bottom: 6px;
padding: 10px;
white-space: pre;
2022-08-24 00:01:05 +02:00
}
2022-11-09 01:10:48 +01:00
.sequencer-preview > p {
margin: 0px;
2022-08-24 00:01:05 +02:00
}
2022-11-09 01:10:48 +01:00
.active {
background-color: #9b9b9b;
text-decoration: underline;
2021-01-13 05:24:00 +01:00
}
</style>
</head>
2022-08-24 00:01:05 +02:00
<div class="body">
<div class='sequencers'>
<div class='sequencer'>
<span>beats</span>
2022-11-09 01:10:48 +01:00
<div class="sequencer-main">
<textarea id='beats'></textarea>
<div class="sequencer-preview" id="beats-preview"></div>
</div>
2022-08-24 00:01:05 +02:00
<p>Each letter corresponds to a different sample. Non-letters are
silent.</p>
</div>
<div class='sequencer'>
<span>piano</span>
2022-11-09 01:10:48 +01:00
<div class="sequencer-main">
<textarea id='piano'></textarea>
<div class="sequencer-preview" id="piano-preview"></div>
</div>
2022-08-24 00:01:05 +02: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>
</div>
2021-01-13 06:39:25 +01:00
</div>
2022-08-24 00:01:05 +02:00
<button id="play">loading...</button>
2022-11-09 01:10:48 +01:00
<span><input type="checkbox" id="sync-sequences">sync rows</span>
2021-01-13 06:39:25 +01:00
</div>
2021-01-13 05:24:00 +01:00
</html>