Package jmsltestsuite
Class TranscribeScore8
java.lang.Object
jmsltestsuite.TranscribeScore8
- All Implemented Interfaces:
TranscriberListener
public class TranscribeScore8 extends java.lang.Object implements TranscriberListener
TranscriberListener gets a callback for every note added to a Score during the transcription
process. You can make decisions about this Note and access it, adding text, sccents, marks,
dynamics, etc
JMSL's com.softsynth.jmsl.score.transcribe package enables the transcription of arbitrary
MusicShape data into common music notation.
This test uses Note setText() and TranscriberListener to add algorithmically generated lyrics to
a transcription It sets marks on Note depending on its note index
- Author:
- Nick Didkovsky, (c) 2002 Nick Didkovsky, All Rights reserved.
-
Constructor Summary
Constructors Constructor Description TranscribeScore8()
-
Method Summary
Modifier and Type Method Description static void
main(java.lang.String[] args)
void
noteAdded(Score score, Note note)
Notify listener when a Note is added to score by the transcriber.void
notifyCarriedOverMusicShape(Score score, int currentMeasureNumber, MusicShape musicShape)
Notify listener of note events that will spill over into the next measure, ie notes that are found within the current time window but will round up to beat 1 of the following measure.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TranscribeScore8
public TranscribeScore8()
-
-
Method Details
-
noteAdded
Notify listener when a Note is added to score by the transcriber. Use this to do special things to the Note, like set a dynamic, or transpose it if it is out of range of a particular instrument, etc Notice that setting text on an interval, while supported by JMSL/Score causes problems when exported to MusicXML and imported into Finale. So instead of setting text on an interval, retrieve the chord's root and append interval's text to the root's text- Specified by:
noteAdded
in interfaceTranscriberListener
-
notifyCarriedOverMusicShape
public void notifyCarriedOverMusicShape(Score score, int currentMeasureNumber, MusicShape musicShape)Notify listener of note events that will spill over into the next measure, ie notes that are found within the current time window but will round up to beat 1 of the following measure. Note: musicShape could be null if there was no spillover!- Specified by:
notifyCarriedOverMusicShape
in interfaceTranscriberListener
-
main
public static void main(java.lang.String[] args)
-