wip: sequencer now copies from buffers

This commit is contained in:
🪞👃🪞 2024-07-13 21:57:07 +03:00
parent aa478099d9
commit 2fc8e84551
15 changed files with 310 additions and 256 deletions

View file

@ -33,9 +33,9 @@ pub struct TransportToolbar {
/// JACK transport handle.
transport: Option<Transport>,
/// Quantization factor
pub quant: usize,
pub quant: u16,
/// Global sync quant
pub sync: usize,
pub sync: u16,
/// Current transport state
pub playing: Option<TransportState>,
/// Current position according to transport
@ -56,7 +56,7 @@ impl TransportToolbar {
playing: Some(TransportState::Stopped),
started: None,
quant: 24,
sync: timebase.ppq() as usize * 4,
sync: timebase.ppq() as u16 * 4,
transport,
timebase,
}