MCPcopy Create free account
hub / github.com/Wohlstand/OPL3BankEditor / EnvelopeGenerator

Method EnvelopeGenerator

src/opl/chips/java/JavaOPL3.hpp:1349–1358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1347}
1348
1349EnvelopeGenerator::EnvelopeGenerator() {
1350 stage = OFF;
1351 actualAttackRate = actualDecayRate = actualReleaseRate = 0;
1352 xAttackIncrement = xMinimumInAttack = 0;
1353 dBdecayIncrement = 0;
1354 dBreleaseIncrement = 0;
1355 attenuation = totalLevel = sustainLevel = 0;
1356 x = dBtoX(-96);
1357 envelope = -96;
1358}
1359
1360void EnvelopeGenerator::setActualSustainLevel(int sl) {
1361 // If all SL bits are 1, sustain level is set to -93 dB:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected