Break down forth implementation properly
This commit is contained in:
@@ -181,14 +181,14 @@ fn empty_local_cycle() {
|
||||
|
||||
#[test]
|
||||
fn echo_creates_decaying_subdivisions() {
|
||||
// stepdur = 0.125, echo 3
|
||||
// d1 + d1/2 + d1/4 = d1 * 1.75 = 0.125
|
||||
// d1 = 0.125 / 1.75 = 0.0714285714...
|
||||
// default dur = 0.5, echo 3
|
||||
// d1 + d1/2 + d1/4 = d1 * 1.75 = 0.5
|
||||
// d1 = 0.5 / 1.75
|
||||
let outputs = expect_outputs(r#""kick" s 3 echo each"#, 3);
|
||||
let durs = get_durs(&outputs);
|
||||
let deltas = get_deltas(&outputs);
|
||||
|
||||
let d1 = 0.125 / 1.75;
|
||||
let d1 = 0.5 / 1.75;
|
||||
let d2 = d1 / 2.0;
|
||||
let d3 = d1 / 4.0;
|
||||
|
||||
@@ -220,14 +220,14 @@ fn echo_error_zero_count() {
|
||||
|
||||
#[test]
|
||||
fn necho_creates_growing_subdivisions() {
|
||||
// stepdur = 0.125, necho 3
|
||||
// d1 + 2*d1 + 4*d1 = d1 * 7 = 0.125
|
||||
// d1 = 0.125 / 7
|
||||
// default dur = 0.5, necho 3
|
||||
// d1 + 2*d1 + 4*d1 = d1 * 7 = 0.5
|
||||
// d1 = 0.5 / 7
|
||||
let outputs = expect_outputs(r#""kick" s 3 necho each"#, 3);
|
||||
let durs = get_durs(&outputs);
|
||||
let deltas = get_deltas(&outputs);
|
||||
|
||||
let d1 = 0.125 / 7.0;
|
||||
let d1 = 0.5 / 7.0;
|
||||
let d2 = d1 * 2.0;
|
||||
let d3 = d1 * 4.0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user