Skip to content

Commit

Permalink
Set reasonable values for glide and make sure they're rounded so thin…
Browse files Browse the repository at this point in the history
…gs don't sound too crazy
  • Loading branch information
beager committed Aug 4, 2012
1 parent dad28b2 commit a69b4a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions websynth_gui.js
Expand Up @@ -50,10 +50,11 @@ $(function() {
// knob
$('<img />').knob({
id: 'knob01', image: 'images/knob01.png',
left: 60, top: 142, width: 48, height: 48, value: 10,
left: 60, top: 142, width: 48, height: 48, value: 10, min: 1, max: 20,
change: (function() {
p.vco1.set_glide_time($(this).knob("value"));
p.vco2.set_glide_time($(this).knob("value"));
var value = Math.round($(this).knob("value"));
p.vco1.set_glide_time(value);
p.vco2.set_glide_time(value);
})
}).appendTo('#draw');

Expand Down

0 comments on commit a69b4a0

Please sign in to comment.