Page 1 of 1

Is it possible to change the Shotcut for Peak and smooth?

Posted: Tue Jul 21, 2009 11:01 am
by velu
In previous version of AS Shortcut for Peak - 'P' and for Smooth - 'M'. But in AS PRO 6 Ctrl+P and Ctrl+M. Possible to change the shortcut as previous version? Because holding Ctrl key is difficult to me for the process of Smooth and Peak.

Posted: Tue Jul 21, 2009 12:18 pm
by Barry Baker
Look at this discussion:

viewtopic.php?t=13515&highlight=smooth

I had the very same issue with v6. You will need the peak and smooth tools, as well as their icons, from v5.6 to be able to change it back (lm_smooth.lua and lm_peak.lua). Put them in the scripts\tool folder, then edit each lua file to take out the word LOCALIZE, which is incompatible with v6.

For example,
It should work without any changes -- if there are problems they are most likely with any LOCALIZE statement. If so, you can safely remove the LOCALIZE function: that is, if it says something like:

LOCALIZE("Hello young lovers") change to "Hello Young Lovers".
Then you need to change _tool_list.txt in the same folder by adding the following lines:
button lm_smooth M
button lm_peak P
Put these lines where you want the buttons to appear - I have them directly after lm_curvature

Posted: Tue Jul 21, 2009 1:42 pm
by velu
I have put the peak and smooth buttons and changed the _tool_list.txt. Works as well. But lua console error shows.


I didn't understand in this script. How can remove the LOCALIZE function?
function LM_Peak:UILabel()
return(MOHO.Localize(self.BASE_STR + 1, "Peak"))
end
I don't have script knowledge.

Posted: Tue Jul 21, 2009 1:46 pm
by Barry Baker
Ok, that line should be changed to
function LM_Peak:UILabel()
return "Peak"
end
By the way, I don't have any scripting knowledge either, I just follow what I read here in the forum :D

Posted: Tue Jul 21, 2009 2:10 pm
by velu
Thanks for enabling me to master these tools.