14

支持wav的as3数字音频处理代码库:StandingWave

类别: Flash\Ria鼠标炸弹 @ 2009.07.14 17:25 已阅2,252次
标签: , , , ,

StandingWave is an AS3 code library designed for high level control of Flash Player 10′s SampleDataEvent API for streaming audio output. It is based on a subset of the audio engine used by the Noteflight Score Editor.

The goal of StandingWave is to encapsulate the following kinds of objects, permitting them to be easily chained together and combined to produce complex, dynamic audio output:

  • audio sources (MP3 or WAV files, algorithmic sound generators…)
  • audio filters (echo, envelope shaping, equalization…)
  • timed sequences of audio sources, which may be hierarchically composed

For example, the following code snippet plays a synthesized sine wave with a calculated amplitude envelope:

   var source:IAudioSource = new SineSource(new AudioDescriptor(), duration, freq);
   source = new EnvelopeFilter(source, attack, decay, sustain, hold, release);
   new AudioPlayer().play(source);

There are no fundamental musical concepts embodied in StandingWave, but it may be straightforwardly extended with such, for instance by reading MIDI files or by writing utility classes to manage tones, scales, instruments, and so forth.

Mark一下: http://code.google.com/p/standingwave/

本文对您有用吗? 何不留下评论继续交流, 或者在您的博客上引用本文继续探讨.
您可以订阅读者对本文的回应或者订阅本博客以在您的阅读器中自动获取更新.

本文居然还有同伙!有兴趣不?

还没有任何评论,何不对本文发表一下看法?