Screen: display la ref and temperament

This commit is contained in:
Louis-Joseph Fournier 2016-01-05 22:02:44 +01:00
parent f2dece3b3c
commit 400e109aab
2 changed files with 20 additions and 1 deletions

View file

@ -34,9 +34,11 @@ Item {
id: tuner
property int note: 2
property int octave: 4
property double freq: 440
property double la: 440
property double deviation: 0.12
property bool found: true
property variant temperament_list: ["Weikmeister III", "equal"]
property int temperament_idx: 0
}
TunerScreen {

View file

@ -152,4 +152,21 @@ Item {
index: tuner.octave
}
}
// frequency and temperament
Column {
x: is_portrait ? theme.paddingLarge : meter.x + meter.width / 6
y: is_portrait ? theme.paddingLarge : meter.y + meter.height - theme.fontSizeSmall * 4 - theme.paddingLarge
width: parent.width * 0.4
height: width / 2
Text {
text: tuner.la + " hz"
font.pixelSize: theme.fontSizeSmall
}
Text {
text: tuner.temperament_list[tuner.temperament_idx]
font.pixelSize: theme.fontSizeSmall
}
}
}