2023-03-29 02:16:08 +09:00
|
|
|
|
<html>
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<title>好和弦的鋼琴鍵盤顯示器</title>
|
|
|
|
|
<link rel="stylesheet" href="style.css">
|
|
|
|
|
<script src="p5.min.js"></script>
|
2023-03-30 20:11:36 +09:00
|
|
|
|
<script src="tonal.min.js"></script>
|
|
|
|
|
|
2023-03-29 02:16:08 +09:00
|
|
|
|
<script src="webmidi.js"></script>
|
|
|
|
|
<script src="globals.js"></script>
|
|
|
|
|
<script src="piano-visualizer.js"></script>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<div id="main">
|
|
|
|
|
<div id="controls" class="center">
|
|
|
|
|
<div>
|
|
|
|
|
<h3>鋼琴鍵盤顯示器 by NiceChord</h3>
|
2023-04-01 02:35:21 +09:00
|
|
|
|
<div style="display: flex; justify-content: space-around;">
|
|
|
|
|
<div>
|
|
|
|
|
<h5>選擇 MIDI 裝置</h5>
|
|
|
|
|
<input id="slider" type="range" min="0" max="0" value="0">
|
|
|
|
|
<div id="device">Select Input: </div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: flex; flex-direction: column; justify-content: center; align-items: start;">
|
|
|
|
|
<div>
|
|
|
|
|
<label for="colorpicker">選擇顏色</label>
|
|
|
|
|
<input type="color" id="colorpicker" value="#ff0090" oninput="changeColor()">
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: flex; align-items: center;">
|
|
|
|
|
<span style="margin-right: 5px;">彩虹模式</span>
|
|
|
|
|
<input type="checkbox" id="rainbow-mode-checkbox" onclick="toggleRainbowMode(this)">
|
2023-04-05 15:40:27 +09:00
|
|
|
|
<label for="rainbow-mode-checkbox" class="custom-checkbox">
|
|
|
|
|
<span class="switch-txt" turnOn="On" turnOff="Off"></span>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: flex; align-items: center;">
|
|
|
|
|
<span style="margin-right: 5px;">力度模式</span>
|
|
|
|
|
<input type="checkbox" id="velocity-mode-checkbox" onclick="toggleVelocityMode(this)">
|
|
|
|
|
<label for="velocity-mode-checkbox" class="custom-checkbox">
|
2023-04-01 02:35:21 +09:00
|
|
|
|
<span class="switch-txt" turnOn="On" turnOff="Off"></span>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-03-29 02:16:08 +09:00
|
|
|
|
</div>
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="center">
|
|
|
|
|
|
|
|
|
|
<div id="piano-visualizer">
|
|
|
|
|
<!-- Our sketch will go here! -->
|
|
|
|
|
</div>
|
|
|
|
|
<span style="font-size: 11px;">
|
2023-03-30 01:48:51 +09:00
|
|
|
|
TIME:使用時間 | NOTE COUNT:總彈奏音符數 | NPS:最近一秒鐘彈奏音符數(括號為歷史最大值) | LEGATO:圓滑指數(最近一秒鐘平均來說有幾個鍵被同時按住) <br />
|
2023-03-30 20:21:44 +09:00
|
|
|
|
CALORIES:消耗熱量(估計值,好玩就好)| PEDALS:左右踏板深度顯示 <br />
|
2023-03-29 02:16:08 +09:00
|
|
|
|
(密技:點鍵盤最左上角的角落,可以儲存截圖) <br /><br />
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
2023-03-30 20:11:36 +09:00
|
|
|
|
覺得好用嗎?到 <a href="https://nicechord.com">NiceChord.com</a> 逛逛支持我!原始碼在 <a href="https://github.com/wiwikuan/pianometer">GitHub</a>。
|
2023-03-29 02:16:08 +09:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|