use of com.xenoage.zong.core.instrument.PitchedInstrument in project Zong by Xenoage.
the class Test72c method testTransposes.
@Test
public void testTransposes() {
// start instrument
Part part = score.getStavesList().getParts().get(0);
PitchedInstrument instrument = (PitchedInstrument) part.getFirstInstrument();
assertEquals(expectedTransposes[0], instrument.getTranspose());
// instrument change in measure 1
InstrumentChange instrChange = score.getMeasure(MP.atMeasure(0, 1)).getInstrumentChanges().get(Companion.get_0());
instrument = (PitchedInstrument) instrChange.getInstrument();
assertEquals(expectedTransposes[1], instrument.getTranspose());
}
use of com.xenoage.zong.core.instrument.PitchedInstrument in project Zong by Xenoage.
the class Test72a method testTransposes.
@Test
public void testTransposes() {
for (int iPart : range(3)) {
Part part = score.getStavesList().getParts().get(iPart);
PitchedInstrument instrument = (PitchedInstrument) part.getFirstInstrument();
assertEquals("Part " + iPart, expectedTransposes[iPart], instrument.getTranspose());
}
}
Aggregations