HISE Logo Forum
    • Categories
    • Register
    • Login

    Access to Tablemode Viewport Component values

    Scheduled Pinned Locked Moved General Questions
    4 Posts 3 Posters 263 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.
    • S
      Soundavid
      last edited by Soundavid

      Hi everyone, im building a Midi mapping system using a viewport in table mode, im getting the Articulation Data from a external json file that will be in the Additional Source of each expansion and setting a Combo Box with the assigned note and a Learn MIDI button in every row but im lost on how to implement this UI approach in the On Note Callback or MIDI Processor because I don't how to access the combo boxes or Buttons values, the idea is to compare the original Note to the combo box ones and use the midi learn button to change the value of the combo box.

      Screenshot 2024-06-23 at 3.22.12 PM.png

      If anyone have any idea it will be appreciated.

      This is what I've done so far:

      HiseSnippet 1625.3ocsW0uaaaCDWNMtXVcaXcXO.D5ubP8bsSi+XoqXMwNoynwsYwoYEHHnfVh1lIRjFRzMwqHuR6YauAa2QJYKKam1Ffk+Hx7te2wiGOdebbnzkEEICsxU3zoiYV49178lJTiZMhxEVcZak66y2kFoXgDCo8mNlFEw7rxk6AuBIjqvlV5+9meaepOU3xlSxx5LI2kcDOfqlS83W9Ztu+gTO1o7fTn24kcbkhVRe4DvddP9JViotWQGxdCEgsQdqbO7.OtRF1SQUrH.y9Ruo8FIuVXveFOh22mgKpZ0CTjgrUqQbeuiSNqQVV41734m7GXN4+T9tbO9L5y8.+flAYtDo8A413tLopeElTtTlzlFS5w464FxGqlyAsmGkui.tPFPAWcZSwf0ZiG9n7sj.Bgpb.8J1ggvhYRTrdkJkHv+15411f6NRQ9HMjDPGOlKFdFmc8XYnh7BRhJFxTsjAikBXQQmL3bPsDxFlHeaphBxZ+IaGZnh6Nwmp3Rgytjyc1WFzWRd6XlvoDwt.7GIlVKZjKMjRNZcLNYNiSo.CfDpmzBr.8UfeE6QBq1zfwLuUw4N1+XgRw4HeZ.0SFR1mdI3sjNkxxXu9bVnZNi87YCCYKg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Z2MbkRxxZvfUxKVW9PJgUwFGRH7tDrnXRPeVXIh1QLCHzE8hsl+vurVycMM9lBnTzQvUXmkl057Wdleubi7VwcNiszGag.Tktg9eLtgdlWhizh6g84mw8ZoOJoGjx5ccvmAIJEzOrmigFD43QKWa1GgAsLSMTHeaVzUJ4XM13V2gi+WoIbiUt74vcdZxOtFKifK9aX4Hc8cb062.GpaogWfwljdXdjEmkBGZLlAbKtv.L3PJhHtZZ5gJ+JFvpxcNf0WpI937GyUtiVsMtwJrQ3N4+CaLdrzuK+ACF.Utlafal+v2eemA8yr8mHmnfXftTUHGu+eyjfdvz3tLX2EBleDdeiW2wqqjDZziI7zK9W3uXlUw04hYVMgoU.0MT9AWyKCbv2uQSArIgdN+B46hqIUW9QfNqoq6hpZIA299J3ytuBty8UvZ2WAqeeErw8UvledAw5c6MQICLOarr5d7A5jV4xcf.qmniVs9O7YMfvG```
      Christoph HartC CyberGenC 2 Replies Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @Soundavid
        last edited by Christoph Hart

        @Soundavid use the tablecallback to update a JSON object in your script that you can check against in the midi callback.

        Link Preview Image
        HISE | Docs

        favicon

        (docs.hise.dev)

        S 1 Reply Last reply Reply Quote 1
        • S
          Soundavid @Christoph Hart
          last edited by

          @Christoph-Hart Thank you! Is there a way to get and set the states from the "Learn" Buttons from the OnNote callback? I Would like to turn off the buttons when the new Midi note is learned.

          1 Reply Last reply Reply Quote 0
          • CyberGenC
            CyberGen @Soundavid
            last edited by

            @Soundavid Hi,

            I'm using the table mode in a similar way, and I was wondering if it's possible to change the button's text with a callback (not in the onInit).
            For example, in your table, could you change the text of some buttons in your 'MIDI Learn' column to say 'Unlearn' if certain conditions are met? Or, once I set the text in the onInit, am I pretty much committed to it?

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

            11

            Online

            1.7k

            Users

            11.8k

            Topics

            102.3k

            Posts