webaudio-controls

GUI parts library for Web application using WebComponents


Project maintained by g200kg Hosted on GitHub Pages — Theme by mattgraham

Basic Usage :

Advanced Usage and Application Notes :


Resizing After Creation

This is a resize test after creating the webaudio-controls elements. Attributes such as “diameter”, “width”, and “height” can be changed later to resize elements.


Knob

Size :


<button onclick="$('#knob1')[0].diameter=25">Small</button>
<button onclick="$('#knob1')[0].diameter=50">Mid</button>
<button onclick="$('#knob1')[0].diameter=100">Large</button>  
<webaudio-knob id="knob1" diameter="50"></webaudio-knob>



Param

Size :


<button onclick="$('#para1')[0].width=25">Width Small</button>
<button onclick="$('#para1')[0].width=100">Width Large</button>
<button onclick="$('#para1')[0].height=16">Height Small</button>
<button onclick="$('#para1')[0].height=48">Height Large</button>
<button onclick="$('#para1')[0].fontsize=9">Font Small</button>
<button onclick="$('#para1')[0].fontsize=48">Font Large</button>  
<webaudio-param id="para1" width="100" height="16"></webaudio-param>  



Slider

Size :


<button onclick="$('#sl1')[0].height=50;$('#sl1')[0].width=10">
  Small</button>
<button onclick="$('#sl1')[0].height=100;$('#sl1')[0].width=40">
  Mid</button>
<button onclick="$('#sl1')[0].height=200;$('#sl1')[0].width=80">
  Large</button>  
<webaudio-slider id="sl1" height="100" width="40"></webaudio-slider>  



Switch

Size :


<button onclick="$('#sw1')[0].height=25;$('#sw1')[0].width=25">
  Small</button>
<button onclick="$('#sw1')[0].height=50;$('#sw1')[0].width=50">
  Mid</button>
<button onclick="$('#sw1')[0].height=100;$('#sw1')[0].width=100">
  Large</button>  
<webaudio-switch id="sw1" height="50" width="50"></webaudio-switch>



Keyboard

Size :
Keys :


Size :
<button onclick="$('#kb1')[0].width=100;$('#kb1')[0].height=20;">
  Small</button>
<button onclick="$('#kb1')[0].width=200;$('#kb1')[0].height=40;">
  Mid</button>
<button onclick="$('#kb1')[0].width=400;$('#kb1')[0].height=80;">
  Large</button>  
Keys :
<button onclick="$('#kb1')[0].keys=13;">13 Keys</button>
<button onclick="$('#kb1')[0].keys=25;">25 Keys</button>
<button onclick="$('#kb1')[0].keys=49;">49 Keys</button>
<button onclick="$('#kb1')[0].keys=61;">61 Keys</button>  
<webaudio-keyboard id="kb1" width="400" height="80"></webaudio-keyboard>