Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setValue of webaudio-knob #49

Open
schoko11 opened this issue Mar 6, 2023 · 0 comments
Open

setValue of webaudio-knob #49

schoko11 opened this issue Mar 6, 2023 · 0 comments

Comments

@schoko11
Copy link

schoko11 commented Mar 6, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant