SliderPack sliderAmount and DSP



  • Once connected to a DSP, you can't change the sliderAmount anymore...
    Or is there another way?

    HiseSnippet 1649.3ocyX0rTabDDdVAiwRXbhS7CvVbHkbAQ0J.CNUpTHPHnvFPpP3+Jev0ncGjlhcmY8tq.Dt7sbOmStj7Dj64leGRd.RdC7afSO6OZmUR.xpJbYQAnomo64a59a5t2sgmvj56K7PZ4OpmKEocGbyd7fNU6PXbztagztKdehe.0SORzl8bI99TKjl1T6HEnkeZT3mOr9lDaB2jlJBgdlfYR2i4vBRk1nxSX11aSrnGwbTV8JU10TvqJrEcA7LE1.4RLOgzld.QtrbXj1spYwBDdMCHATej1zaJr50ri3Ldz5eFym0xlJGTF0DLTj3sE1VRDKkhp1gYa0H4b6i.qzH0KLUjW3938YVr9xS8Fec3D5oZn5OzxcUvqrJ7LFe3oo.ObD7tGtooGyMHcFI1lEuKGBTGSfPfJrNnqSSalE0qA3NAXg0xAd6HKfx8OZ3pBPOdPIGxIzs8fA8sSwUMLVT+gFFO3GmqvbEfvief9oDO8TCVV+mzSLPaZPUgiqfCCJNuxZleP8AFk6S3stTcimOVu4Jv31LNU+3tby.lfqKMT3Jjp6IrKZln6hf8s6RevbEd6bExqfgR9TogCErginKOX9j0Bax6feiMobgwlsJw1tEnbwA2uHbo.mCDAz57hOnvaKjuv6JnO3TGe7HmK1b1TuQNs7Bh2UoXQdWmVTujCRxBAtWVpH9xohp2TLiBFJKTv2kyBp6R4WFAEEGAApZtXTAaePHQ8ahIpogADC3jygUhKnPnmlF36pXQBHHsWgWckRG19M6r.+TC1Z8Xa9bZ8mW+w6svoVGs7ZUgudQ8VOhWZgieyN0VqY8G2xWN9ze.V9lq1C9Su5kYatyBWrWu8VqZoRkNs9YFrCWnTDlCA5TQ.8tY.ZHHyiiC4CBv4qfd5taIwHb6J9vCNDWpW.S5q01hdJj0K5pZd7VT+SBDtgdmXNJjH6Sv+bd+s9OnU5khi1UTIyp3yMI7rqUXF8v8Pe6WHCeoXH+XbzS26+kor2Ud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5IdsYTWkRpzsCk.jTd3qPLOde4X89uyALjnx.d1SK1qMMkOwy2COszn0YoIPmkm.cVYBz4gSfNqNA5r1DnyitRcjuM0M5FHbhdZXPPiZgjKMsz5YSg9ePVLQLB
    

    Also, can we have the possibility of connecting a registeredSP/table directly to a DSP without the necessity of using a component for interfacing with the processor?



  • @Christoph-Hart Do you have any idea on the sliderAmount issue?



  • This has to wait until the new scriptnode is ready, but I've managed to find a solution that works on all levels - just needs to be implemented now ๐Ÿ™‚

    struct MyClassUsingData
    {
        static const int NumSliderPacks = 1;
    
        block internalData;
    
        // This function will be called everytime you change the slider pack amount
        // or refer it to another data...
        void setExternalDate(const ExternalData& obj, int index)
        {
            obj.referBlockTo(internalData, 0);
        }
    }
    
    using myProcessor = wrap::data<MyClassUsingData>;
    

    Also, can we have the possibility of connecting a registeredSP/table directly to a DSP without the necessity of using a component for interfacing with the processor?

    With the above system, you can use a internal table / slider pack and on compilation it will create a hardcoded lookup table containing the values.



  • @Christoph-Hart This looks very promising! Can't wait to use it... Just a typo in the case you haven't detected it -> setExternalDate



  • Yeah itโ€˜s just something I typed out of my head - the actual API wonโ€˜t have that typo ๐Ÿ™‚


Log in to reply
 

16
Online

1.2k
Users

3.8k
Topics

33.5k
Posts