コード例 #1
0
ファイル: Part.java プロジェクト: KenIseki/banbro
 private int getValue(List<StepValue<Integer>> list, int step) {
   Integer value = BDXUtil.getValueWithStep(list, step, true);
   if (value == null) {
     return 0;
   }
   return value;
 }
コード例 #2
0
ファイル: Part.java プロジェクト: KenIseki/banbro
 public List<Chord> getChordSet(int step) {
   if (_type != InstrumentType.GUITAR && _type != InstrumentType.PIANO) {
     throw new IllegalStateException();
   }
   List<Chord> chordSet = BDXUtil.getValueWithStep(_chordSetList, step, true);
   if (chordSet == null) {
     return Collections.emptyList();
   }
   return chordSet;
 }
コード例 #3
0
ファイル: Part.java プロジェクト: KenIseki/banbro
 public Clef getClef(int step) {
   if (_type != InstrumentType.SINGLE) {
     throw new IllegalStateException();
   }
   return BDXUtil.getValueWithStep(_clef, step, true);
 }
コード例 #4
0
ファイル: Part.java プロジェクト: KenIseki/banbro
 public Voicing getVoicing(int step) {
   if (_type != InstrumentType.PIANO) {
     throw new IllegalStateException();
   }
   return BDXUtil.getValueWithStep(_voicing, step, true);
 }