aboutsummaryrefslogtreecommitdiffstats
path: root/src/sequencer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sequencer.c')
-rw-r--r--src/sequencer.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/sequencer.c b/src/sequencer.c
index d8c5f3f..2ee6b07 100644
--- a/src/sequencer.c
+++ b/src/sequencer.c
@@ -45,7 +45,6 @@ gate_on(void) {
45 irs_set(IRQ_TIMER_3, gate_off); 45 irs_set(IRQ_TIMER_3, gate_off);
46 TIMER_DATA_3 = n_ticks; 46 TIMER_DATA_3 = n_ticks;
47 TIMER_CTRL_3 = TIMER_CTRL_IRQ | TIMER_CTRL_ENABLE | TIMER_CTRL_FREQ_3; 47 TIMER_CTRL_3 = TIMER_CTRL_IRQ | TIMER_CTRL_ENABLE | TIMER_CTRL_FREQ_3;
48 audio_sync_click = true;
49} 48}
50 49
51void 50void
@@ -169,6 +168,12 @@ play_step(void) {
169 case SYNC_OUT_LINK_16: { gate_on(); } break; 168 case SYNC_OUT_LINK_16: { gate_on(); } break;
170 case SYNC_OUT_LINK_8: { if (step_counter % 2 == 0) { gate_on(); } } break; 169 case SYNC_OUT_LINK_8: { if (step_counter % 2 == 0) { gate_on(); } } break;
171 case SYNC_OUT_LINK_4: { if (step_counter % 4 == 0) { gate_on(); } } break; 170 case SYNC_OUT_LINK_4: { if (step_counter % 4 == 0) { gate_on(); } } break;
171 case SYNC_OUT_AUDIO_16: { audio_sync_click = true; } break;
172 case SYNC_OUT_AUDIO_8: { if (step_counter % 2 == 0) { audio_sync_click = true; } } break;
173 case SYNC_OUT_AUDIO_4: { if (step_counter % 4 == 0) { audio_sync_click = true; } } break;
174 case SYNC_OUT_LINK_AUDIO_16: { gate_on(); audio_sync_click = true; } break;
175 case SYNC_OUT_LINK_AUDIO_8: { if (step_counter % 2 == 0) { gate_on(); audio_sync_click = true; } } break;
176 case SYNC_OUT_LINK_AUDIO_4: { if (step_counter % 4 == 0) { gate_on(); audio_sync_click = true; } } break;
172 default: break; 177 default: break;
173 } 178 }
174 step_counter = (step_counter + 1) % 16; 179 step_counter = (step_counter + 1) % 16;
@@ -1033,9 +1038,6 @@ sequencer_init(void) {
1033 1038
1034 // Initialize sound system. 1039 // Initialize sound system.
1035 SOUND_STATUS = SOUND_ENABLE; 1040 SOUND_STATUS = SOUND_ENABLE;
1036 SOUND_DMG_MASTER = sound_volume(SOUND_SQUARE1
1037 | SOUND_SQUARE2
1038 | SOUND_WAVE
1039 | SOUND_NOISE, 3);
1040 init_dsound(); 1041 init_dsound();
1042 set_audio_settings();
1041} 1043}