$('[data-touch=' + control + '] .touch-gain').val(value).trigger('change');
}
+ $('.loop input').on('change', function() {
+ var sample_idx = parseInt($(this).parents('[data-touch]').data('touch'));
+ if (self.samples[sample_idx]) {
+ self.samples[sample_idx].loop = $(this).is(':checked');
+ }
+ });
+
$(document).keypress(function(ev) {
var sample_idx = KEYBOARD_CODES.indexOf(ev.key);
if (sample_idx != -1) {