From 8bba906bc14f615223f0f9705465d8c74bd81315 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 20 Dec 2018 16:29:48 +0100 Subject: Update readme --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index faee310..6b4d235 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,26 @@ A naive trigger/drum replacer in Rust. +By naive, I mean there no attempt at using anything resembling proper signal processing here. We're simply calculating the average amplitute of the samples as we go along, and when we find a sample with significantly higher amplitude than the average, the trigger strikes. To avoid retrigs we wait until the average has dropped below a certain threshold before allowing triggers to fire again. + +I've tested this by replacing the bass drum on one of the tracks by one of my bands, a technical thrash metal band with fairly fast double bass drums. (I'll put up some samples later.) + +I'll be very happy to hear your experience if you've given it a ride. + +## Usage + + # Replace the kick drum in recorded-kick.wav with the cool-kick.wav + # and store the result in replaced-kick.wav + trriggy --sample cool-kick.wav --output replaced-kick.wav recorded-kick.wav + +Trriggy only handles 16bit wave files for now. + +## Contributing + +The code is a mess, I hope to clean it up and turn it into a library later. This was mostly a test to see what it would take to replace the clicky midi bass drum on our recording with something more juicy. + +If you do want to contribute, I'm always happy to take patches by email or a publicly accessible git branch somewhere. I'm also available as `@harald@hub.volse.no` on the social web (Mastodon/Hubzilla/Diaspora etc.) + ## License Copyright (C) 2018 [Harald Eilertsen](mailto:haraldei@anduin.net) -- cgit v1.2.3