gpt4 book ai didi

c++ - 将 MIDI 事件发送到独立采样器/合成器

转载 作者:行者123 更新时间:2023-11-28 01:09:01 25 4
gpt4 key购买 nike

我想开发一个非常简单的程序来将 PC 键盘映射到钢琴键盘:每次用户按下一个键时,都会生成一个 MIDI 事件,并且一个独立的采样器/合成器(例如 SFZ+ 或其他)接收这些事件并播放声音。

我能够生成 MIDI 事件(使用 midiOutShortMsg),但它们会直接发送到 FM 合成器(并由它播放),我想将它们发送到外部软件 .代码必须使用 C/C++。

你能帮帮我吗?

谢谢。

最佳答案

你应该看看JACK

JACK is system for handling real-time, low latency audio (and MIDI). It runs on GNU/Linux, Solaris, FreeBSD, OS X and Windows (and can be ported to other POSIX-conformant platforms). It can connect a number of different applications to an audio device, as well as allowing them to share audio between themselves. Its clients can run in their own processes (ie. as normal applications), or can they can run within the JACK server (ie. as a "plugin"). JACK also has support for distributing audio processing across a network, both fast & reliable LANs as well as slower, less reliable WANs.

JACK was designed from the ground up for professional audio work, and its design focuses on two key areas: synchronous execution of all clients, and low latency operation. More background information is available.

可作为源代码或二进制文件使用 here .

关于c++ - 将 MIDI 事件发送到独立采样器/合成器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4490301/

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