gpt4 book ai didi

f# - 使用 F# 进行声音合成

转载 作者:行者123 更新时间:2023-12-05 01:54:35 25 4
gpt4 key购买 nike

如何使用 mac 在 F# 中生成声音?我的意思是使用不同类型的波(sin、saw 等)及其选项(和弦、包络、基本滤波器等)来构建歌曲

最佳答案

如果您使用的是 Windows,则可以使用 FYampaSynth(GithubNuget)执行此操作。这是一个简短的例子:

use engine = new AudioEngine()
Synth.oscSine 440.0 // A above middle C
>>^ (*) 0.05 // reduce volume
|> Synth
|> engine.AddInput

免责声明:我是图书馆的作者。

关于f# - 使用 F# 进行声音合成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70600724/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com