音高顺利改变.wav [英] Pitch change a .wav smoothly

查看:79
本文介绍了音高顺利改变.wav的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个博物馆的任务,提供喷气发动机模拟。部分原因需要声音。我已经完成了涡轮机的速度,但是希望能够从这些数据中产生适当的涡轮机呜呜声,它随着RPM的变化而平稳变化。



我看起来像一个BASS和其他几个图书馆,但很难理解它们(一个时代的东西)任何帮助,建议或指示都会非常感激。

非常感谢提前


Al

I have a task for a museum to provide a jet engine simulation. Part of this requires sound. I've done the turbine speeds but would like to be able to produce, from this data the appropriate turbine 'whine' which varies smoothly with the change in RPM.

I've looked a BASS and a couple of other libraries but have difficulty in understanding them (an age thing) Any help, advice or pointers would be most gratefully received.
Many thanks in advance

Al

推荐答案

如果你只想尝试不同的声音,频率和变换,那就不难了做;有很多不同的方法可以做到这一点。例如,你可以从这里开始:

http://blogs.msdn.com/b/dawate/archive/2009/06/22/intro-to-audio-programming-part- 1-how-audio-data-is-represent.aspx [ ^ ],

合成样本可以是在这里找到: http://blogs.msdn.com/b/dawate/archive/2009/06/24/intro-to-audio-programming-part-3-synthesizing-simple-wave-audio-using -c.aspx [ ^ ]。



一些rudime ntary方法将使用带有频率和持续时间参数的 System.Console.Beep http://msdn.microsoft.com/en-us/library/4fe3hdb1%28v=vs.110%29.aspx [ ^ ]。



这真的很简陋;它不允许你控制幅度和相位。



其他方法可能是通过P / Invoke使用Windows Waveform Audio API:

http:// msdn .microsoft.com / zh-CN / library / windows / desktop / dd757715%28v = vs.85%29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/windows/ desktop / dd743833(v = vs.85).aspx [ ^ ],

http://en.wikipedia.org/wiki/Platform_Invocation_Services [ ^ ],

http://msdn.microsoft.com/en-us/library/ms235282.aspx [ ^ ]。



不同级别的另一种方法是使用DirectSound。使用.NET,可以使用程序集 Microsoft.DirectX.DirectSound

http://msdn.microsoft.com/en-us/library/windows/desktop/bb318770%28v= vs.85%29.aspx [ ^ ]。



-SA
If you just want to experiment with different sounds, frequency and transformations, it's not so hard to do; there are many different ways to do it. For example, you can start here:
http://blogs.msdn.com/b/dawate/archive/2009/06/22/intro-to-audio-programming-part-1-how-audio-data-is-represented.aspx[^],
synthesis sample can be found here: http://blogs.msdn.com/b/dawate/archive/2009/06/24/intro-to-audio-programming-part-3-synthesizing-simple-wave-audio-using-c.aspx[^].

Some rudimentary approach would be using System.Console.Beep with frequency and duration parameters: http://msdn.microsoft.com/en-us/library/4fe3hdb1%28v=vs.110%29.aspx[^].

It is really rudimentary; it won't allow you to control amplitude and phase.

Other approaches could be using Windows Waveform Audio API through P/Invoke:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd757715%28v=vs.85%29.aspx[^],
http://msdn.microsoft.com/en-us/library/windows/desktop/dd743833(v=vs.85).aspx[^],
http://en.wikipedia.org/wiki/Platform_Invocation_Services[^],
http://msdn.microsoft.com/en-us/library/ms235282.aspx[^].

Another approach on a different level would be using DirectSound. With .NET, it can be done with the assembly Microsoft.DirectX.DirectSound:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb318770%28v=vs.85%29.aspx[^].

—SA

这篇关于音高顺利改变.wav的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆