https://github.com/shockham/audact
Minimalist synth and sequencing lib
https://github.com/shockham/audact
chiptune rust-lang rust-library synth
Last synced: 3 months ago
JSON representation
Minimalist synth and sequencing lib
- Host: GitHub
- URL: https://github.com/shockham/audact
- Owner: shockham
- Created: 2017-06-05T19:29:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-08T18:40:07.000Z (over 4 years ago)
- Last Synced: 2025-03-24T15:01:58.110Z (3 months ago)
- Topics: chiptune, rust-lang, rust-library, synth
- Language: Rust
- Homepage:
- Size: 80.1 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# audact
[](https://crates.io/crates/audact)
[](https://travis-ci.org/shockham/audact)
[](https://docs.rs/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:
```rust
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);
}
```