MCPcopy Create free account
hub / github.com/LMMS/lmms / volumeLevel

Method volumeLevel

src/core/InstrumentSoundShaping.cpp:115–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114
115float InstrumentSoundShaping::volumeLevel( NotePlayHandle* n, const f_cnt_t frame )
116{
117 f_cnt_t envReleaseBegin = frame - n->releaseFramesDone() + n->framesBeforeRelease();
118
119 if( n->isReleased() == false )
120 {
121 envReleaseBegin += Engine::mixer()->framesPerPeriod();
122 }
123
124 float level;
125 m_envLfoParameters[Volume]->fillLevel( &level, frame, envReleaseBegin, 1 );
126
127 return level;
128}
129
130
131

Callers

nothing calls this directly

Calls 2

mixerFunction · 0.85
fillLevelMethod · 0.80

Tested by

no test coverage detected