MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / HandleSlideCommand

Method HandleSlideCommand

Source/SongState.cpp:198–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void stChannelState::HandleSlideCommand(stEffectCommand cmd) {
199 if (Effect[value_cast(effect_t::PORTAMENTO)] == -1) { // anything else within can be used here
200 Effect[value_cast(effect_t::PORTAMENTO)] = cmd.fx == effect_t::PORTAMENTO ? cmd.param : -2;
201 Effect[value_cast(effect_t::ARPEGGIO)] = cmd.fx == effect_t::ARPEGGIO ? cmd.param : -2;
202 Effect[value_cast(effect_t::PORTA_UP)] = cmd.fx == effect_t::PORTA_UP ? cmd.param : -2;
203 Effect[value_cast(effect_t::PORTA_DOWN)] = cmd.fx == effect_t::PORTA_DOWN ? cmd.param : -2;
204 }
205}
206
207void stChannelState::HandleExxCommand2A03(unsigned char param) {
208 if (Effect_LengthCounter == -1 && param >= 0xE0 && param <= 0xE3)

Callers 1

RetrieveMethod · 0.80

Calls 1

value_castFunction · 0.85

Tested by

no test coverage detected