fix sequence frequency stuff to allow for rest notes
This commit is contained in:
parent
a1767420f2
commit
88d07fa69d
2 changed files with 8 additions and 9 deletions
|
|
@ -152,7 +152,7 @@ pub mod sequencer {
|
|||
}
|
||||
|
||||
pub fn need_service(&self) -> bool {
|
||||
self.ticks_remaining == 0
|
||||
self.enabled && self.ticks_remaining == 0
|
||||
}
|
||||
|
||||
pub fn service(&mut self) -> Option<u16> {
|
||||
|
|
@ -348,6 +348,8 @@ impl App {
|
|||
|
||||
self.services.synth0.set_freq(1);
|
||||
self.services.synth0.disable();
|
||||
|
||||
self.services.sequencer.disable();
|
||||
}
|
||||
|
||||
pub fn set_state(&mut self, state: State) {
|
||||
|
|
@ -446,6 +448,7 @@ impl App {
|
|||
if out == 0 {
|
||||
self.services.synth0.disable();
|
||||
} else {
|
||||
self.services.synth0.enable();
|
||||
self.services.synth0.set_freq(out.into());
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue