Welcome to Decent Sampler Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
I am making an instrument (Harmonium) and I have ran into problem with the LFO.

My intention is to create an UI element that controls vibrato waveform, frequency and amount. Frequency and amount work just fine but the waveform shape does not work.

Here are code snippets of the thing:

<control
 ... bla bla bla ...>

    <state name="Sinusoidal">
        <binding type="modulator" level="instrument" modulatorIndex="0"    parameter="SHAPE" translation="fixed_value" translationValue="sine" />
    </state>
    <state name="Square">
        <binding type="modulator" level="instrument" modulatorIndex="0"    parameter="SHAPE" translation="fixed_value" translationValue="square" />
    </state>
    <state name="Sawtooth">
        <binding type="modulator" level="instrument" modulatorIndex="0"    parameter="SHAPE" translation="fixed_value" translationValue="saw" />
    </state>
    <state name="Triangle">
        <binding type="modulator" level="instrument" modulatorIndex="0"    parameter="SHAPE" translation="fixed_value" translationValue="triangle" />
    </state>
</control>

< more bla bla bla >

    <modulators>
        <lfo shape="sine">
            <binding type="amp" level="instrument" parameter="GLOBAL_TUNING" modBehavior="add" />
        </lfo>
    </modulators>

I have tried every trick in the book including four separate vfo's but this creates a new problem with controlling the vibrato amount using UI.

This might be a bug.

The version I am running (VST3) is 1,22,4

I tried this with VST3 and VST versions - had no luck.

I am running it in Debian 13 and I installed it as a static package.
in Using the Sampler by esko-ilola (220 points)
reshown by esko-ilola

1 Answer

0 votes
Well, I found the answer to this myself.

There is a difference between type and valueType.

In the control element this should be valueType="multi_state" in order to that to work. The UI works perfectly with type="multi_state" but the states themselves do not get triggered so any binding in there have no effect.

My bad, sorry about the confusion.
by esko-ilola (220 points)
...