From b1900c8dde2a68e87aaabd84280a99bf6658ea9f Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Fri, 22 Apr 2016 01:02:50 -0400 Subject: adds fifth and fourth down voices --- quantum/audio/voices.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'quantum/audio/voices.c') diff --git a/quantum/audio/voices.c b/quantum/audio/voices.c index 98631f0cb..8b3978f3d 100644 --- a/quantum/audio/voices.c +++ b/quantum/audio/voices.c @@ -84,6 +84,21 @@ float voice_envelope(float frequency) { case duty_octave_down: polyphony_rate = 0; note_timbre = (envelope_index % 2) * .125 + .375 * 2; + if ((envelope_index % 4) == 0) + note_timbre = 0.5; + if ((envelope_index % 8) == 0) + note_timbre = 0; + break; + case duty_fifth_down: + note_timbre = 0.5; + if ((envelope_index % 5) == 0) + note_timbre = 0.75; + break; + case duty_fourth_down: + if ((envelope_index % 12) == 0) + note_timbre = 0.25; + else + note_timbre = 0.5; break; } -- cgit v1.2.3-24-g4f1b