HISE Logo Forum
    • Categories
    • Register
    • Login

    Scriptnode: How to send signal for set period of time

    Scheduled Pinned Locked Moved Solved ScriptNode
    7 Posts 2 Posters 389 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.
    • O
      obolig
      last edited by

      I'm attempting to set up a system in scriptnode where a value of 1 is sent for a limited period of time, after which the value would default to 0 until the process is triggered again via a button on the interface. Is there a node or series of nodes that could do this?

      A 1 Reply Last reply Reply Quote 0
      • A
        aaronventure @obolig
        last edited by

        @obolig ramp into cable.table. trigger the ramp's gate by setting a parameter from script. parameter goes into a resetter, resetter goes into a ramp gate. ramp goes into cable-table. put it all into a modchain or use a clear node after the ramp because the ramp node "bleeds".

        O 1 Reply Last reply Reply Quote 0
        • O
          obolig @aaronventure
          last edited by

          @aaronventure Thank you for the help! Either I'm missing something or I didn't clearly explain my goal. The current setup does restart the ramp when the resetter is triggered. This is very useful, but I'm looking for the chain to output the value of 1 only for the duration of one ramp cycle. After the cycle is complete, it will default back to 0 until the resetter is triggered again.

          signal chain.jpg

          A 1 Reply Last reply Reply Quote 0
          • A
            aaronventure @obolig
            last edited by

            @obolig just change the plot of the table!

            or event better (but you'll have to compile the network before exporting the plugin) use a cable.expr node, plug the ramp into it and do output = input < 1.0 ? 1.0 : 0.0

            O 1 Reply Last reply Reply Quote 0
            • O
              obolig @aaronventure
              last edited by

              @aaronventure My bad. I should have made that change before the previous screenshot. I was more so focused on the fact that displayed setup continuously repeats the cycle between 0 and 1 without stopping.
              signal chain.jpg

              Let me try again to describe what I'm looking to do. The part that I'm stumped with is making the output signal stay at 0 after a single ramp cycle is complete. It should wait for a new trigger before jumping to 1 again for the set period of time. In this case of this graphic, 1 second. Sorry for the confusion.
              graphic.png

              A 1 Reply Last reply Reply Quote 0
              • A
                aaronventure @obolig
                last edited by

                @obolig Dial the loopstart on the ramp all the way up.

                O 1 Reply Last reply Reply Quote 0
                • O
                  obolig @aaronventure
                  last edited by

                  @aaronventure That was it! Thank you so much.

                  1 Reply Last reply Reply Quote 0
                  • O obolig has marked this topic as solved on
                  • First post
                    Last post

                  46

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts