Package jmslexamples
Class ProportionalNotation
java.lang.Object
jmslexamples.ProportionalNotation
- All Implemented Interfaces:
ScoreCanvasListener
public class ProportionalNotation extends java.lang.Object implements ScoreCanvasListener
Use stemless notes to generate a demo of proportional notation. Use a series of 64th notes and
make some of them hidden rests. Make all notes stemless.
Draw on top of a score using callback to create a light gray grid
- Author:
- Nick Didkovsky, (c) 2009 Nick Didkovsky, nick@didkovsky.com
-
Field Summary
Fields inherited from interface com.softsynth.jmsl.score.ScoreCanvasListener
copyright -
Constructor Summary
Constructors Constructor Description ProportionalNotation() -
Method Summary
Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent arg0)static voidmain(java.lang.String[] args)voidscoreCanvasClicked(ScoreCanvas canvas, java.awt.Point p, java.awt.event.MouseEvent e)executes when mouse is clicked and releasedvoidscoreCanvasDisplayedImageReady(Score score, ScoreCanvas canvas, java.awt.Image displayedImage)Called immediately before ScoreCanvas draws the completed offscreen display image to the canvas's graphics context.voidscoreCanvasDragged(ScoreCanvas canvas, java.awt.Point p, java.awt.event.MouseEvent e)executes when mouse is dragged (moved while mousedown)voidscoreCanvasKeyReleased(ScoreCanvas canvas, java.awt.event.KeyEvent keyEvent)voidscoreCanvasKeyTyped(ScoreCanvas canvas, java.awt.event.KeyEvent keyEvent)voidscoreCanvasPressed(ScoreCanvas canvas, java.awt.Point p, java.awt.event.MouseEvent e)executes when mouse button is pressed downvoidscoreCanvasReady(ScoreCanvas canvas)voidscoreCanvasRectangleSelected(ScoreCanvas canvas, java.awt.Point p1, java.awt.Point p2)executes when mouse is was dragged and released with no modifiers other than BUTTON1_MASK or SHIFT_MASKvoidscoreCanvasReleased(ScoreCanvas canvas, java.awt.Point p, java.awt.event.MouseEvent e)executes when mouse button is releasedvoidstart()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ProportionalNotation
public ProportionalNotation()
-
-
Method Details
-
main
public static void main(java.lang.String[] args) -
start
public void start() -
scoreCanvasClicked
Description copied from interface:ScoreCanvasListenerexecutes when mouse is clicked and released- Specified by:
scoreCanvasClickedin interfaceScoreCanvasListener
-
scoreCanvasRectangleSelected
Description copied from interface:ScoreCanvasListenerexecutes when mouse is was dragged and released with no modifiers other than BUTTON1_MASK or SHIFT_MASK- Specified by:
scoreCanvasRectangleSelectedin interfaceScoreCanvasListener
-
scoreCanvasKeyTyped
- Specified by:
scoreCanvasKeyTypedin interfaceScoreCanvasListener
-
scoreCanvasKeyReleased
- Specified by:
scoreCanvasKeyReleasedin interfaceScoreCanvasListener
-
scoreCanvasDisplayedImageReady
public void scoreCanvasDisplayedImageReady(Score score, ScoreCanvas canvas, java.awt.Image displayedImage)Called immediately before ScoreCanvas draws the completed offscreen display image to the canvas's graphics context. You may add drawing on top of the score by drawing in this method- Specified by:
scoreCanvasDisplayedImageReadyin interfaceScoreCanvasListener
-
scoreCanvasReady
- Specified by:
scoreCanvasReadyin interfaceScoreCanvasListener
-
scoreCanvasDragged
Description copied from interface:ScoreCanvasListenerexecutes when mouse is dragged (moved while mousedown)- Specified by:
scoreCanvasDraggedin interfaceScoreCanvasListener
-
scoreCanvasReleased
Description copied from interface:ScoreCanvasListenerexecutes when mouse button is released- Specified by:
scoreCanvasReleasedin interfaceScoreCanvasListener
-
scoreCanvasPressed
Description copied from interface:ScoreCanvasListenerexecutes when mouse button is pressed down- Specified by:
scoreCanvasPressedin interfaceScoreCanvasListener
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent arg0)
-