This commit is contained in:
2025-09-30 21:19:43 +02:00
parent d867f12fcd
commit 21c983b41e
7 changed files with 339 additions and 31 deletions

View File

@ -45,6 +45,7 @@ function App() {
playbackManagerRef.current.stop()
playbackManagerRef.current.setEffects(effectValues)
playbackManagerRef.current.setPitch(engineValues.pitch ?? 1)
const success = playbackManagerRef.current.play(formula, sampleRate, duration)
@ -112,6 +113,10 @@ function App() {
if (parameterId === 'masterVolume' && playbackManagerRef.current) {
playbackManagerRef.current.setEffects(effectValues)
}
if (parameterId === 'pitch' && playbackManagerRef.current) {
playbackManagerRef.current.setPitch(value)
}
}
const handleEffectChange = (parameterId: string, value: number | boolean) => {