1
0
Fork 0

re-enable audio and extrakeys

This commit is contained in:
Jack Humbert 2016-12-12 15:39:07 -05:00
parent 0213acbdbe
commit 0edfe55bfe
4 changed files with 27 additions and 5 deletions

View file

@ -18,7 +18,7 @@ void voice_iterate() {
}
void voice_deiterate() {
voice = (voice - 1) % number_of_voices;
voice = (voice - 1 + number_of_voices) % number_of_voices;
}
float voice_envelope(float frequency) {
@ -31,6 +31,27 @@ float voice_envelope(float frequency) {
polyphony_rate = 0;
break;
case something:
polyphony_rate = 0;
switch (compensated_index) {
case 0 ... 9:
note_timbre = TIMBRE_12;
break;
case 10 ... 19:
note_timbre = TIMBRE_25;
break;
case 20 ... 200:
note_timbre = .25 + .125 + pow(((float)compensated_index - 20) / (200 - 20), 2)*.125;
break;
default:
note_timbre = .25;
break;
}
break;
case butts_fader:
polyphony_rate = 0;
switch (compensated_index) {

View file

@ -11,6 +11,7 @@ float voice_envelope(float frequency);
typedef enum {
default_voice,
something,
butts_fader,
octave_crunch,
duty_osc,