HISE Logo Forum
    • Categories
    • Register
    • Login

    Setting the midi channel for a generated note.

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 220 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.
    • LindonL
      Lindon
      last edited by

      Checked the documentation but I cant seem to see this:

      I want to generate a Synth.playnote (on note off as it happens) -- and then set its midi channel

      any ideas? It's probably pretty simple I'm just not getting it.

      HISE Development for hire.
      www.channelrobot.com

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @Lindon
        last edited by

        @Lindon oh hang on this might be it:

        Synth.addNoteOn(int channel, int noteNumber, int velocity, int timeStampSamples)
        

        -- but whats "timestampsamples"?

        HISE Development for hire.
        www.channelrobot.com

        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey
          last edited by

          I think the play note with offset function has a channel parameter. I'm not at my computer at the moment so can't check.

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @d.healey
            last edited by

            @d-healey said in Setting the midi channel for a generated note.:

            I think the play note with offset function has a channel parameter. I'm not at my computer at the moment so can't check.

            yep it does thanks, still wondering what timeStampSamples is...

            HISE Development for hire.
            www.channelrobot.com

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @Lindon
              last edited by

              @Lindon If I remember correctly it's so you can delay events. So you could add a time in the future to play the note. You'd also need to add a corresponding delayed note off.

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

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

              47

              Online

              1.7k

              Users

              11.7k

              Topics

              101.8k

              Posts