Add 'Denormalize' to Audio_Region context menu.

This commit is contained in:
Jonathan Moore Liles 2008-12-27 16:35:22 -06:00
parent 4e1ece8954
commit 90639f65dd
1 changed files with 3 additions and 0 deletions

View File

@ -268,6 +268,8 @@ Audio_Region::menu_cb ( const Fl_Menu_ *m )
_loop = 0; _loop = 0;
else if ( ! strcmp( picked, "/Normalize" ) ) else if ( ! strcmp( picked, "/Normalize" ) )
normalize(); normalize();
else if ( ! strcmp( picked, "/Denormalize" ) )
_scale = 1.0;
else if ( ! strcmp( picked, "/Range from" ) ) else if ( ! strcmp( picked, "/Range from" ) )
timeline->range( start(), length() ); timeline->range( start(), length() );
else if ( ! strcmp( picked, "/Remove" ) ) else if ( ! strcmp( picked, "/Remove" ) )
@ -312,6 +314,7 @@ Audio_Region::menu ( void )
{ "Loop point to mouse", 'l', 0, 0 }, { "Loop point to mouse", 'l', 0, 0 },
{ "Clear loop point", FL_SHIFT + 'l', 0, 0 }, { "Clear loop point", FL_SHIFT + 'l', 0, 0 },
{ "Normalize", 'n', 0, 0 }, { "Normalize", 'n', 0, 0 },
{ "Denormalize", FL_SHIFT + 'n', 0, 0 },
{ "Range from", FL_CTRL + 'r', 0, 0 }, { "Range from", FL_CTRL + 'r', 0, 0 },
{ "Remove", 0, 0, 0 }, { "Remove", 0, 0, 0 },
{ 0 }, { 0 },