Skip to content

Commit

Permalink
revert brightness controller to the previous one
Browse files Browse the repository at this point in the history
  • Loading branch information
spessasus committed Mar 29, 2024
1 parent 9f0b34e commit 52c64d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/spessasynth_lib/soundfont/chunk/modulators.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ export const defaultModulators = [

// cc 74 (brightness) to filterFc
new Modulator({
srcEnum: getModSourceEnum(modulatorCurveTypes.linear, 0, 1 , 1, midiControllers.brightness), // linear forwards bipolar cc 74
srcEnum: getModSourceEnum(modulatorCurveTypes.linear, 1, 0 , 1, midiControllers.brightness), // linear forwards bipolar cc 74
dest: generatorTypes.initialFilterFc,
amt: -5000,
amt: 4000,
secSrcEnum: 0x0, // no controller
transform: 0
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ resetArray[midiControllers.mainVolume] = 100 << 7;
resetArray[midiControllers.expressionController] = 127 << 7;
resetArray[midiControllers.pan] = 64 << 7;
resetArray[midiControllers.releaseTime] = 64 << 7;
resetArray[midiControllers.brightness] = 127 << 7;
resetArray[midiControllers.brightness] = 64 << 7;
resetArray[NON_CC_INDEX_OFFSET + modulatorSources.pitchWheel] = 8192;
resetArray[NON_CC_INDEX_OFFSET + modulatorSources.pitchWheelRange] = 2 << 7;
resetArray[NON_CC_INDEX_OFFSET + modulatorSources.channelPressure] = 127 << 7;
Expand Down

0 comments on commit 52c64d2

Please sign in to comment.