Forum
    • Categories
    • Register
    • Login

    Enable Specific Sampler for Synth.playNote()

    Scheduled Pinned Locked Moved Unsolved General Questions
    2 Posts 2 Posters 7 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 working on a project with many samples. This has led me to place multiple samples on the same keys, but in different samplers. I'm ignoring the original event and creating a new one using Synth.playNote(). How can I make it so that only a specified sampler is triggered by this event?

      In addition to this, can I adjust the gain of this note using the returned event ID of Synth.playNote()?

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @obolig
        last edited by

        @obolig Put the script that plays the note within the sampler's MIDI processor chain, then it will only affect that sampler.

        You can use Synth.addVolumeFade to control the gain.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - HISE tutorials
        My Patreon - More HISE tutorials

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

        11

        Online

        3.0k

        Users

        14.0k

        Topics

        121.8k

        Posts