HISE Logo Forum
    • Categories
    • Register
    • Login

    Simplifying interface challenge

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 623 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.
    • Tod SlaughterT
      Tod Slaughter
      last edited by

      Trying to use a combobox to eradicate the needed for extra buttons but I can't quite get there. What's wrong with my code, it compiles fine?

      HiseSnippet 1440.3oc0X0saaaCElxNrMVcYnsqWrqFD5PAbv55ryecCEEUKNwEFKownNKcca.ELRzwDUhTUhNIFEEXuA6UZOH6hcytb.8Mv6PIYapD4+ZRKZU.RB4ge77oye7P0LT3PihDgHiR62KfhL9LbqdbYmZcHLNpwVHCSbsc2Tb5NsEnM6EPhhntHCihOVI2nzBn3m29nMIdDtCczTHzABlCcGlOSNZ1l1+DyyqNwktOyWa0qY2vQvqI7DcAtTDWAEPbdI4H5SHpkU.iLtx1tLoHrkjHoQHiE1T31qUGwI7j0e.KhcnGUMnJpErQISWW34pXrZVTsNLO2lCdmiPvtzbjEnXhE3V3cYtrgyOxRb8XAViPnaOLJLI5UUmdUlc5YnQuERn2MvsbBYAxQRTb6Z3FbIMrMAbA5zJYsnBeUQbMArBt7d9jWRqGBCFhn7FUpbWq0qTY4Grj4RlfiHRZcLIzBb5Usdn0.jGQk0D9ABNLn7sUBu8x5KuUGR.EVuRhZwGP75RKq1zQqYeBXEF+llH9LaqjFDMdHIhyBogOD5LdHIhyAxJSFxJ4.Y0ICY0bfr1jgrVNPVexPVWAQ8Ci6w3Tq1c4NRlfaI3JmgBYnvqry.X2E1Yv2.fd8RlVvCqc4Tu2Cs1P4wTSlJyJ0ocuHHbdvVkf+AVwq3MluAfD61iTjKdI0HddGBIwkyvgkefF2dhPR2iWdYyWaVx7MlmUR614IJci7ng4IUUVIbBvJy65eHMbfAHccP1U1zW73Se0qt3j3RzVnf2fyj6EP4iKoFk5Ggz6hojBTuLN4doz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O1ENHKIdGln41ImOYL7LO3JB+Oiagku
      
      
      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        Hi Tod,

        Please name your controls in a way that lets me know what they are without having to look up each one in the widget list. Lfo1 doesn't tell me it's a combo box, call it something like cmbLfo1 :)

        I'm not 100% sure what you're trying to achieve so if you could explain your goal I might be able to help you reach it more quickly. Your code currently is taking the value of the combo box (1-7) and using it to set the visible property of table1, the visible property can only be 0 or 1 so that's not going to work.

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

        Tod SlaughterT 1 Reply Last reply Reply Quote 0
        • Tod SlaughterT
          Tod Slaughter @d.healey
          last edited by

          @d-healey

          Lfo1 combobox is connected to lfo wavetype in the container FX.
          I want the combobox to change the panel display inside of the "viewbox" panel as well as the lfo wavetype.

          In this case combobox value 6 corresponds with lfo custom wavetype and therefore I would like the table to become visible. I hope this makes sense.

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

            @Tod-Slaughter The first problem then is that you can't have a control connected via parameter ID and use the control's callback in the script, it's one or the other. So you'll need to add code in the combo box callback to change the shape type. Then you'll be able to tackle the shape display.

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

            Tod SlaughterT 1 Reply Last reply Reply Quote 0
            • Tod SlaughterT
              Tod Slaughter @d.healey
              last edited by

              @d-healey said in Simplifying interface challenge:

              @Tod-Slaughter The first problem then is that you can't have a control connected via parameter ID and use the control's callback in the script, it's one or the other. So you'll need to add code in the combo box callback to change the shape type. Then you'll be able to tackle the shape display.

              Aha, now it begins to make more sense. I shall persevere. Thanks as always :D

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

              36

              Online

              1.7k

              Users

              11.7k

              Topics

              101.9k

              Posts