mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-13 07:06:41 +01:00
make the tiny pianos a component
This commit is contained in:
parent
414b5e1580
commit
e2023bdf53
5 changed files with 44 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue