Browse Source

public library API and first inclusion of Slaughter into wdem-tracker

master
Weird Constructor 4 years ago
parent
commit
40212b18f4
  1. 2
      Cargo.toml
  2. 12
      src/lib.rs
  3. 6
      src/slaughter.rs

2
Cargo.toml

@ -1,5 +1,5 @@
[package]
name = "wave-sickle"
name = "wave_sickle"
version = "0.1.0"
authors = ["Weird Constructor <weirdconstructor@gmail.com>"]
license = "GPL-3.0-or-later"

12
src/lib.rs

@ -0,0 +1,12 @@
mod helpers;
mod parameters;
mod state_variable_filter;
mod envelope;
mod synth_device;
mod sample_player;
mod sample_loader;
mod all_pass;
mod all_pass_delay;
pub mod slaughter;
pub use slaughter::new_slaughter;

6
src/slaughter.rs

@ -27,12 +27,12 @@ use wctr_signal_ops::signals::{OpIn, Op, OpPort, OpIOSpec};
// DemOp trait gets a render() function, that takes a complete array of all
// allocated busses.
struct SlaughterParams {
pub struct SlaughterParams {
}
#[derive(Debug, Clone, Copy)]
struct SlaughterVoice {
pub struct SlaughterVoice {
}
impl Voice<SlaughterParams> for SlaughterVoice {
@ -101,7 +101,7 @@ impl Op for SynthDevice<SlaughterVoice, SlaughterParams> {
}
}
fn new_slaugher(sample_rate: f64) -> SynthDevice<SlaughterVoice, SlaughterParams> {
pub fn new_slaughter(sample_rate: f64) -> SynthDevice<SlaughterVoice, SlaughterParams> {
let params = SlaughterParams { };
let sd : SynthDevice<SlaughterVoice, SlaughterParams> =
SynthDevice::new(sample_rate, params);

Loading…
Cancel
Save