public class RunningOctaveCollector<P extends PitchModOctave> extends Object
pitch ::= (octUp | octDown)? pitchModOctave | pitchModOctave octaveRegisterRunning octave requires a notion of "nearest" pitch, given a certain AbsolutePitch and a certain pitchModOctave. The CWN convention, as implemened here, requires that there is a "WhiteKey" as the basis for notation.
Modifier and Type | Field and Description |
---|---|
protected Map<Event,OctaveRegister> |
explicitOcts |
protected Map<Event,Integer> |
jumps |
protected Function2<List<String>,Integer,Integer> |
pack |
protected Map<Event,P> |
pitches |
Constructor and Description |
---|
RunningOctaveCollector(Translet.Parser<P> parserPitchClass,
Translet.Parser<OctaveRegister> parserOctaveRegister,
String octDown,
String octUp,
Function<P,WhiteKeyModOctave> stripAlterations) |
Modifier and Type | Method and Description |
---|---|
Translet.Parser<?> |
parser() |
void |
reify(MuLiMessageReceiver<XMLDocumentIdentifier> msg,
Iterable<Event> evs,
Map<Event,PitchAndOctave<OctaveRegister,P>> result)
Analyses the parameter text, and creates EventSets accordingly,
enters them into the result MultiMap and enters the Events into the
EventSets.
|
protected final Map<Event,P extends PitchModOctave> pitches
protected final Map<Event,OctaveRegister> explicitOcts
public RunningOctaveCollector(Translet.Parser<P> parserPitchClass, Translet.Parser<OctaveRegister> parserOctaveRegister, String octDown, String octUp, Function<P,WhiteKeyModOctave> stripAlterations)
public final Translet.Parser<?> parser()
public void reify(MuLiMessageReceiver<XMLDocumentIdentifier> msg, Iterable<Event> evs, Map<Event,PitchAndOctave<OctaveRegister,P>> result)