Beispiel #1
0
 public Pitch getPitchByIntervalDown(int itv) {
   Pitch n = new Pitch(pit);
   n.pit -= itv;
   return n;
 }
Beispiel #2
0
 public Pitch getPitchByIntervalDown(String itv) throws ParserException {
   Pitch n = new Pitch(pit);
   if (!interval.containsKey(itv)) throw new ParserException("Invalid interval " + itv);
   n.pit -= interval.get(itv);
   return n;
 }
Beispiel #3
0
 public Pitch getPitchByIntervalUp(int itv) {
   Pitch n = new Pitch(pit);
   n.pit += itv;
   return n;
 }