Skip to content

Commit

Permalink
no negative attenuation
Browse files Browse the repository at this point in the history
  • Loading branch information
spessasus committed Sep 9, 2024
1 parent fbf0e14 commit 0842c10
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/spessasynth_lib/soundfont/read_sf2/generators.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ generatorLimits[generatorTypes.startloopAddrsCoarseOffset] = {min: -32768, max:
generatorLimits[generatorTypes.keyNum] = {min: -1, max: 127, def: -1};
generatorLimits[generatorTypes.velocity] = {min: -1, max: 127, def: -1};

generatorLimits[generatorTypes.initialAttenuation] = {min: -250, max: 1440, def: 0}; // soundblaster allows 10dB of gain (divide by 0.4)
generatorLimits[generatorTypes.initialAttenuation] = {min: 0, max: 1440, def: 0}; // soundblaster allows 10dB of gain (divide by 0.4)

generatorLimits[generatorTypes.endloopAddrsCoarseOffset] = {min: -32768, max: 32768, def: 0};

Expand Down
Loading

0 comments on commit 0842c10

Please sign in to comment.