HISE Logo Forum
    • Categories
    • Register
    • Login

    Getting Started to SNEX Tutorial needed

    Scheduled Pinned Locked Moved ScriptNode
    10 Posts 3 Posters 868 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.
    • DabDabD
      DabDab
      last edited by

      How to start SNEX ? Where to start it?

      Bollywood Music Producer and Trance Producer.

      Matt_SFM 1 Reply Last reply Reply Quote 1
      • Matt_SFM
        Matt_SF @DabDab
        last edited by

        @DabDab You can start here : https://docs.hise.audio/scriptnode/101/index.html

        Then : trial, error, trial, error trial, success, trial, error, glitch, trial, error, trial, success, crash, trial success 😅 ... to finally manage what you want

        Develop branch
        Win10 & VS17 / Ventura & Xcode 14. 3

        DabDabD 1 Reply Last reply Reply Quote 1
        • DabDabD
          DabDab @Matt_SF
          last edited by

          @Matt_SF said in Getting Started to SNEX Tutorial needed:

          Link Preview Image
          HISE | Docs

          favicon

          (docs.hise.audio)

          I know ScriptNode, FAUST, RNBO... But don't know how to start SNEX. So I am interested to learn it.

          Bollywood Music Producer and Trance Producer.

          Matt_SFM 1 Reply Last reply Reply Quote 0
          • Matt_SFM
            Matt_SF @DabDab
            last edited by Matt_SF

            @DabDab ah my mistake. Then the best solution would be to search the forum for examples. I didn't have time yet to dig in myself... :/
            Edit : ... but I'm pretty sure the process is the same 😆

            Develop branch
            Win10 & VS17 / Ventura & Xcode 14. 3

            DabDabD 2 Replies Last reply Reply Quote 0
            • DabDabD
              DabDab @Matt_SF
              last edited by

              @Matt_SF said in Getting Started to SNEX Tutorial needed:

              but I'm pretty sure the process is the same

              No problem mate. I will upload a video of my screen to know what I am doing wrong and what is the first step.

              Bollywood Music Producer and Trance Producer.

              1 Reply Last reply Reply Quote 0
              • DabDabD
                DabDab @Matt_SF
                last edited by

                @Matt_SF Here is my Screen Record..
                Screen SNEX.gif

                what next ? is there any video or doc what to do next ?

                Bollywood Music Producer and Trance Producer.

                Matt_SFM 1 Reply Last reply Reply Quote 0
                • Matt_SFM
                  Matt_SF @DabDab
                  last edited by

                  @DabDab you can look here if you haven't already :
                  https://docs.hise.audio/scriptnode/manual/snex.html#examples

                  Otherwise, as I said earlier, maybe the best next move would be to search the forum for examples.

                  Develop branch
                  Win10 & VS17 / Ventura & Xcode 14. 3

                  DabDabD 1 Reply Last reply Reply Quote 0
                  • DabDabD
                    DabDab @Matt_SF
                    last edited by

                    @Matt_SF said in Getting Started to SNEX Tutorial needed:

                    Link Preview Image
                    HISE | Docs

                    favicon

                    (docs.hise.audio)

                    Yup, I looked at this. But my problem is , I didn't get it right. May be I am doing something wrong. The example states "just load the given HISE Snippets into the latest version of HISE and play around." But where is the snippet ? if I copy the given DSP code into SNEX it throws error. May be I am doing wrong but I am curious to learn it correctly.

                    // we initialise it to a weird value, will get corrected later
                    double sr = 0.0;
                    
                    // the counter for the signal generation
                    double uptime = 0.0;
                    
                    // the increment value (will control the frequency)
                    double delta = 0.0;
                    
                    
                    
                    void prepare(double sampleRate, int blockSize, int numChannels)
                    {
                        // set the samplerate for the frequency calculation
                        sr = sampleRate;
                    }
                    
                    void reset()
                    {
                        // When we start a new voice, we just need to reset the counter
                        uptime = 0.0;
                    }
                    
                    void handleEvent(event e)
                    {
                        // get the frequency (in Hz) from the event
                        const double cyclesPerSecond = e.getFrequency();
                    
                        // calculate the increment per sample
                        const double cyclesPerSample = cyclesPerSecond / sr;
                        
                        // multiyply it with 2*PI to get the increment value
                        delta = 2.0 * 3.14159265359 * cyclesPerSample;
                    }
                    
                    void processFrame(block frame)
                    {
                        // Calculate the signal
                        frame[0] = (float)Math.sin(uptime);
                    
                        // Increment the value
                        uptime += delta;
                    
                        // Copy the signal to the right channel
                        frame[1] = frame[0];
                    }
                    /** Initialise the processing here. */
                    void prepare(double sampleRate, int blockSize, int numChannels)
                    {
                        x.prepare(sampleRate, 500.0);
                    }
                    
                    /** Reset the processing pipeline */
                    void reset()
                    {
                        x.reset(0.0);
                        x.set(1.0);
                    }
                    
                    sdouble x = 1.0;
                    
                    float processSample(float input)
                    {
                        return (float)x.next();
                    }
                    

                    Bollywood Music Producer and Trance Producer.

                    Oli UllmannO 1 Reply Last reply Reply Quote 0
                    • Oli UllmannO
                      Oli Ullmann @DabDab
                      last edited by

                      @DabDab
                      Hey @DabDab,

                      have you been able to make any progress here? I'm also having trouble learning my way around SNEX.

                      All the best
                      Oli

                      DabDabD 1 Reply Last reply Reply Quote 0
                      • DabDabD
                        DabDab @Oli Ullmann
                        last edited by

                        @Oli-Ullmann No, not at all. I am totally disappointed on SNEX learning.

                        Bollywood Music Producer and Trance Producer.

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

                        18

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.6k

                        Posts