|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.score.NotePropertiesTransform com.softsynth.jmsl.score.transforms.LyricLevelTransform
public class LyricLevelTransform
Set the Y offset of the text of the note to a constant level below the staff
Field Summary |
---|
Fields inherited from class com.softsynth.jmsl.score.NotePropertiesTransform |
---|
copyright |
Constructor Summary | |
---|---|
LyricLevelTransform()
|
Method Summary | |
---|---|
void |
operate(Score score,
SelectionBuffer selectionBuffer)
Implement this method to do something to the Notes in the SelectionBuffer. |
Methods inherited from class com.softsynth.jmsl.score.NotePropertiesTransform |
---|
getName, setName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LyricLevelTransform()
Method Detail |
---|
public void operate(Score score, SelectionBuffer selectionBuffer)
NotePropertiesTransform
Example: // transpose pitch up an octave public void operate(SelectionBuffer selectionBuffer) { for (Enumeration e=selectionBuffer.elements(); e.hasMoreElements(); ) { Note note = (Note)e.nextElement(); if (!note.isRest()) { // get pitch data, transpose it, and set it again note.setPitchData(note.getPitchData()+12); // Use NoteFactory to recalculate staff level, accidental, and stem direction NoteFactory.setLevelPitch(note, note.getPitchData()); } } }
operate
in class NotePropertiesTransform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |