HISE Logo Forum
    • Categories
    • Register
    • Login

    Paint routine for Natan

    Scheduled Pinned Locked Moved Scripting
    paint routinevectorpanel
    33 Posts 4 Posters 2.0k 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.
    • d.healeyD
      d.healey
      last edited by

      @Natan Asked me to make him this, so here it is. No idea what crazy plans he has for it but enjoy! You need to apply an invisible PNG to the knob ;)

      Peek 2021-01-16 23-09.gif

      HiseSnippet 1188.3ocsW80SibCD2KvRIoMU2Ic8o9hEOs43OWRJWaknsGGIgqo2ADQ3nUppB4rq2DK10d0ZGfbHdqed5mg9X+ZzuA8aP6X6rYW3BTTjHOPxLdlw+led7LltoBepTJRQNkNdbBE47Yt8FyUCaNjv3nNsPNep6q4rXhhI3ncGmPjRZ.xwYw2nMvozRHym+4U6RhHbeZtJD5DAym9NVLSkqs6NukEEsGIfdLKtf0asSGeAuoHRLB.yht0PID+yHCnGPzlsfKxY41ALkHsmhnnRjyR6JBF2an3Bt09SXRV+HpVnNpGDHq58DQAZDq0hZNjEEzMKokHHJcyofEsTvyb2mEvlpOmJdhYAbtGE4CmEtO3UuH7p8vgmSA3sjEdO0smeJKQkuh8XpCWQSCIvQPQXYsEsvesnaSAXAWsYL4L5dofvTO7p+xZqig+Tc6JkqTFNHjJ74jTbWBmFUG+83LeGPUMEwIBNH3spc4U0dY+4lRp5DRzHHh1PkqtKvhpiDiTLN0KbD2WWQ4MnZkxWUoLF9LPaks.vy9kbyKFxTTcjzFjYVPJ4h1QQrDI06WqC3dcrZHSpw1OyBTC8ph2.2HW4ORYCFprZ+s0wMxhWdL0oZJIfMRBo5si0KvMvOepVa1kEBsiALnBEHxBpRDRS1qkCEoXOFD25aiY3uCuE70ZqU0t3U4HIKLfkdSvxygc9E3sfuYEwLD86.lajGEPrfKrPrm1se.WqZt1YPmZiVSynS+wzHZ3zhRVtzDsqAh7Z6INiGAmv3rSXrf+VtneccATpHxyOq5Ycfo.pzd9W51kOSMSmhdqFStb0pZ7.6q0ssycJklnqsLGJWavvrqVM3X0p1xLCZZRhh5CsY7tIH0Ap.9OPnnGx8pV9pxkJecY7sWJLblqMIXQzzYtrt8W584nGeTbeZZFOkYHzG3lMZbu6FME6C5a4jBFJ3c3L0gIT9c09AMgH0MhlfJvTkoMzmOoMTuHV.MEwftMehqgEQF.m2Z+I6fdemVDEIKLPDgcIglpX5DvoE8bXPgs6VI2VT4YJQBzye5YGz62toUx58oO4M64Jt1p.zkEm7LtnvE5aHSU7m82YnogPQMnBa0W7+le28VIUi0L+xFCQwrffHZWgjYldN0tU1QpnI8XevPRW8r+3M+8G98WEey4oxQggrKMS9BYQwRE.lNwv.QjyW5dU2iN7mZ273S26v20p8QWSiSTi2LgO.AW9NiFbrv33CHy6OHalaokyxBnma78osQQ0J5kpO1Xn1smFwRaoU.MjLJxd2tXRB2qKVmDKFIo8nbMgcNSMV6bC3MCezLPXRrHXTDQcywy52jLYga+bE8rNcbGWb6eTlY+Pg6Sc6xT9CmMdWXF3Et97Xi2Iu.pha6vPpuJGrK4t2u73+bGj88AC1m.0NPkg6APYDTY4SAjvgq451cNKnaLYkqok0LCTzDXD9W3yjEqqkclrX8rEQwD+Two911Y52XshQCfIt4olkb2WKim1Gy0s1l0zWlYm56qohM.rOaeZLG97UygOaMG97x4vmudN74alCe9160G8qte8HkXx+EBnnaay7DGm1bBTkYpHQ+W1yIlA
      

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

      NatanN 2 Replies Last reply Reply Quote 3
      • NatanN
        Natan @d.healey
        last edited by

        @d-healey Ha Ha, Thank You Sir, Going To Hipnotize People :)

        I Really Appreciate Your Help

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

          Square version looks cool too:

          Peek 2021-01-16 23-13.gif

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

          1 Reply Last reply Reply Quote 1
          • NatanN
            Natan
            last edited by

            Wow, Look At The Code, This Is What An Expert And Legend Can Do :)
            Excellent Job Sir David Healey, We All Own You Since 10 Years Ago <3

            Much Respect And God Bless <3 :)

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

              Add this in the for loop for some trippy colour effects: g.setColour(Math.randInt(4000000000, 4300000000));

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

              1 Reply Last reply Reply Quote 1
              • NatanN
                Natan
                last edited by Natan

                Sir, Is This Possible To Change The Min / Max Value Of The Ghost Knob To 0 / 1 ?!

                It's Set To 1 / 4

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

                  Ha Ha Ha
                  This Is So SynthWave :))))))

                  @d-healey said in Paint routine for Natan:

                  Add this in the for loop for some trippy colour effects: g.setColour(Math.randInt(4000000000, 4300000000));

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

                    @Natan It needs to be 1 to 4 because there are 3 moving rings. If you want to change it you'll need to rework the calculations or remap the range 0-1 to 1-4 in the knob's callback.

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

                    NatanN 1 Reply Last reply Reply Quote 1
                    • NatanN
                      Natan @d.healey
                      last edited by Natan

                      @d-healey

                      Yeah I Changed The Value Of The Callback To value /4
                      But The Pop U Shows Doesnt Shows The 0 To 100%

                      1 Reply Last reply Reply Quote 0
                      • NatanN
                        Natan
                        last edited by

                        Is This Possible To Change The ValuePopUp?

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

                          value / 4 wouldn't give a range of 1-4 if the knobs range is 0-1. 0/4 = 0 and 1 /4 = 0.25.

                          Can't change the popup without changing the knob's range.

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

                          1 Reply Last reply Reply Quote 1
                          • NatanN
                            Natan
                            last edited by Natan

                            It's A Mix Knob, I Just Added That value / 4 , And It Works Perfectly Both Animation, And The Mix Knob.

                            Edit: No Just Animation Looks Okey, The Value Wont Go From 0 To 100%!!!

                            1 Reply Last reply Reply Quote 0
                            • NatanN
                              Natan
                              last edited by

                              Can We Add Some Magic To This:

                              Panel1.setValue(component.get("max") + 1 - value );
                              

                              And Bring The Knob Back to 0/1 ?

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

                                @Natan Yeah, like I said, you have to remap the range 0-1 to 1-4.

                                Panel1.setValue(5 - (value * (4 - 1) + 1));

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

                                NatanN 2 Replies Last reply Reply Quote 1
                                • NatanN
                                  Natan @d.healey
                                  last edited by

                                  @d-healey
                                  I Set The Knob To 0/1.
                                  And Did A Change Here:

                                  Panel1.setValue(component.get("max") + 3 * value );
                                  

                                  Now Popup Shows The Correct Amount, But The Animation And Reversed :)
                                  Any Idea?

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

                                    @Natan Did you see my last post?

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

                                    1 Reply Last reply Reply Quote 1
                                    • NatanN
                                      Natan @d.healey
                                      last edited by

                                      @d-healey said in Paint routine for Natan:

                                      setValue(5 - (value * (4 - 1) + 1));

                                      WOOOOOOOOOOOW
                                      yes Yes yessssssss
                                      Youre A True Legenddddddddd

                                      That Did The Job :) <3 :man_dancing_medium-light_skin_tone:

                                      alt text

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

                                        @Natan The reason it's written so weird like (4-1) instead of just 3 is because I just copied and pasted the calculation from the remapRange function from here - https://github.com/davidhealey/HISE-Scripting-Framework/blob/master/libraries/helpers.js

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

                                        1 Reply Last reply Reply Quote 1
                                        • NatanN
                                          Natan
                                          last edited by

                                          @d-healey That Was Brilliant :) Thank You Sir

                                          NatanN 1 Reply Last reply Reply Quote 0
                                          • NatanN
                                            Natan @Natan
                                            last edited by

                                            @d-healey Dinner Is My Guest ;)

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

                                            50

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            102.2k

                                            Posts