Skip to content

Commit

Permalink
change velocity according to value defined in instruments.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed May 16, 2014
1 parent e47d772 commit b9b5d20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libmscore/rendermidi.cpp
Expand Up @@ -275,6 +275,10 @@ static void collectMeasureEvents(EventMap* events, Measure* m, Staff* staff, int
int velocity = staff->velocities().velo(seg->tick());
Instrument* instr = chord->staff()->part()->instr(tick);
int channel = instr->channel(chord->upNote()->subchannel()).channel;

foreach (Articulation* a, chord->articulations()) {
instr->updateVelocity(&velocity,channel, a->subtypeName());
}

for (Chord* c : chord->graceNotes()) {
for (const Note* note : c->notes())
Expand Down

0 comments on commit b9b5d20

Please sign in to comment.