Skip to content

Commit

Permalink
v0.8.7
Browse files Browse the repository at this point in the history
- Enhancement in method `meico.msm.Msm.parseProgramChangeMap()` so MIDI program change events can also be generated after date 0.0. This makes it possible to switch instrument/timbre during the music.
  • Loading branch information
axelberndt committed Jun 3, 2020
1 parent 6922c00 commit b2c0cd7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
### Version History


#### v0.8.7
- Enhancement in method `meico.msm.Msm.parseProgramChangeMap()` so MIDI program change events can also be generated after date 0.0. This makes it possible to switch instrument/timbre during the music.


#### v0.8.6
- Another bugfix in method `meico.mpm.elements.styles.defs.ArticulationDef.articulateNote()` so style switches with no attribute `defaultArticulation` (it is optional) are supported.

Expand Down
2 changes: 1 addition & 1 deletion src/meico/Meico.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author Axel Berndt
*/
public class Meico {
public static final String version = "0.8.6";
public static final String version = "0.8.7";

public static void main(String[] args) {
System.out.println("meico v" + Meico.version);
Expand Down
2 changes: 1 addition & 1 deletion src/meico/msm/Msm.java
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ private boolean parseProgramChangeMap(Element part, Track track, short channel,
if (date == 0.0)
weHaveAnInitialPrgCh = true;
short value = Short.parseShort(n.getAttributeValue("value"));
track.add(EventMaker.createProgramChange(channel, 0, value)); // add program change event
track.add(EventMaker.createProgramChange(channel, date, value)); // add program change event
}
return weHaveAnInitialPrgCh;
}
Expand Down

0 comments on commit b2c0cd7

Please sign in to comment.