WaveSoundBuffer.filters

機能/意味
Filter array
タイプ
WaveSoundBufferクラスのプロパティ (読み出し専用)
説明
 An array (an instance of the Array class) that holds the insertion filter object.
 By registering filter objects in this array, you can apply various effects to the sound in real time during playback.
 Changes to the filter array only take effect when the WaveSoundBuffer.open method is executed. Until then, changes to this array will not be reflected.
例:
var buf = new WaveSoundBuffer(window);
(Omitted)
buf.filters.clear(); // Clear filter array
buf.filters.add(new WaveSoundBuffer.PhaseVocoder()); // Added PhaseVocoder filter
buf.filters[0].time = 0.5; // Double speed playback