1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*!
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:
```no_run
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);
}
```
*/
extern crate rand;
extern crate rodio;
extern crate derive_builder;
/// Module containing note frequencies
/// Module for the main audact system