我正在使用 Tone JS 發出聲音,我想向我的 Sampler 樂器添加一個過濾器,我從文檔中了解到,我可以通過使用采樣器上的方法并將過濾器作為參數傳遞來實現connect:const filter = new Filter(20000, "highpass").toDestination();this.sampler = new Sampler({ urls: { C1: 'C1.wav' }, baseUrl: "/static/samples/piano/",}) .connect(filter) .toDestination();當聲音播放時,上面沒有應用過濾效果,我不確定為什么?
Tone JS - 過濾器不適用于采樣器
飲歌長嘯
2023-04-20 10:44:23