Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pierre Donat-Bouillud
audio-adaptive-scheduling
Commits
19c42185
Commit
19c42185
authored
Jun 17, 2019
by
Pierre Donat-Bouillud
Browse files
Guitar with parameters
parent
2a1e19d2
Pipeline
#1030
passed with stage
in 2 minutes and 54 seconds
Changes
5
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
faust-effects/guitar.dsp
View file @
19c42185
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);
src/audiograph.rs
View file @
19c42185
...
...
@@ -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
{
...
...
src/audiograph_exec.rs
View file @
19c42185
...
...
@@ -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
;
...
...
src/experiments.rs
View file @
19c42185
...
...
@@ -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
()
{
...
...
src/faust_effect.rs
View file @
19c42185
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment