mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
add support for beats/2 quantization in dialog
git-svn-id: svn://localhost/ardour2/branches/3.0@7832 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ded4a143db
commit
468d39ba81
1 changed files with 3 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ static const gchar *_grid_strings[] = {
|
||||||
N_("Beats/8"),
|
N_("Beats/8"),
|
||||||
N_("Beats/4"),
|
N_("Beats/4"),
|
||||||
N_("Beats/3"),
|
N_("Beats/3"),
|
||||||
|
N_("Beats/2"),
|
||||||
N_("Beats"),
|
N_("Beats"),
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
@ -197,6 +198,8 @@ QuantizeDialog::grid_size_to_musical_time (const string& txt) const
|
||||||
return 1.0/4.0;
|
return 1.0/4.0;
|
||||||
} else if (txt == _("Beats/3")) {
|
} else if (txt == _("Beats/3")) {
|
||||||
return 1.0/3.0;
|
return 1.0/3.0;
|
||||||
|
} else if (txt == _("Beats/2")) {
|
||||||
|
return 1.0/2.0;
|
||||||
} else if (txt == _("Beats")) {
|
} else if (txt == _("Beats")) {
|
||||||
return 1.0;
|
return 1.0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue