summaryrefslogtreecommitdiff
path: root/src/tom.rs
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2020-03-11 08:04:30 -0500
committerTom Barrett <tom@tombarrett.xyz>2020-03-11 08:04:30 -0500
commit66825cfceb599a854d41a9f05ed165213e17ead3 (patch)
treeaa7b0de1eebe7ecc3283b9b6b1f01175f72512b0 /src/tom.rs
parent0e447ca05ff0c0fe91ec9a9a9091940680f967ba (diff)
reverses waveform and appends iterator directly
Diffstat (limited to 'src/tom.rs')
-rw-r--r--src/tom.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tom.rs b/src/tom.rs
index 8a55f44..d8c8c24 100644
--- a/src/tom.rs
+++ b/src/tom.rs
@@ -141,6 +141,8 @@ impl Tom {
});
}
+ self.wave.reverse();
+
self.last_x += constants::SAMPLE_RATE / 60;
}
}