No internet connection
  1. Home
  2. How to

Grid and nudge command

By Juan B Caballero @Juan_B_Caballero
    2020-12-08 07:32:51.436Z

    Hi! I couldn't find some macros for seting the Grid and Nudge the way I need.
    I'm needing macros to set the grid (Bars/Beat) in 1 bar, 1/2, 1/4, 1/8, 1/16
    And macros to set the nudge (min/sec) in 0.00.010, 0.00.005 and 0.00.001.
    The only macros I found do not worked completely fine. For example, The macros changed the value of grid or nudge but didn't change the mode (Bar/beats - Min/sec)
    Thanks!

    • 19 replies
    1. J
      Juan B Caballero @Juan_B_Caballero
        2020-12-08 08:33:07.018Z

        After searching in the forum I realize how to configure scripts for Grid or nudge and is working ok. I could set commands for 1 bar, 1/2 bar, 1/4 Bar, etc... and 10ms, 05ms, and 01ms. The only issue I still have is that the commands are working only in the Main window. Not in MIDI edit window. I'm also looking for the way to toggle activate and deactivate Triplets. I'm thinking that maybe an alternative way would be to duplicate all my bars|beats grid commands (1/2, 1/4, 1/8, etc...) and set them in triplets.

        1. @Kitch were you the one that made a template collection for this or do I remember wrong?

          1. Kitch Membery @Kitch2020-12-08 09:09:06.665Z

            Yes I was... I'll get the link to the package :-)

            1. Kitch Membery @Kitch2020-12-08 09:18:46.013Z

              Hi @Juan_B_Caballero ,

              I created a command templates package in the store here;

              https://soundflow.org/store/kitchs-command-template-collection

              In the package you will find a command template named "Set Grid Value : In Edit & MIDI Editor Window with various configurations.

              I don't have one for nudge values though. When I get some time I'll make an adaption of the "Set Grid Value" to set Nudge Values.

              Hope that helps
              Rock on!

              1. JJuan B Caballero @Juan_B_Caballero
                  2020-12-08 17:24:08.153Z

                  Awesome, I'll try with your commands. Thanks!!

                  1. In reply toKitch:
                    Keiffer Infantino @Keiffer_Infantino
                      2024-08-07 16:39:13.339Z

                      Hi @Kitch ! Do you have a version of this script for Nudge Values? I'm constantly back and forth between windows and this Grid script is a lifesaver. Would be killer to have Nudge working the same way.

                      1. Kitch Membery @Kitch2024-08-07 17:16:16.337Z

                        Hi @Keiffer_Infantino,

                        I do not yet have one for that, but it could be adapted from the Grid version.

                        I'll take a look at this later in the week and see what I can do.

                        Bump this thread early next week if you don't hear back from me. :-)

                        1. Kitch Membery @Kitch2024-08-07 17:47:44.974Z

                          Hi @Keiffer_Infantino

                          It was an easier implementation than I thought.

                          I've added a new Command Template named "Set Nudge Value: In Edit & MIDI Editor window" to my "Kitch's Command Template Collection" in the store.

                          Let me know if it works for you.
                          Enjoy!

                          1. Keiffer Infantino @Keiffer_Infantino
                              2024-08-07 22:35:53.112Z

                              Wow! Gracious and speedy Wizarding! Thank you!
                              I saved copies of the Example and populated my buttons. Works like a dream in the MIDI Editor window. In the Edit window it quickly opens the dialog but throws this error:
                              "TypeError: Cannot read property 'noteValue' of undefined"

                              1. Kitch Membery @Kitch2024-08-07 22:38:56.821Z

                                Ahh thanks, I shall take a look asap :-)

                                I probably should have tested it a bit more!

                                1. Kitch Membery @Kitch2024-08-07 23:17:03.534Z

                                  Hi @Keiffer_Infantino,

                                  Just pushed an update. Let me know if it works for you. :-)

                                  1. Keiffer Infantino @Keiffer_Infantino
                                      2024-08-08 01:31:42.313Z

                                      Flawless in both windows! Thank you @Kitch ! I'll be rocking em non-stop. Cheers!

                          2. In reply tochrscheuer:
                            JJuan B Caballero @Juan_B_Caballero
                              2020-12-08 20:39:51.366Z

                              as Shaggy said years ago, it wasn't me...

                              1. Hahah!

                                1. MMichael Keeley @Michael_Keeley
                                    2021-03-07 18:15:50.352Z

                                    Is it possible to have 1 macro to set the grid and nudge to for ex 1 bar? I've tried to combine both grid and nudge scripts into 1 script and can't seem to get it to work?

                                    Thanks

                                    1. Yes that would be possible :)

                                      Please see this link for how to best get help with SoundFlow. Hint: It always involves quoting/sharing your progress - generic questions tend to get generic answers :)

                                      1. MMichael Keeley @Michael_Keeley
                                          2021-03-07 19:14:27.953Z

                                          Thanks unfortunatley when I click view at youtube link it doesn't work.

                                          I copied both scripts and tried to have them in one script but can't seem to get it to work. Is there an easy fix for this?

                                          Thx
                                          C

                                          ex

                                          sf.ui.proTools.nudgeSet({
                                          value: "1|0|000",
                                          });

                                          sf.ui.proTools.gridSet({
                                          gridValueName: "1|0|000",
                                          });

                                          1. Please check it out in a browser to see the Youtube video. It's also explained in the article.

                                            1. MMichael Keeley @Michael_Keeley
                                                2021-03-07 19:51:36.750Z

                                                ;) Good to know.

                                                Just posted the q there

                                                Thx C

                                                K