extern crate std;
use audio_visualizer::waveform::staticc::png_file::waveform_static_png_visualize;
use lowpass_filter::simple::sp::apply_lpf_i16_sp;
use audio_visualizer::{Channels, ChannelInterleavement};
fn main() {
let audio_data_lrlr = [0_i16, 1, -5, 1551, 141, 24];
let (mut left, mut right) = Channels::Stereo(ChannelInterleavement::LRLR)
.stereo_interleavement()
.to_channel_data(&audio_data_lrlr);
apply_lpf_i16_sp(&mut left, 44100, 120);
apply_lpf_i16_sp(&mut right, 44100, 120);
waveform_static_png_visualize(
&left,
Channels::Mono,
"test/out",
"example_waveform_lowpassed_left.png",
);
waveform_static_png_visualize(
&right,
Channels::Mono,
"test/out",
"example_waveform_lowpassed_right.png",
);
}