Commit 19c42185 authored by Pierre Donat-Bouillud's avatar Pierre Donat-Bouillud

Guitar with parameters

parent 2a1e19d2
Pipeline #1030 passed with stage
in 2 minutes and 54 seconds
import("stdfaust.lib");
process = pm.guitar(2, 0.3, 0.8, 1);
length = hslider("length",2,0.2,10,0.1);
pluckPosition = hslider("pluckPosition", 0.3, 0, 1, 0.01);
gain = hslider("gain", 0.8, 0,1, 0.01);
trigger = button("trigger");
process = pm.guitar(length, pluckPosition, gain, trigger);
......@@ -15,8 +15,8 @@ use std::collections::HashSet;
use std::fmt;
use audiograph_parser;
use samplerate;
use faust_effect;
use samplerate;
#[derive(Debug)]
pub enum AudioGraphError {
......
......@@ -10,11 +10,10 @@ extern crate time;
use crossbeam_channel::unbounded;
use portaudio as pa;
use std::thread;
use std::time as rust_time; //To be used for thread::sleep for instance
use time::{PreciseTime};
use time::PreciseTime;
use std::ffi::OsStr;
use std::fs::File;
......
......@@ -117,8 +117,8 @@ impl<T: fmt::Display + AudioEffect + Copy + Hash + Eq> GraphGenerator<T> for Ran
#[cfg(test)]
mod tests {
use super::*;
use rand::{Rng};
use rand::Rng;
#[test]
fn test_graph_gen() {
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment