Skip to content

Commit

Permalink
Add default panning and select E.PIANO 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontag committed Jan 9, 2016
1 parent 9f50a83 commit 3bdd216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,11 @@ app.controller('PresetCtrl', ['$scope', '$localStorage', '$http', function ($sco
self.presets[i] = Angular.copy(self.basePresets[i]);
}
}
self.selectedIndex = 10; // Select E.PIANO 1
self.onChange();
});

this.onChange = function() {
console.log("changed preset!", this.selectedIndex);
this.params = this.presets[this.selectedIndex];
FMVoice.setParams(this.params);
// TODO: separate UI parameters from internal synth parameters
Expand Down
2 changes: 1 addition & 1 deletion src/sysex-dx7.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var SysexDX7 = {
operator.freqCoarse = Math.floor(oscData.charCodeAt(15) >> 1);
operator.freqFine = oscData.charCodeAt(16);
// Extended/non-standard parameters
operator.pan = 0;
operator.pan = ((i + 1)%3 - 1) * 25; // Alternate panning: -25, 0, 25, -25, 0, 25
operator.idx = i;
operator.enabled = true;
}
Expand Down

0 comments on commit 3bdd216

Please sign in to comment.