love it
This commit is contained in:
@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user