reduce note match threshold_ms

This commit is contained in:
2025-12-30 22:39:19 +01:00
parent fe5442eda0
commit 0373a7c516
2 changed files with 10 additions and 1 deletions

View File

@@ -28,7 +28,10 @@ import { Mic, MicOff, SkipForward, HelpCircle, Volume2, X, Guitar, Settings, Max
import './App.css'; import './App.css';
import './styles/skip-button.css'; import './styles/skip-button.css';
const NOTE_MATCH_THRESHOLD_MS = 300; // How long to convert hold note to confirm import { NOTE_MATCH_THRESHOLD_MS } from './AppConfig';
function App() { function App() {
const [listening, setListening] = useState(false); const [listening, setListening] = useState(false);

6
src/AppConfig.ts Normal file
View File

@@ -0,0 +1,6 @@
/**
* Global application configuration
*/
// How long (in ms) a note must be held to be accepted as correct
export const NOTE_MATCH_THRESHOLD_MS = 50;