Crates.io | audact |
lib.rs | audact |
version | 0.5.1 |
source | src |
created_at | 2017-06-08 14:45:36.021193 |
updated_at | 2020-10-06 19:19:18.401247 |
description | Minimalist synth and sequencing lib |
homepage | https://github.com/shockham/audact |
repository | https://github.com/shockham/audact |
max_upload_size | |
id | 18221 |
size | 50,688 |
Minimalist synth and sequencing lib
Contains:
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);
}