mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
add const PPQ = 96
This commit is contained in:
parent
0da54db5e0
commit
11a66ee415
5 changed files with 28 additions and 20 deletions
|
|
@ -10,9 +10,6 @@ pub struct ArrangerCli {
|
|||
/// Name of JACK client
|
||||
#[arg(short, long)]
|
||||
name: Option<String>,
|
||||
/// Pulses per quarter note (arruencer resolution; default: 96)
|
||||
#[arg(short, long)]
|
||||
ppq: Option<usize>,
|
||||
/// Whether to include a transport toolbar (default: true)
|
||||
#[arg(short, long, default_value_t = true)]
|
||||
transport: bool,
|
||||
|
|
@ -40,7 +37,7 @@ impl ArrangerCli {
|
|||
let track = arranger.track_add(None)?;
|
||||
for _ in 0..self.scenes {
|
||||
track.phrases.push(
|
||||
Arc::new(RwLock::new(Phrase::new("", 96 * 4, None)))
|
||||
Arc::new(RwLock::new(Phrase::new("", true, PPQ * 4, None)))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue