Skip to content

Commit

Permalink
v0.8.45
Browse files Browse the repository at this point in the history
- Bugfix in method `meico.mpm.elements.Performance.getAllMsmPartsAffectedByGlobalMap()` which caused some global performance features not being applied correctly to all affected maps.
  • Loading branch information
axelberndt committed Nov 11, 2022
1 parent a12923e commit 4fe89e8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 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.45
- Bugfix in method `meico.mpm.elements.Performance.getAllMsmPartsAffectedByGlobalMap()` which caused some global performance features not being applied correctly to all affected maps.


#### v0.8.44
- Bugfix in `meico.mpm.elements.maps.OrnamentationMap` methods `renderAllNonmillisecondsModifiersToMap()` and `renderMillisecondsModifiersToMap()`. Temporary attributes from the `temporalSpread` modifier were processed incorrectly.

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.44";
public static final String version = "0.8.45";

public static void main(String[] args) {
System.out.println("meico v" + Meico.version);
Expand Down
14 changes: 8 additions & 6 deletions src/meico/mpm/elements/Performance.java
Original file line number Diff line number Diff line change
Expand Up @@ -577,13 +577,15 @@ public Part getCorrespondingPart(Element msmPart) {
private ArrayList<Element> getAllMsmPartsAffectedByGlobalMap(Msm msm, String mapType) {
ArrayList<Element> msmPartsWithoutLocalMap = new ArrayList<>();

for (Part part : this.getAllParts()) { // check all MPM parts
if (part.getDated().getMap(mapType) != null) // if the part has a local map of the given type
continue; // it is not affected by a global map of that type
for (Element msmPart : msm.getParts()) // first we add all parts, later we see which have to be removed
msmPartsWithoutLocalMap.add(msmPart);

Element msmPart = msm.getPart(part.getNumber(), part.getName(), part.getMidiChannel(), part.getMidiPort()); // find the part in the MSM
if (msmPart != null)
msmPartsWithoutLocalMap.add(msmPart); // add it to the list
for (Part part : this.getAllParts()) { // check all MPM parts
if (part.getDated().getMap(mapType) != null) { // if the part has a local map of the given type
Element msmPart = msm.getPart(part.getNumber(), part.getName(), part.getMidiChannel(), part.getMidiPort()); // find the part in the MSM
if (msmPart != null) // found it
msmPartsWithoutLocalMap.remove(msmPart); // remove it from our list
}
}
return msmPartsWithoutLocalMap;
}
Expand Down

0 comments on commit 4fe89e8

Please sign in to comment.