add const PPQ = 96

This commit is contained in:
🪞👃🪞 2024-10-06 02:47:55 +03:00
parent 0da54db5e0
commit 11a66ee415
5 changed files with 28 additions and 20 deletions

View file

@ -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)))
);
}
}