Skip to content

setValue of webaudio-knob #49

Description

@schoko11

Hi,

i dynamicalls add knobs to a div

 <label class="fw-bold"> labelllBB</label>   
                      <webaudio-knob class="inputKnobFix" id="fxConatainerx1" diameter=75 step=5 min=0 max=30 src="ASSETS/pots/kjLEDknob_1447_64x64_64.png" value=5></webaudio-knob>

when setting a value with

document.getElementById("fxpar1").setValue(10,true);

(or when provided as value tag, which can be seen in the upper html code)
the knob is set to the right position but its value is not displayed underneath (as opposed to turning the knob by hand)

i need to do an extra

document.getElementById("fxpar1").innerHTML = "10";

to display the value under the knob..., is there a way to avoid the second step ? (class "webautioctrl-label)
it does work, with the "webaudio-param", but i have to style that seperatly (guessing that is the only way???, and i can't set text as value with "webaudio-param")

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions