UNPKG

bluesharp-pitch-detection

Version:

High-accuracy pitch detection algorithms for musical applications

83 lines (78 loc) 2.28 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Basic Pitch Detection - 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; } 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; } .note { background-color: #e7f5fe; padding: 15px; border-left: 4px solid #3498db; margin: 20px 0; } </style> </head> <body> <h1>Basic Pitch Detection Example</h1> <a href="index.html" class="back-link">← Back to Examples</a> <p> This example demonstrates how to use the YIN pitch detection algorithm to analyze audio data and detect the fundamental frequency (pitch). </p> <div class="note"> <strong>Note:</strong> This example requires microphone access. When prompted, please allow access to your microphone. </div> <div id="results"> <p>Results will appear here after starting pitch detection...</p> </div> <script type="module"> // Import the example script import './basic-pitch-detection.js'; </script> </body> </html>