简体   繁体   English

C# 中的机器声音

[英]Machine Sounds in C#

I want add machine sounds to my router table simulator program.我想将机器声音添加到我的路由器表模拟器程序中。 The idea is to hear the stepper motors accelerate and decelerate with a change in pitch synced with my graphics.这个想法是听到步进电机随着与我的图形同步的间距变化而加速和减速。 Same with the spindle motor, it has a pitch change as its rpm goes up and down.与主轴电机相同,它会随着转速的升高和降低而发生螺距变化。 I thought of either adding real recorded motor sounds and modifying the pitch at run time or create synthetic sounds simulating the motors.我想要么添加真实录制的电机声音并在运行时修改音高,要么创建模拟电机的合成声音。 Can anyone suggest the easiest way to achieve this?任何人都可以提出实现这一目标的最简单方法吗? I have hardly any experience in sound programming besides the most basic stuff.除了最基本的东西,我几乎没有任何声音编程经验。 I am programming in C# in Visual Studio.net我在 Visual Studio.net 的 C# 中编程

check these links out:检查这些链接:

http://www.codeproject.com/KB/audio-video/cswavplayfx.aspx http://www.codeproject.com/KB/audio-video/cswavplayfx.aspx
http://channel9.msdn.com/coding4fun/articles/Generating-Sound-Waves-with-C-Wave-Oscillators http://channel9.msdn.com/coding4fun/articles/Generating-Sound-Waves-with-C-Wave-Oscillators

These should give an idea for the options (playing pre-recorded audio with some effects versus generating the sound synthetically) you mentioned, either way...无论哪种方式,这些都应该为您提到的选项(播放具有某些效果的预先录制的音频而不是综合生成声音)提供一个想法……

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

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