Welcome to Decent Sampler Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
How can I go about playing samples from different groups at the same time, but play an amount of each based on user input from the UI?

For example, I would like to have 2 knobs on the UI, "group 1 amount" and "group 2 amount" and the user picks an amount for each.  When a note is played, I would like to blend the two necessary samples based on the amounts chosen by the user.

Is this type of thing possible?
in Sample Creation by

1 Answer

0 votes

When you say amount, do you mean volume? If so, then it's very easy. Something like this should do the trick:

<?xml version="1.0" encoding="UTF-8"?>
<DecentSampler pluginVersion="1">
  <ui width="812" height="375">
    <tab name="main">
      <labeled-knob x="100" y="60" label="Group 1" type="float" minValue="0" maxValue="1" textColor="FF000000" value="0.5">
        <binding type="amp" level="group" position="0" parameter="AMP_VOLUME" translation="linear" translationOutputMin="0" translationOutputMax="1.0"  />
      </labeled-knob>
      <labeled-knob x="200" y="60" label="Group 1" type="float" minValue="0" maxValue="1" textColor="FF000000" value="0.5">
        <binding type="amp" level="group" position="1" parameter="AMP_VOLUME" translation="linear" translationOutputMin="0" translationOutputMax="1.0" />
      </labeled-knob>
    </tab>
  </ui>
  <groups>
    <group name="Group1">
      <!-- Samples for group 1 go here -->
    </group>

    <group name="Group2">
      <!-- Samples for group 2 go here -->
    </group>
  </groups>
</DecentSampler>

by decentsamples (6.3k points)
...