HISE Logo Forum
    • Categories
    • Register
    • Login

    Connexion port in core.jit

    Scheduled Pinned Locked Moved Feature Requests
    3 Posts 2 Posters 198 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

      @Christoph-Hart I know how to create a slider in a jit node.
      But is there a way to create a connexion port for controlling other nodes?

      Untitled.jpeg

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

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

        just slap a core.peak node after it and it will take the output of the jit node as mod source.

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

          @Christoph-Hart That's what I do for signals. But here I just want to make a calculation based on a knob input, and output the result.
          For instance, I'd like to input a time in ms and output a frequency value in Hz to set the oscillator.
          There might be another way than using a jit, but I don't see how...

          Untitled.jpeg

          
          float TimeIn = 0.0f;
          float FreqOut = 0.0f;
          
          void setFreqOut(float newValue)
          {
          
          }
          
          void setTimeIn(double newValue)
          {
              TimeIn = (float)newValue / 1000.0f;
              FreqOut = 1.0f / TimeIn;
              //setFreqOut();
          }
          

          There might be a better way for this example, but not necessarily for another one...
          (I know it looks weird but it's just for the sake of the example)

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

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

          33

          Online

          1.7k

          Users

          11.7k

          Topics

          101.9k

          Posts