thomasNorth Posted February 14, 2023 Share Posted February 14, 2023 Hey all, Is there any way to create a keyboard shortcut to switch between the number of bars one gets for recording? (i.e. I'm not talking about toggling the count-in, but the number of bars one gets to count in - aka: the recording setting UI: "When beginning, count in X bars"). I'd like to be able to quick switch between 1 or 2 bars of count in; along with the standard on/off toggle. Appreciate this is a pretty niche process optimisation question, as it's a two click operation to change this via count-in settings, but every little bit of keyboard shortcut makes creation smoother! Thanks Logic Pro Legends, TN. Quote Link to comment Share on other sites More sharing options...
gacki Posted February 14, 2023 Share Posted February 14, 2023 This should be possible with Keyboard Maestro. (It's a bit unfortunate that the actual number of count-in bars isn't displayed in the UI.) Quote Link to comment Share on other sites More sharing options...
thomasNorth Posted February 15, 2023 Author Share Posted February 15, 2023 Hey there, Thanks for the quick response! Yep I've heard about Keyboard Maestro - for my purposes, it might be a bit of an excessive purchase just for this one shortcut; but I'll definitely keep it in mind if I end up with a couple of these wish-list shortcuts. Thanks for your help. TN. Quote Link to comment Share on other sites More sharing options...
Solution Jordi Torres Posted February 18, 2023 Solution Share Posted February 18, 2023 Hi @thomasNorth, A bit late to the party, but... On 2/15/2023 at 2:06 AM, thomasNorth said: Keyboard Maestro - for my purposes, it might be a bit of an excessive purchase just for this one shortcut You can do this with Hammerspoon without paying money: On 2/14/2023 at 8:17 AM, gacki said: (It's a bit unfortunate that the actual number of count-in bars isn't displayed in the UI.) With the same script to toggle between Count-in settings with a single key, a notification can be shown letting you know what the current setting is. I just left the Project Settings window open in the GIF to show the setting changing, but the window doesn't even have to be open. @thomasNorth, I can share the script if you like. J. 2 Quote Link to comment Share on other sites More sharing options...
thomasNorth Posted February 19, 2023 Author Share Posted February 19, 2023 Heys @Jordi Torres, You legend, I didn't know about the Hammerspoon project - it's like a skeleton key for Mac/Logic Pro conveniences... Yes please, if you've got a script that'd be much appreciated. Thanks all for being good internet citizens, TN. Quote Link to comment Share on other sites More sharing options...
Jordi Torres Posted February 20, 2023 Share Posted February 20, 2023 Hi @thomasNorth, Hammerspoon's been around for quite a while but I've only just found out about it a few weeks ago. I'm having quite a bit of fun with it. I'm attaching the script that does what you see in the GIF. Please note that the bit of the code that actually toggles between the Count-in settings is AppleScript, so when you first run this you will see this dialog pop up. Just click "Ok": As for the Lua script file I'm sharing here, the code needs to go either in your Hammerspoon init.lua file ( ~/.hammerspoon, which is a hidden directory), or you could place the file itself in the same ~/.hammerspoon directory and require it in the init.lua file by adding this line to that file: require('SetLogicCountInSingleKey'). Either way you will have to reload the Hammerspoon config (Hammerspoon menu > Reload config) after adding my script. Let me know if there's any questions, but there's quite a bit of comments in the script explaining what's going on. J. SetLogicCountInSingleKey.lua.zip 2 Quote Link to comment Share on other sites More sharing options...
ravez Posted February 25, 2023 Share Posted February 25, 2023 (edited) This is awesome! Do you think it's possible to make a shortcut that toggles between these two options? Edited February 25, 2023 by ravez Quote Link to comment Share on other sites More sharing options...
thomasNorth Posted February 26, 2023 Author Share Posted February 26, 2023 (edited) @Jordi Torres - amazing, thanks so much for this! I've got a little programming experience, so this is going to open up a world of convenience possibilities. Edited February 26, 2023 by thomasNorth 1 Quote Link to comment Share on other sites More sharing options...
Jordi Torres Posted February 26, 2023 Share Posted February 26, 2023 @thomasNorth, Cool, you're welcome. Yes there's quite a bit that can be done with this, and if you're into programming then it's quite fun. @ravez, 3 hours ago, ravez said: This is awesome! Do you think it's possible to make a shortcut that toggles between these two options? Yes it's possible, but not as nice as automating the Count-in settings because those are actually available as menu items, so that's why you don't even need to open the Project Settings window with the script. With those Region Color settings it's different, because those are only available through the Settings (formerly known as "Preferences") window, so the script necessarily needs to open the window, change the setting, then close the window. But works anyway, see attachment. J. ToggleLogicRegionColorSetting.lua.zip Quote Link to comment Share on other sites More sharing options...
ravez Posted February 26, 2023 Share Posted February 26, 2023 i see, thanks! hopefully they will make it available as a shortcut in the future, but this helps 🙂 1 Quote Link to comment Share on other sites More sharing options...
Jordi Torres Posted February 26, 2023 Share Posted February 26, 2023 You're welcome @ravez, Yeah, having that controllable via shortcut would be better. BTW, It is also possible to change that setting with the defaults (write) command, which will change it in Logic's preference file, but unfortunately doing it that way is useless unless Logic is not running. 🙄 Funnily enough, the corresponding setting in the preference file (IndividualRegionColors_n) is set with a boolean value (true or false), and it appears to work in the opposite way as one would expect. In other words if IndividualRegionColors_n is set to false, in Logic the setting will be set to "Individual". If it's set to true, it will be set to "As Track Color" in Logic. If you're curious, the full command to change it that way from the Terminal (again, Logic needs to be closed, so useless): defaults write com.apple.logic10.plist IndividualRegionColors_n -bool false Of course you change "false" to "true" in the command to set it to true. J. 1 Quote Link to comment Share on other sites More sharing options...
Dmitry S. Posted March 8 Share Posted March 8 @Jordi Torres, How about programming two shortcuts for changing velocity of a selected note by +1/-1 and +5/-5? I believe it would be interesting for all who often deal with piano roll and prefer handy usage of shortcuts which helps keep the mind focused ☺️ Quote Link to comment Share on other sites More sharing options...
Jordi Torres Posted March 8 Share Posted March 8 1 hour ago, Dmitry S. said: @Jordi Torres, How about programming two shortcuts for changing velocity of a selected note by +1/-1 and +5/-5? I believe it would be interesting for all who often deal with piano roll and prefer handy usage of shortcuts which helps keep the mind focused ☺️ Hi Dmitry, this old post, still applies today: J. 2 1 Quote Link to comment Share on other sites More sharing options...
des99 Posted March 8 Share Posted March 8 12 minutes ago, Jordi Torres said: Hi Dmitry, this old post, still applies today: Today's "Digging Up Old Posts" Award goes to @Jordi Torres 👍 1 3 Quote Link to comment Share on other sites More sharing options...
Dmitry S. Posted March 13 Share Posted March 13 On 3/8/2024 at 5:54 PM, Jordi Torres said: Hi Dmitry, this old post, still applies today: Cool! 👍 Thank you for this discovery! This will save me a lot of action 🤩 2 Quote Link to comment Share on other sites More sharing options...
Jordi Torres Posted March 13 Share Posted March 13 You're welcome! 🙂 J. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.