diff options
Diffstat (limited to 'quantum/audio/voices.c')
| -rw-r--r-- | quantum/audio/voices.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/quantum/audio/voices.c b/quantum/audio/voices.c index 0b4b463c4..de9f8ae54 100644 --- a/quantum/audio/voices.c +++ b/quantum/audio/voices.c | |||
| @@ -6,7 +6,7 @@ extern uint16_t envelope_index; | |||
| 6 | extern float note_timbre; | 6 | extern float note_timbre; |
| 7 | extern float polyphony_rate; | 7 | extern float polyphony_rate; |
| 8 | 8 | ||
| 9 | voice_type voice = duty_osc; | 9 | voice_type voice = default_voice; |
| 10 | 10 | ||
| 11 | void set_voice(voice_type v) { | 11 | void set_voice(voice_type v) { |
| 12 | voice = v; | 12 | voice = v; |
| @@ -99,30 +99,30 @@ float voice_envelope(float frequency) { | |||
| 99 | if ((envelope_index % 8) == 0) | 99 | if ((envelope_index % 8) == 0) |
| 100 | note_timbre = 0; | 100 | note_timbre = 0; |
| 101 | break; | 101 | break; |
| 102 | case duty_fifth_down: | 102 | // case duty_fifth_down: |
| 103 | note_timbre = 0.5; | 103 | // note_timbre = 0.5; |
| 104 | if ((envelope_index % 3) == 0) | 104 | // if ((envelope_index % 3) == 0) |
| 105 | note_timbre = 0.75; | 105 | // note_timbre = 0.75; |
| 106 | break; | 106 | // break; |
| 107 | case duty_fourth_down: | 107 | // case duty_fourth_down: |
| 108 | note_timbre = 0.0; | 108 | // note_timbre = 0.0; |
| 109 | if ((envelope_index % 12) == 0) | 109 | // if ((envelope_index % 12) == 0) |
| 110 | note_timbre = 0.75; | 110 | // note_timbre = 0.75; |
| 111 | if (((envelope_index % 12) % 4) != 1) | 111 | // if (((envelope_index % 12) % 4) != 1) |
| 112 | note_timbre = 0.75; | 112 | // note_timbre = 0.75; |
| 113 | break; | 113 | // break; |
| 114 | case duty_third_down: | 114 | // case duty_third_down: |
| 115 | note_timbre = 0.5; | 115 | // note_timbre = 0.5; |
| 116 | if ((envelope_index % 5) == 0) | 116 | // if ((envelope_index % 5) == 0) |
| 117 | note_timbre = 0.75; | 117 | // note_timbre = 0.75; |
| 118 | break; | 118 | // break; |
| 119 | case duty_fifth_third_down: | 119 | // case duty_fifth_third_down: |
| 120 | note_timbre = 0.5; | 120 | // note_timbre = 0.5; |
| 121 | if ((envelope_index % 5) == 0) | 121 | // if ((envelope_index % 5) == 0) |
| 122 | note_timbre = 0.75; | 122 | // note_timbre = 0.75; |
| 123 | if ((envelope_index % 3) == 0) | 123 | // if ((envelope_index % 3) == 0) |
| 124 | note_timbre = 0.25; | 124 | // note_timbre = 0.25; |
| 125 | break; | 125 | // break; |
| 126 | 126 | ||
| 127 | default: | 127 | default: |
| 128 | break; | 128 | break; |
