make the tiny pianos a component

This commit is contained in:
🪞👃🪞 2025-01-26 10:22:16 +01:00
parent 414b5e1580
commit e2023bdf53
5 changed files with 44 additions and 3 deletions

View file

@ -18,7 +18,7 @@ pub struct PianoHorizontal {
impl PianoHorizontal {
pub fn new (clip: Option<&Arc<RwLock<MidiClip>>>) -> Self {
let size = Measure::new();
let mut range = MidiRangeModel::from((24, true));
let mut range = MidiRangeModel::from((12, true));
range.time_axis = size.x.clone();
range.note_axis = size.y.clone();
let piano = Self {