public Pitch getPitchByIntervalDown(int itv) { Pitch n = new Pitch(pit); n.pit -= itv; return n; }
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; }
public Pitch getPitchByIntervalUp(int itv) { Pitch n = new Pitch(pit); n.pit += itv; return n; }