Fixed an issue with the first note entered not being heard

This commit is contained in:
pereverzev_v 2022-12-06 12:21:22 +02:00
parent 9903a5ebc0
commit f21a004608

View file

@ -1022,6 +1022,14 @@ struct ChannelMap {
{
m_standardPrograms = findPrograms(setupData);
m_articulationMapping = articulationSounds(setupData);
if (m_standardPrograms.empty()) {
return;
}
//!Note ensuring that the default channel being pre-initialized
const midi::Program& standardProgram = m_standardPrograms.at(0);
resolveChannel(0, mpe::ArticulationType::Standard, standardProgram);
}
midi::channel_t resolveChannelForEvent(const mpe::NoteEvent& event)