HISE Logo Forum
    • Categories
    • Register
    • Login

    Scriptnode: need a smooth help :)

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 201 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.
    • ustkU
      ustk
      last edited by

      I am trying to achieve a crossfade modulated by two square signals.
      For this crossfade to happen smoothly, I am using either:

      • The smooth setting of the gain node
      • The smoother node

      But none of them are adapted to crossfading.
      The first one gives a ramp, while the second makes an inverted falling edge curve regarding my needs.

      With the gain node:
      Untitled2.jpeg

      With the smoother node:
      Untitled.jpeg

      What I'd like to achieve:
      Untitled copy.jpeg

      This way I can realize a smooth crossfade using another signal (in green)

      Any clue on this? ☺

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

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

        You can easily turn that linear ramp from the gain module into a equal power crossfade. All you need to do is to turn -6dB into -3dB. The easiest formula for it is using trigonometry, so:

        y = sin(x * PI / 2);

        should get you pretty close.

        HiseSnippet 1141.3oc2X8zaaTDEeFaOo0tsPQTta0SoRgH6RKEIjHl3+TEQbvJaRn8TYxrSrG4cmY0tiSpaE23NmgKbkSHtxAj5W.NwW.3aP9FTl2Nqyt1dI0xUfQYuXOu48l827d+leuc2dgJFOJREhvkOXb.GguIwYrTOn4.pPh1oEB+NjtzHMOrp0z1iCnQQbWDFW7wfAb4Rn3qy2ZapGUx3olPniTBFeWguPmZsWiuP340g5xOP3mw6GzXGlR1T4oFYvSQRMT.kMj1muGEbq.AgWqsqPqBczTMOx3y1J2wNCTmIs9ejHRbrGGFTG4XVHqYTyABO2dS1qQHDtTuzcdQ6N+NjtBWwE1Sy.2NdhpoQjMGfKLMjJMEjpmER0x.oNJOWXA.WlGdnLnqjEcFPnbG4Q0SiLnDjLgPMc0YGolKiD5wYKQqT39djdBMaP93sPN30Tn92FuIE+aQZexIblNErkHcdxxVoqmKTxkHh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ply Reply Quote 0
        • ustkU
          ustk @Christoph Hart
          last edited by

          @Christoph-Hart Was so easy finally 😃 You rock Mr Hart! 😎

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

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

          44

          Online

          1.7k

          Users

          11.7k

          Topics

          101.9k

          Posts