Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set reasonable values for glide and make sure they're rounded so thin…

…gs don't sound too crazy
  • Loading branch information...
commit a69b4a0eb69286a0f130280cd30da82da1c85bc7 1 parent dad28b2
@beager authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 websynth_gui.js
View
7 websynth_gui.js
@@ -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');
Please sign in to comment.
Something went wrong with that request. Please try again.