Re:Euclidean Drum Machine
by kaoD on Thursday November 06, 2014 @05:22PM
(#8570177)
Suggestion: a random button.
[ Parent
| on HN ]
(function(){
for(var i=1;i<6;i++){
$('.space-'+i).val(Math.floor((Math.random() * 16) + 1)).trigger('change');
$('.fill-'+i).val(Math.floor((Math.random() * 16) + 1)).trigger('change');
$('.offset-'+i).val(Math.floor((Math.random() * 8) + 1)).trigger('change');
}
})()