HISE Logo Forum
    • Categories
    • Register
    • Login

    Separating User MIDI Input and MIDI Player Events

    Scheduled Pinned Locked Moved Scripting
    3 Posts 3 Posters 289 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.
    • B
      bozhidar
      last edited by

      Hi everyone,

      I’m working on a live accompaniment setup in HISE and I need some guidance on properly separating user input from MIDI Player output.

      Here’s my situation:

      I want to use a MIDI Player to play accompaniment patterns (bass, chords, fills, etc.).

      At the same time, I want to allow live keyboard input from the user.

      I need to clearly know which notes are played by the user and which notes come from the MIDI Player, so I can:

      Run chord detection only on user input

      Transpose the MIDI Player notes in real time

      Avoid conflicts between user notes and pattern notes.

      I’d appreciate any advice, examples, or tips — I want to make sure I know exactly when a note comes from the user and when it comes from the MIDI Player.

      Thanks in advance!

      HISEnbergH 1 Reply Last reply Reply Quote 0
      • HISEnbergH
        HISEnberg @bozhidar
        last edited by

        @bozhidar There isn’t much in the docs about it but you just need to assign your two different MIDI sources (MIDI Player & User input) to two different MIDI channels. This SOS articles describes it, and it’s fairly simple to setup in HISE

        https://www.soundonsound.com/techniques/midi-basics-part-1

        https://docs.hise.dev/hise-modules/midi-processors/list/channelsetter.html

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

          isnt this what isArtificialEventActive() for?

          I assume (so watch out) that the MIDI player events are artificial and user input are not..

          https://docs.hise.dev/scripting/scripting-api/synth/index.html#isartificialeventactive

          HISE Development for hire.
          www.channelrobot.com

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

          26

          Online

          2.0k

          Users

          12.7k

          Topics

          110.1k

          Posts