mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 20:56:43 +01:00
wip: remodularize 2
This commit is contained in:
parent
3b6ff81dad
commit
d38dc14e84
27 changed files with 564 additions and 563 deletions
|
|
@ -22,10 +22,10 @@ impl_time_unit!(BeatsPerMinute);
|
|||
impl_time_unit!(LaunchSync);
|
||||
impl LaunchSync {
|
||||
pub fn next (&self) -> f64 {
|
||||
Note::next(self.get() as usize) as f64
|
||||
NoteDuration::next(self.get() as usize) as f64
|
||||
}
|
||||
pub fn prev (&self) -> f64 {
|
||||
Note::prev(self.get() as usize) as f64
|
||||
NoteDuration::prev(self.get() as usize) as f64
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -34,10 +34,10 @@ impl LaunchSync {
|
|||
impl_time_unit!(Quantize);
|
||||
impl Quantize {
|
||||
pub fn next (&self) -> f64 {
|
||||
Note::next(self.get() as usize) as f64
|
||||
NoteDuration::next(self.get() as usize) as f64
|
||||
}
|
||||
pub fn prev (&self) -> f64 {
|
||||
Note::prev(self.get() as usize) as f64
|
||||
NoteDuration::prev(self.get() as usize) as f64
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue