Here's where I think the problem is:
Code: Select all
var wF = {
0: "Sine",
1: "Square",
2: "Sawtooth",
3: "Triangle"
};
$(function () {
$("#osc1_wave").slider({
min: 0,
max: 3,
value: 0,
step: 1,
slide: function (event, ui) {
$("#cur_wave_osc1").val(wF[ui.value]); <--------
osc1.type.value = $("#cur_wave_osc1").val(); <------------
}
});
//initial waveform.//
$("#cur_wave_osc1").val("Sine");
});
http://jsfiddle.net/ryanhagz/03xcwhnk/
I appreciate any help on this!
Thanks.