HISE Logo Forum
    • Categories
    • Register
    • Login

    Looking for way to get ScriptTable points as array including curve parameter

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 135 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.
    • Casey KolbC
      Casey Kolb
      last edited by Casey Kolb

      Hey all,

      I can't figure out a way to get the points from a ScriptTable as an array. I have a situation where I need to know the points on the table and the curves between them each time a user interacts with the table. After looking through the C++, it seems we just need a few more API calls:

      ScriptTable.getTableData(); // returns an array of objects, each with X, Y, and Curve
      ScriptTable.setTableValueChangedFunction(); // sets callback to fire whenever table is changed
      

      The current setControlCallback for ScriptTables only fires on compilation, not on user interaction, which makes the tables hard to customize unless you connect them to a processor, which is not the behavior I need.

      Has anyone dealt with this before? Thank you!

      Casey Kolb
      Founder & CEO of Lunacy Audio
      Composer | Producer | Software Developer

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

        Yeah it seems like the onControl callback has no purpose for a table.

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

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

        52

        Online

        1.7k

        Users

        11.7k

        Topics

        102.1k

        Posts