Search in sources :

Example 16 with Clef

use of com.xenoage.zong.core.music.clef.Clef in project Zong by Xenoage.

the class Base46c method getExpectedClefs.

static List<Tuple2<MP, Clef>> getExpectedClefs() {
    List<Tuple2<MP, Clef>> clefs = alist();
    clefs.add(t(atBeat(0, 0, unknown, _0), new Clef(ClefType.clefTreble)));
    clefs.add(t(atBeat(0, 2, unknown, _0), new Clef(new ClefType(ClefSymbol.C, 2))));
    clefs.add(t(atBeat(0, 3, unknown, fr(2, 4)), new Clef(ClefType.clefTreble)));
    return clefs;
}
Also used : Tuple2(com.xenoage.utils.kernel.Tuple2) Clef(com.xenoage.zong.core.music.clef.Clef) ClefType(com.xenoage.zong.core.music.clef.ClefType)

Aggregations

Clef (com.xenoage.zong.core.music.clef.Clef)16 TraditionalKey (com.xenoage.zong.core.music.key.TraditionalKey)9 Key (com.xenoage.zong.core.music.key.Key)5 Rest (com.xenoage.zong.core.music.rest.Rest)5 TimeSignature (com.xenoage.zong.core.music.time.TimeSignature)5 ElementSpacing (com.xenoage.zong.musiclayout.spacing.ElementSpacing)5 Fraction (com.xenoage.utils.math.Fraction)4 Score (com.xenoage.zong.core.Score)4 ClefType (com.xenoage.zong.core.music.clef.ClefType)4 Part (com.xenoage.zong.core.music.Part)3 Dynamic (com.xenoage.zong.core.music.direction.Dynamic)3 Test (org.junit.Test)3 Tuple2 (com.xenoage.utils.kernel.Tuple2)2 ColumnElementWrite (com.xenoage.zong.commands.core.music.ColumnElementWrite)2 PartAdd (com.xenoage.zong.commands.core.music.PartAdd)2 Instrument (com.xenoage.zong.core.instrument.Instrument)2 InstrumentChange (com.xenoage.zong.core.music.InstrumentChange)2 Chord (com.xenoage.zong.core.music.chord.Chord)2 StavesRange (com.xenoage.zong.core.music.group.StavesRange)2 Cursor (com.xenoage.zong.io.selection.Cursor)2