HISE Logo Forum
    • Categories
    • Register
    • Login

    Drum Sampler with individual per-sample control over Pitch/Pan/Vol

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 143 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.
    • MorphoiceM
      Morphoice
      last edited by

      I'm trying to make a basic drum machine plugin
      It's not a big problem to put drum samples into a sampler and have them playable via midi, but I want to have

      1.) individual control over pitch, volume and panning per sample, with the midi note that triggers it staying the same
      2.) individual effects dry/wet per sample

      I recon I need to use an individual sampler module per voice, correct? Or will the AudioLoopPlayer be an easier solution?

      How do I trigger a single sample with a button and have the button "flash" when the midi note triggers it? I only see a toggleButton option in the UI which for the love of it I can't seem to apply a custom laf to ...

      Also a problem that occurs is the dragging of samples from the browser to the sampler does not work on my mac... Is there a way to import the samples another way? I miss the right click to chose samples option like the audioloopplayer has...

      https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

      MorphoiceM d.healeyD 2 Replies Last reply Reply Quote 0
      • MorphoiceM
        Morphoice @Morphoice
        last edited by

        and most important of all, how do I even access/change the sample pitch volume and panning with a slider/knob.. the parameters don't seem to appear in the list of parameterID's

        https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

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

          You might find this video helpful: https://youtu.be/5PmEgPVsGvA?si=3PXxy4gByUA8qbwg

          @Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:

          I recon I need to use an individual sampler module per voice, correct?

          Most likely, but depends on how many voices

          @Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:

          How do I trigger a single sample with a button

          Synth.playNote()

          @Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:

          have the button "flash" when the midi note triggers it?

          Using a timer:
          Button.setValue(1);

          Then some time later

          Button.setValue(0);

          @Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:

          which for the love of it I can't seem to apply a custom laf to

          myButton.setLocalLookAndFeel(myLafObject);

          @Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:

          I miss the right click to chose samples option

          Check out the custom sample import example.

          @Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:

          how do I even access/change the sample pitch volume and panning with a slider/knob.. the parameters don't seem to appear in the list of parameterID's

          If you want to set the individual samples within the sampler then again look at the custom sample import example. But if you only have one sample per sampler then the simplest way is to use a simple gain effect for volume and panning, and a constant mod in the sampler's pitch chain for the pitch.

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

          MorphoiceM 1 Reply Last reply Reply Quote 0
          • MorphoiceM
            Morphoice @d.healey
            last edited by Morphoice

            @d-healey thank you so much!

            this seems to work fine, though the button is still a toggle rather than a trigger

            inline function onSnareTrigger(component, value)
            {
                if (value)
            	    Synth.playNote(38, 127);
            	else
            	    Engine.allNotesOff();
            };
            
            Content.getComponent("Snare").setControlCallback(onSnareTrigger);
            
            
            

            I shall work through your awesome video and I'll probably figure it out

            https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

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

              @Morphoice said in Drum Sampler with individual per-sample control over Pitch/Pan/Vol:

              the button is still a toggle rather than a trigger

              Change the isMomentary property.

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

              MorphoiceM 1 Reply Last reply Reply Quote 0
              • MorphoiceM
                Morphoice @d.healey
                last edited by

                @d-healey yay! just got it from the video. In a million years I would never have found that LOL ;))) I can't thank you enough

                https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

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

                20

                Online

                1.7k

                Users

                11.9k

                Topics

                103.4k

                Posts