Search in sources :

Example 1 with BeamAdd

use of com.xenoage.zong.commands.core.music.beam.BeamAdd in project Zong by Xenoage.

the class Base24c method getExpectedChords.

default Chord[] getExpectedChords() {
    Chord[] ret = { ch(Companion.fr(2, 4), Companion.pi('E', 0, 5)), ch(Companion.fr(2, 4), Companion.pi('E', 0, 5)), gr(Companion.fr(1, 16), false, Companion.pi('G', 0, 5)), gr(Companion.fr(1, 16), false, Companion.pi('A', 0, 5)) };
    new BeamAdd(Companion.beamFromChordsUnchecked(alist(ret[2], ret[3]))).execute();
    return ret;
}
Also used : BeamAdd(com.xenoage.zong.commands.core.music.beam.BeamAdd) Chord(com.xenoage.zong.core.music.chord.Chord)

Example 2 with BeamAdd

use of com.xenoage.zong.commands.core.music.beam.BeamAdd in project Zong by Xenoage.

the class Base24d method getExpectedChords.

default Chord[] getExpectedChords() {
    Chord[] ret = { ch(Companion.fr(2, 4), Companion.pi('E', 0, 5)), gr(Companion.fr(1, 16), false, Companion.pi('G', 0, 5)), gr(Companion.fr(1, 16), false, Companion.pi('A', 0, 5)), gr(Companion.fr(1, 16), false, Companion.pi('A', 0, 5)), ch(Companion.fr(2, 4), Companion.pi('E', 0, 5)), gr(Companion.fr(1, 16), false, Companion.pi('G', 0, 5)), gr(Companion.fr(1, 16), false, Companion.pi('A', 0, 5)) };
    new BeamAdd(Companion.beamFromChordsUnchecked(alist(ret[4], ret[5]))).execute();
    return ret;
}
Also used : BeamAdd(com.xenoage.zong.commands.core.music.beam.BeamAdd) Chord(com.xenoage.zong.core.music.chord.Chord)

Example 3 with BeamAdd

use of com.xenoage.zong.commands.core.music.beam.BeamAdd in project Zong by Xenoage.

the class Base24a method getExpectedChords.

static Chord[] getExpectedChords() {
    // [b]eamed chords [s]tart and [e]nd
    Chord b1s, b1e, b2s, b2e;
    Chord[] expectedChords = new Chord[] { // measure 0
    gr(Companion.fr(1, 16), false, Companion.pi('D', 0, 5)), ch(Companion.fr(1, 4), Companion.pi('C', 0, 5)), b1s = gr(Companion.fr(1, 16), false, Companion.pi('E', 0, 5)), b1e = gr(Companion.fr(1, 16), false, Companion.pi('D', 0, 5)), ch(Companion.fr(1, 4), Companion.pi('C', 0, 5)), gr(Companion.fr(1, 16), false, Companion.pi('D', 0, 5)), ch(Companion.fr(1, 4), Companion.pi('C', 0, 5)), gr(Companion.fr(1, 8), false, Companion.pi('D', 0, 5)), ch(Companion.fr(1, 4), Companion.pi('C', 0, 5)), // measure 1
    gr(Companion.fr(1, 16), true, Companion.pi('D', 0, 5)), ch(Companion.fr(1, 4), Companion.pi('C', 0, 5)), b2s = gr(Companion.fr(1, 16), false, Companion.pi('E', 0, 5)), b2e = gr(Companion.fr(1, 16), false, Companion.pi('D', 0, 5)), ch(Companion.fr(2, 4), Companion.pi('C', 0, 5)), gr(Companion.fr(1, 16), true, Companion.pi('D', 0, 5)), ch(Companion.fr(1, 8), Companion.pi('C', 0, 5)), gr(Companion.fr(1, 16), true, Companion.pi('D', 0, 5)), ch(Companion.fr(1, 8), Companion.pi('C', 0, 5)), gr(Companion.fr(1, 16), false, Companion.pi('E', 0, 5)), // measure 2
    gr(Companion.fr(1, 16), false, Companion.pi('E', 0, 5)), ch(Companion.fr(1, 4), Companion.pi('F', 0, 4), Companion.pi('C', 0, 5)), gr(Companion.fr(1, 4), false, Companion.pi('D', 1, 5)), ch(Companion.fr(1, 4), Companion.pi('C', 0, 5)), gr(Companion.fr(1, 4), false, Companion.pi('D', -1, 5)), gr(Companion.fr(1, 4), false, Companion.pi('A', -1, 4)), ch(Companion.fr(1, 4), Companion.pi('C', 0, 5)), ch(Companion.fr(1, 4), Companion.pi('C', 0, 5)) };
    new BeamAdd(Companion.beamFromChordsUnchecked(alist(b1s, b1e))).execute();
    new BeamAdd(Companion.beamFromChordsUnchecked(alist(b2s, b2e))).execute();
    return expectedChords;
}
Also used : BeamAdd(com.xenoage.zong.commands.core.music.beam.BeamAdd) Chord(com.xenoage.zong.core.music.chord.Chord)

Example 4 with BeamAdd

use of com.xenoage.zong.commands.core.music.beam.BeamAdd in project Zong by Xenoage.

the class Base24e method getExpectedStavesChords.

static Chord[][] getExpectedStavesChords() {
    Chord[][] ret = { { // staff 0
    ch(Companion.fr(2, 4), Companion.pi('E', 0, 5)), ch(Companion.fr(2, 4), Companion.pi('E', 0, 5)) }, { // staff 1
    gr(Companion.fr(1, 16), false, Companion.pi('G', 0, 5)), gr(Companion.fr(1, 16), false, Companion.pi('A', 0, 5)) } };
    new BeamAdd(Companion.beamFromChordsUnchecked(alist(ret[0][0], ret[0][1]))).execute();
    return ret;
}
Also used : BeamAdd(com.xenoage.zong.commands.core.music.beam.BeamAdd)

Aggregations

BeamAdd (com.xenoage.zong.commands.core.music.beam.BeamAdd)4 Chord (com.xenoage.zong.core.music.chord.Chord)3