Skip to content

Commit

Permalink
removes extra voices, updates .hex files
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Apr 29, 2016
1 parent 2bbf3d5 commit 66e0323
Show file tree
Hide file tree
Showing 7 changed files with 6,370 additions and 6,393 deletions.
2 changes: 1 addition & 1 deletion keyboard/planck/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ void play_goodbye_tone()
}

uint8_t starting_note = 0x0C;
int offset = 7;
int offset = 0;

void process_action_user(keyrecord_t *record) {

Expand Down
3,159 changes: 1,588 additions & 1,571 deletions keyboard/planck/planck_pcb_r4.hex

Large diffs are not rendered by default.

3,159 changes: 1,588 additions & 1,571 deletions keyboard/planck/planck_pcb_r4_w_bootloader.hex

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion keyboard/preonic/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ void matrix_init_user(void) {
#ifdef AUDIO_ENABLE

uint8_t starting_note = 0x0C;
int offset = 7;
int offset = 0;

void process_action_user(keyrecord_t *record) {

Expand Down
3,328 changes: 1,627 additions & 1,701 deletions keyboard/preonic/preonic_pcb_r1.hex

Large diffs are not rendered by default.

3,071 changes: 1,544 additions & 1,527 deletions keyboard/preonic/preonic_pcb_r1_w_bootloader.hex

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions quantum/audio/voices.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,28 @@ float voice_envelope(float frequency) {
}
break;

case octave_crunch:
polyphony_rate = 0;
switch (compensated_index) {
case 0 ... 9:
case 20 ... 24:
case 30 ... 32:
frequency = frequency / 2;
note_timbre = TIMBRE_12;
break;

case 10 ... 19:
case 25 ... 29:
case 33 ... 35:
frequency = frequency * 2;
note_timbre = TIMBRE_12;
break;
// case octave_crunch:
// polyphony_rate = 0;
// switch (compensated_index) {
// case 0 ... 9:
// case 20 ... 24:
// case 30 ... 32:
// frequency = frequency / 2;
// note_timbre = TIMBRE_12;
// break;

// case 10 ... 19:
// case 25 ... 29:
// case 33 ... 35:
// frequency = frequency * 2;
// note_timbre = TIMBRE_12;
// break;

default:
note_timbre = TIMBRE_12;
break;
}
break;
// default:
// note_timbre = TIMBRE_12;
// break;
// }
// break;

case duty_osc:
// This slows the loop down a substantial amount, so higher notes may freeze
Expand Down

0 comments on commit 66e0323

Please sign in to comment.