HISE Logo Forum
    • Categories
    • Register
    • Login

    Doubts regarding snex_shaper

    Scheduled Pinned Locked Moved Unsolved General Questions
    2 Posts 2 Posters 212 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.
    • M
      Mighty23
      last edited by

      I have two problems with 'snex_shaper'. The first is that the image is no longer modified when the saturation value changes if connected to a knob (figure 1). The other problem I encounter is that I don't have the basis to display the wave shaper graph.

      snex.png

      I would like to know how to display the graph represented in snex_shaper or if I have to create the necessary animation "frame by frame". If it's not possible to do this within HISE, does anyone know a quick way to make the 101 frames needed with Figma or Lottie Studio?

      Free Party, Free Tekno & Free Software too

      O 1 Reply Last reply Reply Quote 0
      • O
        Orvillain @Mighty23
        last edited by

        @Mighty23

        RE: getting the display. I've done some of this recently. However I was trying to display an envelope. This was more or less my boilerplate code:

        // This is some boilerplate prototype code for drawing an envelope display
        // across the top of a waveform - it requires there to be a specific panel for it
        const var db = Synth.getDisplayBufferSource("sampler_0");
        const var display = db.getDisplayBuffer(0);
        const var envelopedisplay_0 = Content.getComponent("envelopedisplay_0");
        
        envelopedisplay_0.setPaintRoutine(function(g)
        {
            var p = display.createPath(this.getLocalBounds(0), [0, 1, 0, -1], 0);
            g.setColour(Colours.withAlpha(Colours.lightblue, 0.3));
            g.fillPath(p, this.getLocalBounds(0));
            g.setColour(Colours.black);
            g.drawPath(p, this.getLocalBounds(0), 1);
        
        });
        
        envelopedisplay_0.setTimerCallback(function()
        {
            this.repaint();
        });
        
        envelopedisplay_0.startTimer(10);
        

        Now, I tried this with the snex_shaper earlier, and fell at the first hurdle. The Synth.getDisplayBufferSource() call returned an error saying there was no display object. So I think the snex shaper would need to be updated to expose that.

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

        31

        Online

        1.7k

        Users

        11.8k

        Topics

        102.8k

        Posts