mirror of
https://github.com/9x/sheetmusictrainer.git
synced 2026-09-02 09:34:33 +02:00
reduce note match threshold_ms
This commit is contained in:
@@ -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
6
src/AppConfig.ts
Normal 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;
|
||||||
Reference in New Issue
Block a user