HISE Logo Forum
    • Categories
    • Register
    • Login

    This is a tough one! :(

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 398 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.
    • B
      BWSounds
      last edited by

      I want to create a combobox with a list of different waveforms I created..

      Each waveform has 4 different types, so my question is...

      Can I create a knob that resets every time I get to a certain position on the combobox for example...

      you select a waveform from the list the knob goes to zero, the knob can be moved 4 times to cypher through the different waveforms, then when another waveform is selected the knob resets and is able to cypher through 4 more?

      Man I hope this makes since to someone lol

      The combobox will be listed as such
      sinewave
      -sinepw2
      -sinepw2
      -sinepw3
      Triangle
      -trianglepw1
      -trianglepw2
      -trianglepw3

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

        Yes you can do that

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

        B 1 Reply Last reply Reply Quote 0
        • B
          BWSounds @d.healey
          last edited by

          @d-healey
          ok cool, as long as I know its possible, I'll figure it out.

          1 Reply Last reply Reply Quote 0
          • B
            BWSounds
            last edited by

            This is what I got so far.. seems as hard as I thought it would be haha..
            am I headed in the right direction, or way off?

            HiseSnippet 1094.3ocuW0saaaCElxNrqVatHAXWr6FQwtvYqwwJNsc.EA0yN1CAcI0aNKX20QKQGSXIROI5r3EDf81s2f8br2fsCojhjxTbSc6lPfB34O9c93QmC8vPoKKJRFhrpc5x4Lj0mfGsTnl1aJkKPGcHx5Q3YB4XhqTnBk9ntKmSihXdHKqpeq1FqZafLO+0K6R8oBWVlHD5LI2k8c7.tJS5vNuh66Of5wNkGjy586bDrK8j9xE.dphaglScmQOmcBUaVELx5A883JY3HEUwhPVazU5sbzT4uJhs+LdDerOSuvAMBBTr3AReOMh0RQ8lx88Fll2QHHJCyXgpwrvmhOl6wuQdFaroQAIyi77gUkUAOm7vqUovqUYvyJ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pH
            
            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @BWSounds
              last edited by

              @BWSounds

              First thing I see

                  if (value == 0) 
                  {
               Combo.setValue(value+1);
                
                 }
                 
                    if (value == 1) 
                  {
               Combo.setValue(value+1);
                
                 } 
                 
                     if (value == 2) 
                  {
               Combo.setValue(value+1);
                
                 }
                 
                     if (value == 3) 
                  {
               Combo.setValue(value+1);
                
                 }
              

              You've written the same thing 4 times. Why not just put Combo.setValue(value + 1) and be done with it, the if statements serve no purpose.

              I'm not 100% sure what you want. Tell me what value the knob should be for each combo box value and what value the combo box should be for each knob value.

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

              B 1 Reply Last reply Reply Quote 0
              • B
                BWSounds @d.healey
                last edited by

                @d-healey
                Thank you for taking the time to look at this, I ended up figuring it out!

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

                49

                Online

                1.7k

                Users

                11.7k

                Topics

                101.8k

                Posts