6 releases (breaking)
0.5.1 | Oct 6, 2020 |
---|---|
0.5.0 | Apr 5, 2018 |
0.4.0 | Aug 9, 2017 |
0.3.0 | Jun 28, 2017 |
0.1.0 | Jun 8, 2017 |
#923 in Audio
12KB
171 lines
audact
Minimalist synth and sequencing lib
Contains:
- Simple sine, square, saw and noise waveforms.
- Hard-edge cut-off filters.
- Basic sequencing of a single pattern.
Usage:
extern crate audact;
use audact::notes::std_note_freq;
use audact::system::{Audact, Processing, Wave};
fn main() {
let mut audact = Audact::new(16, 120, 4f32);
let default_processing = Processing::default();
let n_1 = std_note_freq(0);
let n_2 = std_note_freq(2);
audact.channel(
Wave::Sine,
1f32,
default_processing,
vec![
n_1, 0f32, 0f32, 0f32,
n_1, 0f32, 0f32, 0f32,
n_1, 0f32, 0f32, 0f32,
n_1, 0f32, 0f32, 0f32,
],
);
audact.channel(Wave::Square, 1f32, default_processing,
vec![
0f32, 0f32, n_2, 0f32,
0f32, 0f32, n_2, 0f32,
0f32, 0f32, n_2, 0f32,
0f32, 0f32, n_2, 0f32,
],
);
audact.start(1);
}
Dependencies
~2.6–6MB
~104K SLoC