HISE Logo Forum
    • Categories
    • Register
    • Login

    Updating FloatingTile Content Data

    Scheduled Pinned Locked Moved Solved General Questions
    floating tilepeak metersscript
    5 Posts 3 Posters 540 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.
    • oskarshO
      oskarsh
      last edited by

      Hey, I am using a Peak Meter FloatingTile and want to update the processor id to show the peak meter of a different Synth via scripting.

      What I've tried so far:

      • use setContentData(data)
        This clears the floating tile content type and the content data. I might be using it wrong but I copied the current existing data from the floating tile, created a object, changed the "ProcessorId" and used that method to set the data.
      • use updateContentPropertyInternal(propertyId value)
        I am getting a function not found. I read another forum post that this is unused and should not be used Forum post here

      How can I update the FloatingTile PeakMeter to use a different "ProcessorId' and display its values?

      HISE Developer for hire :)

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

        Here's an example that sets the lowest key of the keyboard floating tile.

        First we get the Data property, which is a string. We convert this to an object using parseAsJSON. Then we can change any property we want but we must add the Type property.

        Then we assign our data object back to the floating tile's Data property, converting it back to a string in the process using the trace function.

        HiseSnippet 1225.3ocsV00aaaCEkxIpaVasacXOsmD7SN.YtxYoIoKXaNwwtyKMIF0ooaOUPKRaSDJRAQpj3UDf8Sd+CxtjR1RN0Hs0.yODj62Gd44do5mHCoJkLA4T87owTjyW6NXpPOo8DLSf5cDx4ItmfUZZhelpCmFiUJJA43r1KMJbptNx96e+sCwbrHjVnBgtPxBouhEwzEZ625XFm2ESnmyhJ481s5EJEskbYJfm0bCPw3vKwiomhMtUwE47nNDlVlLPi0TE3ygRxzASjWKx7+BlhMjSMBMQCfDkoF0dBiS5O6rpPHm06WbxWK6j+8tmvHr45K5.eq0feQDk6ANUdHH07y.RNkfz5YP5otCBSXw5BKF77Ut8DvExHLzpKCkLeQUjUbaKAOD5FQ3KocS.g4QTemffM8g+rw9ddP6Vo8uBm32kKwZlX74LNso+u3OKAio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kVM.lD1OPrJ7kpfr+7U7ttAVpLg8tvPyw+GgmQVdLasBw7SqPLauBw77UHlcVgX1cEhYuGLFyV3CRgs+YiCfh9crO433zQfAlkkEh9O.Xjnc8A
        

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

        oskarshO 1 Reply Last reply Reply Quote 1
        • oskarshO
          oskarsh @d.healey
          last edited by

          @d-healey Thanks for sharing!

          I went wrong by manually copying the ContentData which does not include the type. Also the fact that you need to stringify/ trace the data to be able to set it flew over my head! I'll save that one for my personal documentation :) Thanks!

          HISE Developer for hire :)

          d.healeyD 1 Reply Last reply Reply Quote 0
          • oskarshO oskarsh marked this topic as a question on
          • oskarshO oskarsh has marked this topic as solved on
          • d.healeyD
            d.healey @oskarsh
            last edited by

            @oskarsh It is possible to do it also by editing the string but I think the object way is much cleaner and easier to understand.

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

            Christoph HartC 1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart @d.healey
              last edited by

              You can also call obj.clone()…

              1 Reply Last reply Reply Quote 0
              • d.healeyD d.healey referenced this topic on
              • First post
                Last post

              18

              Online

              1.7k

              Users

              11.8k

              Topics

              102.4k

              Posts