简体   繁体   English

和弦作为同步声音

[英]Playing chords as simultaneous sounds

I want to build a musical Ear Training program. 我想建立一个音乐性的“耳朵训练”程序。 I have samples of piano notes on mp3 or wav files, and i want to play them simultaneously to build musical chords. 我在mp3或wav文件中有钢琴音符样本,并且我想同时播放它们以建立和弦。

What will be the easiest or the most successful way of playing sounds together? 一起播放声音的最简单或最成功的方法是什么?

Thanks :-) 谢谢 :-)

For this kind of things you could call the SDL_mixer library. 对于这种事情,您可以调用SDL_mixer库。 It's not C#, but here you can see it interfaced by C# in a gaming library. 它不是C#,但在这里您可以在游戏库中看到它与C#的接口。

You can have multiple channels, each one playing a different sound. 您可以有多个通道,每个通道播放不同的声音。

这个问题对流行的C#音频库,并指他们的单证如何实现同步播放(如BASS.NETn音讯等)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM