Fixed an issue with the first note entered not being heard
This commit is contained in:
parent
9903a5ebc0
commit
f21a004608
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue