mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 15:37:48 +01:00
[Summary] Changing temporal zoom fader to 2**SCALE form
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 465197]
This commit is contained in:
parent
ec6c49d171
commit
39f09bc993
2 changed files with 8 additions and 6 deletions
|
|
@ -1757,12 +1757,14 @@ Editor::temporal_zoom_to_frame (bool coarser, framepos_t frame)
|
|||
void
|
||||
Editor::temporal_zoom_by_slider ()
|
||||
{
|
||||
temporal_zoom (_temporal_zoom_adjustment.get_value());
|
||||
int64_t samples_per_pixel = (int64_t)(pow (2, _temporal_zoom_adjustment.get_value()) + 0.001);
|
||||
temporal_zoom (samples_per_pixel);
|
||||
}
|
||||
|
||||
void
|
||||
Editor::update_temporal_zoom_slider ()
|
||||
{
|
||||
return;
|
||||
double value = samples_per_pixel;
|
||||
|
||||
if ( value < _temporal_zoom_adjustment.get_lower ()) {
|
||||
|
|
|
|||
|
|
@ -124,11 +124,11 @@
|
|||
prelighticon="tool_zoom_prelight"/>
|
||||
<HBox box.pack="end" spacing ="1">
|
||||
<Adjustment id="temporal_zoom_adjustment"
|
||||
minvalue="1"
|
||||
maxvalue="23698286"
|
||||
initialvalue="20"
|
||||
step="20"
|
||||
pageincrement="20"/>
|
||||
minvalue="0"
|
||||
maxvalue="25"
|
||||
initialvalue="4"
|
||||
step="1"
|
||||
pageincrement="1"/>
|
||||
<Adjustment id="vertical_zoom_adjustment"
|
||||
minvalue="1"
|
||||
maxvalue="40"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue