sequencer sidebar

This commit is contained in:
🪞👃🪞 2024-08-18 23:06:11 +03:00
parent 52e9613d52
commit 72afc45f5e
6 changed files with 38 additions and 25 deletions

View file

@ -41,7 +41,7 @@ pub fn track_name_max_len (tracks: &[Sequencer]) -> usize {
pub fn track_clip_name_lengths (tracks: &[Sequencer]) -> Vec<(usize, usize)> {
let mut total = 0;
let mut lengths: Vec<(usize, usize)> = tracks.iter().map(|track|{
let len = 2 + track.phrases
let len = 4 + track.phrases
.iter()
.fold(track.name.len(), |len, phrase|{
len.max(phrase.read().unwrap().name.len())