HISE Logo Forum
    • Categories
    • Register
    • Login

    New user here. Any SNEX tutorials?

    Scheduled Pinned Locked Moved General Questions
    9 Posts 5 Posters 499 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.
    • MorphoiceM
      Morphoice
      last edited by

      Ahoi new user here.

      I was wondering if there are any tutorials or anything helpful to get me started with HISE and SNEX. I've been at it for 4 weeks now, managed to compile a version with faust support but can't get a simple oscillator to work properly and found it very hard to learn with very little helpful resources for bloody beginners.

      when I create a core_snex_oscillator it only outputs sound on the left chanel

      where do I chance the waveform? how do I control the phase? how can I get a PWM square instead of a sawtooth? What algorithm is used to create the waveform? Is the minblep method available or implemented?

      all the best

      https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

      Christoph HartC resonantR griffinboyG 3 Replies Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @Morphoice
        last edited by

        @Morphoice Check the snippet browser. Help -> Browse example snippets. Use the SNEX tag, there are 3-4 examples that show how to use the API.

        Once you understand the basic API, you should be able to use generic DSP tutorials as the language is pretty similar to C++. But yes, I admit that the amount of examples and docs for SNEX are sparse compared to the rest of the stuff.

        1 Reply Last reply Reply Quote 0
        • resonantR
          resonant @Morphoice
          last edited by resonant

          @Morphoice There are 6 SNEX tutorials in the snippet browser, you can check it.

          Use the latest commit of HISE > Help > Browse Snippet Examples

          Download the content, that's it.

          NOTE: Christoph almost the same reply time as you, but you came out faster :)

          MorphoiceM 1 Reply Last reply Reply Quote 0
          • MorphoiceM
            Morphoice @resonant
            last edited by

            @resonant @Christoph-Hart superb thanks I will check those out!

            https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

            1 Reply Last reply Reply Quote 0
            • griffinboyG
              griffinboy @Morphoice
              last edited by

              @Morphoice

              I'll be releasing tutorials soon.

              FatMitchellF 1 Reply Last reply Reply Quote 0
              • FatMitchellF
                FatMitchell @griffinboy
                last edited by

                @griffinboy plssssss

                griffinboyG 1 Reply Last reply Reply Quote 0
                • MorphoiceM
                  Morphoice
                  last edited by

                  I worked through some of the provided examples but still couldnt figure out how to e.g. simply modify the audio by code in a snex node
                  can someone point me to what to do if I say just wanted to make a node that runs all audio through a tanh function to saturate.

                  https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

                  griffinboyG 1 Reply Last reply Reply Quote 0
                  • griffinboyG
                    griffinboy @Morphoice
                    last edited by griffinboy

                    @Morphoice

                    I'm releasing a video soon which will tackle it in detail.

                    But to hopefully get you on the right track fast, create a new snex shaper node, and create a new file inside of it.

                    Now open up the node, you'll see a process function. it will look something like this:

                    ProcessData<2> data;
                    for(auto& ch: data)
                    {
                    // Pass the ch iterator into the toChannelData function
                    // in order to iterator over the float samples...
                    for(float& s: data.toChannelData(ch))
                    {
                    s *= 0.5f;
                    }
                    }

                    This code here iterates over the samples and multiplies each sample by 0.5

                    What you want to do is replace this with
                    s = Math.tan(s)

                    Or tahn, I don't remember which one snex uses

                    1 Reply Last reply Reply Quote 0
                    • griffinboyG
                      griffinboy @FatMitchell
                      last edited by

                      @FatMitchell
                      Would you rather I did a tutorial on snex, or on c++ nodes?

                      C++ is more complex but allows you to do some really complex DSP not possible in snex.

                      Depends what you are wanting it for.

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

                      24

                      Online

                      1.7k

                      Users

                      11.9k

                      Topics

                      103.4k

                      Posts