Skip to content

Commit eb6da32

Browse files
authored
Merge pull request #770 from apaleslimghost/patch-1
apply ectocore clock mult/div to actual clock not just output
2 parents 76cc14c + 775d019 commit eb6da32

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

main.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,19 @@ bool __not_in_flash_func(timer_step)() {
7474

7575
bpm_timer_counter++;
7676

77+
#ifdef INCLUDE_ECTOCORE
78+
bool do_splice_trigger = (bpm_timer_counter % (banks[sel_bank_cur]
79+
->sample[sel_sample_cur]
80+
.snd[FILEZERO]
81+
->splice_trigger *
82+
ectocore_clock_out_divisions[ectocore_clock_selected_division] /
83+
8)) == 0;
84+
#else
7785
bool do_splice_trigger = (bpm_timer_counter % (banks[sel_bank_cur]
7886
->sample[sel_sample_cur]
7987
.snd[FILEZERO]
8088
->splice_trigger)) == 0;
89+
#endif
8190

8291
// ectocore clocking
8392
#ifdef INCLUDE_ECTOCORE

0 commit comments

Comments
 (0)