mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 13:16:44 +01:00
wip: refactor pt.42 (84e) lotta todo!
This commit is contained in:
parent
bf0e14c252
commit
638298ad32
11 changed files with 536 additions and 335 deletions
|
|
@ -19,16 +19,13 @@ impl<T: ClockApi> Command<T> for ClockCommand {
|
|||
}
|
||||
|
||||
pub trait ClockApi: Send + Sync {
|
||||
/// Current moment in time
|
||||
fn current (&self) -> &Instant;
|
||||
/// Temporal resolution in all units
|
||||
fn timebase (&self) -> &Arc<Timebase>;
|
||||
/// Note quantization factor
|
||||
fn quant (&self) -> &Quantize;
|
||||
fn quant (&self) -> &Quantize;
|
||||
/// Launch quantization factor
|
||||
fn sync (&self) -> &LaunchSync;
|
||||
fn sync (&self) -> &LaunchSync;
|
||||
|
||||
fn timebase (&self) -> &Arc<Timebase> {
|
||||
&self.current().timebase
|
||||
}
|
||||
fn sr (&self) -> &SampleRate {
|
||||
&self.timebase().sr
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue