bluesharp-pitch-detection
Version:
High-accuracy pitch detection algorithms for musical applications
84 lines (82 loc) • 2.38 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Algorithm Comparison - Bluesharp Pitch Detection</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
h1 {
color: #2c3e50;
border-bottom: 2px solid #3498db;
padding-bottom: 10px;
}
.back-link {
display: inline-block;
margin-bottom: 20px;
color: #3498db;
text-decoration: none;
}
.back-link:hover {
text-decoration: underline;
}
#results {
background-color: #f9f9f9;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
min-height: 200px;
max-height: 600px;
overflow-y: auto;
font-family: monospace;
white-space: pre-wrap;
}
button {
background-color: #3498db;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
margin-right: 10px;
}
button:hover {
background-color: #2980b9;
}
.description {
margin-bottom: 20px;
}
</style>
</head>
<body>
<h1>Algorithm Comparison Example</h1>
<a href="index.html" class="back-link">← Back to Examples</a>
<div class="description">
<p>
This example compares different pitch detection algorithms (YIN, MPM, FFT, and Hybrid)
on various test signals to demonstrate their strengths and weaknesses.
</p>
<p>
The comparison includes:
</p>
<ul>
<li>Pure sine wave (440 Hz - A4)</li>
<li>Complex tone with harmonics (261.63 Hz - C4)</li>
<li>Noisy signal (329.63 Hz - E4 with noise)</li>
</ul>
</div>
<script type="module">
// Import the example script
import './algorithm-comparison.js';
</script>
</body>
</html>