HISE Logo Forum
    • Categories
    • Register
    • Login

    How to make a guitar tuner

    Scheduled Pinned Locked Moved General Questions
    12 Posts 8 Posters 831 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      goldee
      last edited by

      Hi everyone I am very new to coding in hise can anyone teach me how to make a guitar tuner in hise

      clevername27C pluginboiP JulesVJ 3 Replies Last reply Reply Quote 0
      • clevername27C
        clevername27 @goldee
        last edited by

        @goldee If memory serves, there's a pitch detector somewhere…perhaps in ScriptNode? Take a look at the list of all nodes.

        1 Reply Last reply Reply Quote 0
        • pluginboiP
          pluginboi @goldee
          last edited by pluginboi

          @goldee this is an older snippet of mine but it uses detect pitch and scriptnode to get note names sorta like a tuner

          HiseSnippet 2122.3oc2X0sbabaEdWIAEKZqj5LY5zq5fg8mgJwllTQ0sMdTBk3O1LQ+vPRqDmLYbf1EjDU6BrYWPIw5wy3a5L4wHOF8x7HzY5k8MnSuHuAsG.rK2conjkYZ7EgWrbwAmyAe37Cv4rcBENznHQnk8Z8mDPsruEp2DtbT8QDF2pcCK6kQUs1cR.IJh5ZYau7CUSXu1JV5e+vGsKwivcnojrrNRvbn6w7YxTpcp8ILOuVDWZeleFt2pVaGAutvSLNTsXUrBHNmPFROfnXaIjk8pMcYRQXOIQRirrWYWg6jdiDmwM7eDKhcrG0fzdfhLjaI7bUHV8tU8QLO2NIa1HKKaTmzs9xls96f1m4xlRO0D7KzSfSkHq8vdo7va4bvq5kAu4.I6LPZECjtMpmSHKPlNiBO2D0lKogCHfYOKTL7ZszNqhpK.N3xx9jSnsBgASknz8qT4NX3wFOnPgBfsORhOkDhMB25yqh2FqCAJOjJaNX.0QVpnYRLLaQkX26d3VToyHLA6xhB7HSNdLvYHNB7hNTbHEFPgnBrTfkin3F85f4T4YhvSxrjtAYWqFFMsqVS8zJZdK7CoRsJGvBA0TjdNru3Duh3FYQRlUYXHrJtAW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HyeXAj49KfL+wEPl+zUJi5xncFKE9lTQfPmll5ZraxUcapi5s9e.8M+aNB
          
          
          1 Reply Last reply Reply Quote 1
          • JulesVJ
            JulesV @goldee
            last edited by

            Don't we still have a solid tuner that we can use to tune the guitar?

            d.healeyD C 2 Replies Last reply Reply Quote 0
            • d.healeyD
              d.healey @JulesV
              last edited by

              @JulesV Enjoy! https://x42-plugins.com/x42/x42-tuner

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              JulesVJ 1 Reply Last reply Reply Quote 1
              • C
                ccbl @JulesV
                last edited by

                @JulesV GVST GTUNE is still incredible. I'm assuming OP is asking though because they want to build a tuner into part of a larger plugin, not because they think there's a gap in the market for a standalone.

                TBH if we come up with a good solution, I'd love to use that code too.

                ustkU JulesVJ 2 Replies Last reply Reply Quote 1
                • ustkU
                  ustk @ccbl
                  last edited by ustk

                  I've read and watched quite a lot on tuner dsp, and as simple as it seems at start, things are going exponentially complicated. having the pitch of a buffer is one thing, but getting a smooth response (not erratic) and good tracking especially with lower notes becomes incredibly complicated. Not speaking about the time response for lower notes... Especially for guitars where useful pitch can be hard to discriminates from overtones

                  That being said, there might be a free library existing somewhere 🤷

                  Can't help pressing F5 in the forum...

                  A JulesVJ 2 Replies Last reply Reply Quote 1
                  • A
                    aaronventure @ustk
                    last edited by aaronventure

                    @ustk Just use the pitch tracker in Faust and call si.smoo on it twice. It's incredibly fast and its error is consistent and correctable with an almost linear function (slightly higher at low freqs than at high freqs).

                    1 Reply Last reply Reply Quote 1
                    • JulesVJ
                      JulesV @d.healey
                      last edited by

                      @d-healey said in How to make a guitar tuner:

                      @JulesV Enjoy! https://x42-plugins.com/x42/x42-tuner

                      Sweet. But since it's GPL, I can't use it on a commercial project, right?

                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • JulesVJ
                        JulesV @ccbl
                        last edited by

                        @ccbl I'll take a look at that, thanks

                        1 Reply Last reply Reply Quote 0
                        • JulesVJ
                          JulesV @ustk
                          last edited by

                          @ustk said in How to make a guitar tuner:

                          I've read and watched quite a lot on tuner dsp, and as simple as it seems at start, things are going exponentially complicated. having the pitch of a buffer is one thing, but getting a smooth response (not erratic) and good tracking especially with lower notes becomes incredibly complicated. Not speaking about the time response for lower notes... Especially for guitars where useful pitch can be hard to discriminates from overtones

                          That being said, there might be a free library existing somewhere 🤷

                          I agree. I hope it will be available in the future.

                          @aaronventure said in How to make a guitar tuner:

                          @ustk Just use the pitch tracker in Faust and call si.smoo on it twice. It's incredibly fast and its error is consistent and correctable with an almost linear function (slightly higher at low freqs than at high freqs).

                          Thanks for the tip. Although I am new to Faust, I'll give it a try.

                          1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey @JulesV
                            last edited by

                            @JulesV said in How to make a guitar tuner:

                            Sweet. But since it's GPL, I can't use it on a commercial project, right?

                            You can, as long as your project is gpl

                            Libre Wave - Freedom respecting instruments and effects
                            My Patreon - HISE tutorials
                            YouTube Channel - Public HISE tutorials

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post

                            16

                            Online

                            1.7k

                            Users

                            11.8k

                            Topics

                            102.5k

                            Posts