HISE Logo Forum
    • Categories
    • Register
    • Login

    chord pad

    Scheduled Pinned Locked Moved General Questions
    40 Posts 8 Posters 1.8k 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.
    • Y
      yall
      last edited by

      Hello family ;)
      I would like to integrate in my plugin, a kind of pad which would allow to directly play a whole bunch of chords.
      so for now I'm using (if (value)
      {
      Synth.playNote (87, 64);
      Synth.playNote (94, 64);
      }
      else
      Engine.allNotesOff (); )

      everything works very well but ... according to my calculations I would like to create
      12 major pad
      12 minor pad
      12 pad 5 th
      12 pad 7 th

      making a total of 48 buttons and as many chord combinations.
      Is there not an easier way than to write everything manually?
      moreover, I already have a project which is quite big, won't adding 48 buttons make my plugin row too much?
      or is it possible for example to create 12 pad, and to assign directly via a list the chords for each pad? I like things that offer ready-made chords but I'm already sweating at the idea of ​​writing everything ^^

      LindonL hisefiloH 2 Replies Last reply Reply Quote 0
      • LindonL
        Lindon @yall
        last edited by

        @yall - well you know the "shape" of each chord "type" (e.g. Major = 0,4,7) so all you need do is have two drop down menus - 1 with the chord types (Major, Minor etc.) and one with the root note (C2,C#2,D2 etc..) and you can work out the correct midi note numbers...

        HISE Development for hire.
        www.channelrobot.com

        1 Reply Last reply Reply Quote 0
        • Y
          yall
          last edited by

          @Lindon I will do like that I think. is it possible to create 2 additional buttons (octave + and octoave -)? or do I have to write the chords over their entire octave?

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @yall
            last edited by

            @yall no you could have 3 drop downs:

            1. chord "shape"
            2. root note
            3. octave

            HISE Development for hire.
            www.channelrobot.com

            Y 1 Reply Last reply Reply Quote 0
            • Y
              yall @Lindon
              last edited by

              @Lindon oh my god, this is going to be really long all this ^^

              LindonL 1 Reply Last reply Reply Quote 0
              • LindonL
                Lindon @yall
                last edited by

                @yall why its pretty simple logic:

                Work out the midi note number for C in the octave selected(e.g. Octave = 1, then C= 60)
                Workout the addition you need for the root note selected (c=0,c#=1, D=2, d#=3 etc. etc.)

                Work out your required midi notes for the shape selected(e.g. Major = 0,4,7)

                so if the user selects D major in Octave 1 then

                start point = 60 (the value of C in Octave 1)
                root offset = 2 ( the distance from the start point of the selected root note)

                Major chord notes are :
                0, so this will be 60+2+0 = 62
                4, so this will be 60+2+4 = 66
                7, so this will be 60+2+7 = 69

                ..done..

                HISE Development for hire.
                www.channelrobot.com

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

                  Why do you need buttons, just use the keyboard. User selects major and clicks C they get a C major chord :)

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

                  1 Reply Last reply Reply Quote 0
                  • Y
                    yall
                    last edited by

                    @Lindon @d-healey I would like the user to be directly a pad and not just the keyboard. (this is the fashion for pads ^^).
                    I have fully understood how to create the chords I recreated a table which groups each note by chord to go faster. I expressed myself badly I think, I want the user to be able to play directly on the pad of chords maj min ... but without going to look in a list (which is not practical for those who want to play live by example).
                    So yes ultimately it makes me well 48 buttons (12 notes x 4 chords).
                    that's why I'm telling you that it's a lot of lines of code ^^

                    Y 1 Reply Last reply Reply Quote 0
                    • Y
                      yall @yall
                      last edited by

                      suddenly, create 2 button octave + or - I should write 144 buttons ^^

                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • hisefiloH
                        hisefilo @yall
                        last edited by hisefilo

                        @yall please re-create this :) Casio PT30 was my first keyboard. Learned chords that way
                        Still having it

                        Screenshot_20210401-075031.png

                        Y JayJ 3 Replies Last reply Reply Quote 1
                        • d.healeyD
                          d.healey @yall
                          last edited by d.healey

                          @yall Do not use buttons. You can do this with a single panel. Watch my live stream video where I started creating a million buttons and Christoph popped in with some script to do it with a single panel :p

                          Around 1:43
                          https://youtu.be/xU8dLVISM-A?t=6189

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

                          1 Reply Last reply Reply Quote 2
                          • Y
                            yall @hisefilo
                            last edited by

                            @hisefilo when i will have finished this. I will drop the script here;)

                            1 Reply Last reply Reply Quote 1
                            • Y
                              yall @hisefilo
                              last edited by yall

                              @hisefilo

                              @d-healey @Lindon
                              So I just spent 2 hours writing everything. ^^ I tried the method with a panel but I got lost on the way. It is true that so many buttons can become restrictive but as I really wanted to have PADS I am quite happy with the result. (the pads change color on impulse).
                              for those who want it, I just put down the snippet of the scales major minor 5th min / maj.
                              if my work can help some it is with pleasure ^^

                              Y 1 Reply Last reply Reply Quote 0
                              • Y
                                yall @yall
                                last edited by

                                HiseSnippet 3536.3oc4c0saiabElZsYvZmtEIAIn8Rhr8BGfzc47CIkPQ5J+6FmXu1w1YSCPKR4JQaQrRjBRzahavBrnOI419VDf9Bzq6U4QXeCZ4HJYQJw4brIEEoa8dgWNCGxONemYN77Mmg93A9sbFNzefRs0N6p9NJ09UpmdkWPms6X65or+NJ09.091s0Z0wePasA1dW7O+GJacUe6gCcZqTq1JOUbd0VaUkQ+71mrkcWauVNSKRQ449tsbNvsmavzROt4W51s6d1scNysWryl2b+V9da620+xPLshptRe6Vuz9BmmYKNs6opT6c1ssaf+fSCrCbFpTa0s7ae0oc7+duny+4tCceQWGwADkSCuPQEume21BDKJUY6Ntcae7jm8gJJ0TOdZOwJQ8Den5gtscut7o8Hu2nJzl1h38G0tGD7Hwgm9MGd0hAuUif26qdZqAt8ClVi.auq59dANCN2NjBhCqnyU4d+6yT21O7L7BdTO6W5r2fvCttEaXpq+oZTc8O4O7f0ev5O9wZCCAtVeaOmtZO9whxBImgAZuxdf1VWFD36Qz9LsIWvKbB11uWeeuvC13iGW+GKtVSa0whqk7FEU8GGc+i9mqWWWOGsyuzqUfqumlu23qr3JLvu6Fslz7OM7Nz8RmO4Aq+iOX80htTOR7DL4LipN7Z+5QWeDb+nghxG0xss618Eg1gaL6MeJPC6r14HsC27K18qOYt9ps+7iNYG4O0QUe8S87OwQm.xCr64ZaL430zB+4GG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DZO+tsEWUIaGnaHbee0icCZ0Ic7duTvqhRgi2UNarwztmetSqfofMzw7eJQ+YgCkOJBJuq52X+JmQaKtQ.4iFc749C5o8TGOmAh9TRBjILBl1o8udxV1cs8ZkH+NetuaKmCb64FyRueyuzsa28ra6H1yYSKm2b+VhcaVW+KGD8LbTqfPHb1.aug88G5PhekmoNZ751wI3RujmdTQINKwi2dgOdwNu62bRgz3EFNPKwEK73DWoCciMl5Wdxtdhgsm5D9zz9ngsBeXE8cwGNb7kcG57MhoDHwa3zhowK9ysGzNjWZkv.ckarUA4FaUT6cl2B8CUOzss60kGeR.QEZSawR0nsXmdZkaFbSoGrVLLt1DLdpau9cc106UNc8CKQfwOPcGmysuravjRSNz5PeO+9c78bSP5m3DLv8hKbRXKk5CzlAA1sd4zR9vlm3z0wdXrga+tlG354XOHrexIi8EjadeADe8aUifqlX9.s+2vsxJ+euaE3QngSYd2go+MpgSiS0FQ2ZkOeeh+kAtdWbnc3rAgNdTe1k8NMzmYKmPD6E9JghMgcs6I1bEQGqKNV.mSc7ZO5f+S3OiqjHNt13JISpbobO5Y2Zf+20JZGfHlv39iJI741ydzKFndn3Xsq23Gpp5ORWoWnamuqUKgM8uOr+I81PyPaXYnM7LzFiLzFyLzFqLzl5fsQ3weyKC76EY+GVvw6NZC3TqVzK8LZnfx+EHEbbiM
                                
                                ustkU hisefiloH 2 Replies Last reply Reply Quote 2
                                • JayJ
                                  Jay @hisefilo
                                  last edited by

                                  @hisefilo wow, that's what I'm talking about

                                  Joansi Villalona

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

                                    That is some ugly code :D But it gets the job done!

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

                                    DanHD 1 Reply Last reply Reply Quote 0
                                    • ustkU
                                      ustk @yall
                                      last edited by

                                      @yall That is cool you found a way to make it work! :)
                                      Now you should definitely find a way to make the 1255 lines of code doing the same thing in 50 lines ;)

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

                                      Y 1 Reply Last reply Reply Quote 1
                                      • Y
                                        yall @ustk
                                        last edited by

                                        @d-healey indeed it's the ugliest code I've ever done 😂 and still I wanted to do + but my eyes and brains are mush ^^ @ustk if you have something to offer me I m taker. :)

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

                                          @yall The best thing I can offer - https://docs.hise.audio/ - read everything 10 times and do all examples, follow all of the linked javascript tutorials and complete all of the exercises and examples. Repeat this for 5 years :D there is no shortcut.

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

                                          Y 1 Reply Last reply Reply Quote 0
                                          • Y
                                            yall @d.healey
                                            last edited by

                                            @d-healey I am only 1 years old. It's already not bad 😂 I have to work on adding an automatic button as in the example of your video above. I could reduce the code already with this. I have 48 line from constvar.button ..... It is at the level of the reminders that I have to work. I have already greatly reduced my plugin from 90MB to 8MB by resizing the images, by shortening the codes. but I haven't finished. :)

                                            d.healeyD C 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            53

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.8k

                                            Posts