添加音调升降调节

This commit is contained in:
lyswhut
2023-05-31 21:40:25 +08:00
parent 677c3f16e4
commit 40997c34ff
21 changed files with 1435 additions and 20 deletions
@@ -10,6 +10,7 @@ import {
stopPanner,
setConvolverMainGain,
setConvolverSendGain,
setPitchShifter,
} from '@renderer/plugins/player'
import { appSetting } from '@renderer/store/setting'
@@ -66,6 +67,9 @@ export default () => {
setConvolver(buffer, appSetting['player.soundEffect.convolution.mainGain'] / 10, appSetting['player.soundEffect.convolution.sendGain'] / 10)
})
}
if (appSetting['player.soundEffect.pitchShifter.playbackRate'] != 1) {
setPitchShifter(appSetting['player.soundEffect.pitchShifter.playbackRate'])
}
watch(() => appSetting['player.soundEffect.panner.enable'], (enable) => {
@@ -139,6 +143,10 @@ export default () => {
bfs.get('hz16000')!.gain.value = hz16000
})
watch(() => appSetting['player.soundEffect.pitchShifter.playbackRate'], (playbackRate) => {
setPitchShifter(playbackRate)
})
// window.key_event.on(HOTKEY_PLAYER.volume_up.action, hotkeyVolumeUp)
// window.key_event.on(HOTKEY_PLAYER.volume_down.action, hotkeyVolumeDown)