|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.rubettes.util.NoteGenerator
public abstract class NoteGenerator
A utility class for generating Note and Score denotators with ease. The following possibilities are provided for parallel use: - melody generation from a pitch list - iterative melody generation - single note generation
Constructor Summary | |
---|---|
NoteGenerator()
|
Method Summary | |
---|---|
void |
addNoteToMelody(double pitch)
Adds a note with the specified pitch to the iterative melody. |
abstract Denotator |
convertScore(Denotator input)
|
LimitDenotator |
copyAndSetLayer(LimitDenotator note,
int layerIndex)
|
LimitDenotator |
createAbsoluteNote(LimitDenotator note,
LimitDenotator referenceNote)
|
abstract PowerDenotator |
createEmptyScore()
|
LimitDenotator |
createNodeDenotator(Denotator note)
|
LimitDenotator |
createNodeDenotator(Denotator note,
Denotator macroScore)
|
LimitDenotator |
createNodeDenotator(double[] noteValues)
|
LimitDenotator |
createNodeDenotators(Denotator note,
Denotator macroScore)
|
LimitDenotator |
createNoteDenotator(double[] values)
Returns a new Note denotator with the specified parameters. |
LimitDenotator |
createNoteDenotator(double onset,
double pitch,
int loudness,
double duration,
int voice)
Returns a new Note denotator with the specified parameters. |
PowerDenotator |
createScoreWithMelody()
Returns the current iteratively generated melody. |
PowerDenotator |
createSimpleMelody(double noteDistance,
double... pitches)
Returns a Score denotator containing a note for every specified pitch. |
PowerDenotator |
createSimpleMelody(double noteDistance,
java.lang.Double[] pitches)
Returns a Score denotator containing a note for every specified pitch. |
java.lang.Double |
getDoubleValue(Denotator note,
int[] elementPath)
|
SimpleForm |
getDurationForm()
Returns the Duration form from the system repository. |
int |
getLayer(LimitDenotator node)
|
SimpleForm |
getLoudnessForm()
Returns the Loudness form from the system repository. |
SimpleForm |
getOnsetForm()
Returns the Onset form from the system repository. |
SimpleForm |
getPitchForm()
Returns the Pitch form from the system repository. |
PowerForm |
getScoreForm()
Returns the Score form from the system repository. |
LimitDenotator |
makeNoteAbsolute(LimitDenotator note,
LimitDenotator referenceNote)
|
LimitDenotator |
makeNoteRelative(LimitDenotator note,
LimitDenotator referenceNote)
|
void |
modifyNoteDenotator(LimitDenotator note,
double onset,
double duration)
Modifies the elements of the coordinates of a note denotator with the specified new values. |
void |
modifyNoteDenotator(LimitDenotator note,
double onset,
int loudness,
double duration)
Modifies the elements of the coordinates of a note denotator with the specified new values. |
void |
modifyNoteDenotator(LimitDenotator note,
int[] elementPath,
double value)
|
void |
startNewMelody(double noteDistance)
Starts a new iterative melody with the specified note distance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoteGenerator()
Method Detail |
---|
public abstract Denotator convertScore(Denotator input)
public abstract PowerDenotator createEmptyScore()
public PowerDenotator createSimpleMelody(double noteDistance, java.lang.Double[] pitches)
noteDistance
- - the distance between subsequent notespitches
- - an array of pitch valuespublic PowerDenotator createSimpleMelody(double noteDistance, double... pitches)
noteDistance
- - the distance between subsequent notespitches
- - the pitch valuespublic void startNewMelody(double noteDistance)
noteDistance
- - the distance between subsequent notespublic void addNoteToMelody(double pitch)
pitch
- - the pitch of the new notepublic PowerDenotator createScoreWithMelody()
public LimitDenotator createNoteDenotator(double[] values)
values
- public LimitDenotator createNoteDenotator(double onset, double pitch, int loudness, double duration, int voice)
onset
- pitch
- loudness
- duration
- public LimitDenotator makeNoteRelative(LimitDenotator note, LimitDenotator referenceNote)
public LimitDenotator makeNoteAbsolute(LimitDenotator note, LimitDenotator referenceNote)
public LimitDenotator createAbsoluteNote(LimitDenotator note, LimitDenotator referenceNote)
public LimitDenotator createNodeDenotator(double[] noteValues)
public LimitDenotator createNodeDenotators(Denotator note, Denotator macroScore)
public LimitDenotator createNodeDenotator(Denotator note)
public LimitDenotator createNodeDenotator(Denotator note, Denotator macroScore)
public LimitDenotator copyAndSetLayer(LimitDenotator note, int layerIndex)
public int getLayer(LimitDenotator node)
public void modifyNoteDenotator(LimitDenotator note, double onset, int loudness, double duration) throws RubatoException
note
- - the note, the values of which have to be replacedonset
- - the new onsetloudness
- - the new loudnessduration
- - the new duration
RubatoException
public void modifyNoteDenotator(LimitDenotator note, double onset, double duration) throws RubatoException
note
- - the note, the values of which have to be replacedonset
- - the new onsetduration
- - the new duration
RubatoException
public void modifyNoteDenotator(LimitDenotator note, int[] elementPath, double value)
public java.lang.Double getDoubleValue(Denotator note, int[] elementPath)
public PowerForm getScoreForm()
public SimpleForm getOnsetForm()
public SimpleForm getPitchForm()
public SimpleForm getLoudnessForm()
public SimpleForm getDurationForm()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |