This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
children: | |
workers: | |
hosts: | |
pico2: | |
ansible_host: 192.168.0.202 | |
pico3: | |
ansible_host: 192.168.0.203 | |
pico4: | |
ansible_host: 192.168.0.204 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BaseNoteModel extends StaffElementModel { | |
// snip ... | |
/* | |
* A note or rest can have multiple beams | |
*/ | |
private Optional<List<BeamEnum>> beams = Optional.empty(); | |
// snip ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MeasureModel extends ScoreContainerModel { | |
// snip ... | |
private List<PartModel> parts = new ArrayList<PartModel>(); | |
// snip ... | |
public List<PartModel> getParts() { | |
return parts; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AutoBeamSimpleTestAlgo1 { | |
// for divisions = 840 | |
private static Map<Integer, Integer> durations = Map.of( | |
BaseNoteModel.semiBreve, 3360, | |
BaseNoteModel.minim, 1680, | |
BaseNoteModel.crotchet, 840, | |
BaseNoteModel.quaver, 420, | |
BaseNoteModel.semiQuaver, 210, | |
BaseNoteModel.demiSemiQuaver, 105, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Divisions { | |
public static int divisionsPerBeat(MusicalContext mcx) { | |
var div = mcx.getDivisions() * 4; | |
var top = mcx.getTimeSig().getTop(); | |
var bot = mcx.getTimeSig().getBottom(); | |
var bpb = TimeSigUtil.beatsPerBar(mcx.getTimeSig()); | |
return (div * top) / bot / bpb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TimeSigUtil { | |
public static boolean isCompoundTime(TimeSigModel model) { | |
if ( model.getTop() == 3 ) | |
return false; | |
if ( model.getTop() % 3 == 0 ) | |
return true; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xyz.arwhite.music.helpers; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Optional; | |
import java.util.stream.Collectors; | |
import xyz.arwhite.music.models.BaseNoteModel; | |
import xyz.arwhite.music.models.BeamEnum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xyz.arwhite.music.helpers; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Optional; | |
import java.util.stream.Collectors; | |
import xyz.arwhite.music.models.BaseNoteModel; | |
import xyz.arwhite.music.models.BeamEnum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xyz.arwhite.music.helpers; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Optional; | |
import java.util.stream.Collectors; | |
import xyz.arwhite.music.models.BaseNoteModel; | |
import xyz.arwhite.music.models.BeamEnum; | |
import xyz.arwhite.music.models.MeasureModel; |
OlderNewer