HISE Logo Forum
    • Categories
    • Register
    • Login

    scriptnode - math.

    Scheduled Pinned Locked Moved General Questions
    8 Posts 4 Posters 511 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.
    • C
      clumsybear
      last edited by

      I have a few questions about math in scriptnode.

      What exactly does math.clip do in scriptnode?
      can't find any information...

      Also what is math.clear for?

      last one, how can I understand core.peak?

      cheers

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        math.clip limits (clips) the output to the specified value
        math.clear clears the output to zero
        core.peak detects the peak in the signal and sends the value to the modulation target.

        Y 1 Reply Last reply Reply Quote 0
        • Y
          yall @Christoph Hart
          last edited by

          @Christoph-Hart it is very cool the clip 'it just deserves a little softkness button :)

          ustkU 1 Reply Last reply Reply Quote 0
          • C
            clumsybear
            last edited by

            @Christoph-Hart so is math.clip something like a clamp between 0 and the set value?

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

              @yall @clumsybear clip is the maximum distortion you can get as it strictly cuts out everything above the value, and below minus the value, hence gives a square like shape.
              It's not meant to be smooth, for a smooth result, use tanh

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

              Y C 2 Replies Last reply Reply Quote 0
              • Y
                yall @ustk
                last edited by

                @ustk j avais pas vu celui là je vais essayer. Tu sais comment connecter le visu du cliper a l'interface par hasard ?^^

                1 Reply Last reply Reply Quote -1
                • C
                  clumsybear @ustk
                  last edited by

                  @ustk thanks for the reply, but that's not what I was asking :)

                  math.clip is used in the transient shaper example in scriptnode for gain computation, I would like to know what exactly it does and if it acts as a clamp, like the clip operator in max/msp gen~ for example

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

                    @clumsybear for what I understand of clip in max/msp they are not the same.
                    alt text

                    math.clip just cuts out what is above or below. Think of it as a diode if you know a bit of electronics
                    alt text

                    @yall Tu veux dire le node.peak ? Impossible…

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

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

                    47

                    Online

                    1.7k

                    Users

                    11.7k

                    Topics

                    101.9k

                    Posts