HISE Logo Forum
    • Categories
    • Register
    • Login

    SNEX interpolate table

    Scheduled Pinned Locked Moved Unsolved Scripting
    snexinterpolation
    7 Posts 3 Posters 237 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.
    • ustkU
      ustk
      last edited by

      I'm trying to interpolate on a table but I get instant crash no matter I spent my day on this...

      I need instead to "type" interpolatedValue as float or auto inside the function body because any attempt to write the member variable leads to a crash with no explanations...

      I also tried to pass it as reference parameter

      So what the heck am I doing so wrong here?

      	// float interpolatedValue = 0.0f;
      	
      	void updateGainCompensation(float typeAsFloat, int tableIdxAsInt, TableIndexType& tableIdx, InterpolatorType& valueInterpolator)
      	{
      		DataReadLock sl(data);
      		
      		float interpolatedValue = tableValues[tableIdx][valueInterpolator]; // valueInterpolator checked -> normalised 0-1
      	}
      

      Can't help pressing F5 in the forum...

      griffinboyG 1 Reply Last reply Reply Quote 0
      • ustkU ustk marked this topic as a question on
      • griffinboyG
        griffinboy @ustk
        last edited by

        @ustk

        Are you trying to use the built in interpolator in hise? I've done this before in c++ but I don't understand it super well. However I've gotten it to work

        ustkU 1 Reply Last reply Reply Quote 1
        • ustkU
          ustk @griffinboy
          last edited by ustk

          @griffinboy Thanks, yeah I don't think the problem is related to the interpolator itself, this works as expected and I managed to get it in C++ as well, where all this code works so definitely a SNEX issue...

          Can't help pressing F5 in the forum...

          StraticahS 1 Reply Last reply Reply Quote 1
          • StraticahS
            Straticah @ustk
            last edited by

            @ustk Hey did you get the interpolation to work?

            I am trying to create a table based (graphical) saturator and have troubles with setting up the table.

            Just found your post and thought maybe you have tried something simmilar already.

            building user interfaces in HISE :)
            web: www.vst-design.com

            ustkU 1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @Straticah
              last edited by

              @Straticah Are you doing it in SNEX? Because it doesn't work, only C++ is reliable enough for interpolation

              Can't help pressing F5 in the forum...

              StraticahS 1 Reply Last reply Reply Quote 1
              • StraticahS
                Straticah @ustk
                last edited by

                @ustk yes at least i am trying it in SNEX

                building user interfaces in HISE :)
                web: www.vst-design.com

                ustkU 1 Reply Last reply Reply Quote 0
                • ustkU
                  ustk @Straticah
                  last edited by

                  @Straticah Yeah no luck you see it working unfortunately. You might be able to get some prototyping but chances are good it just won't work...

                  Can't help pressing F5 in the forum...

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

                  25

                  Online

                  1.7k

                  Users

                  11.9k

                  Topics

                  103.5k

                  Posts