mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 20:26:42 +01:00
wip: refactor pt.36 (10e) fewer structs, more field duplication
This commit is contained in:
parent
7af5bbd02b
commit
92bcd19925
11 changed files with 136 additions and 65 deletions
|
|
@ -129,8 +129,16 @@ impl Command<TransportApp<Tui>> for TransportCommand {
|
|||
pub struct TransportView<E: Engine> {
|
||||
_engine: PhantomData<E>,
|
||||
jack: Arc<RwLock<JackClient>>,
|
||||
/// Current sample rate, tempo, and PPQ.
|
||||
clock: Arc<Clock>,
|
||||
/// Playback state
|
||||
playing: RwLock<Option<TransportState>>,
|
||||
/// Global sample and usec at which playback started
|
||||
started: RwLock<Option<(usize, usize)>>,
|
||||
/// Current moment in time
|
||||
current: Instant,
|
||||
/// Note quantization factor
|
||||
quant: Quantize,
|
||||
/// Launch quantization factor
|
||||
sync: LaunchSync,
|
||||
/// JACK transport handle.
|
||||
transport: jack::Transport,
|
||||
/// Enable metronome?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue