com.softsynth.jmsl.score
Class BeamRenderer

java.lang.Object
  extended by com.softsynth.jmsl.score.BeamRenderer

public class BeamRenderer
extends java.lang.Object

A class with static methods to draw Beams across a Vector of Notes.

Author:
Nick Didkovsky, copyright 2000 Nick Didkovsky

Field Summary
static java.lang.String copyright
           
 
Constructor Summary
BeamRenderer()
           
 
Method Summary
static boolean containsDursBiggerThanEighth(Track t, int start, int end)
           
static RunRange findDurationRun(java.util.Vector notes, int startIndex, int duration)
          duration in terms of 8th, 16th, 32, 64, 128 .
Durations match upwards, ie, if scanning for 16th, then notes with 16, 32, 64, 128 durs match
beamsBreak flag true if you want beams on consecutive non-rest notes only.
static void renderBeams(java.awt.Graphics g, double zoom, java.util.Vector notes)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
See Also:
Constant Field Values
Constructor Detail

BeamRenderer

public BeamRenderer()
Method Detail

renderBeams

public static void renderBeams(java.awt.Graphics g,
                               double zoom,
                               java.util.Vector notes)

findDurationRun

public static RunRange findDurationRun(java.util.Vector notes,
                                       int startIndex,
                                       int duration)
duration in terms of 8th, 16th, 32, 64, 128 .
Durations match upwards, ie, if scanning for 16th, then notes with 16, 32, 64, 128 durs match
beamsBreak flag true if you want beams on consecutive non-rest notes only. False if you want beams to cross rests.


containsDursBiggerThanEighth

public static boolean containsDursBiggerThanEighth(Track t,
                                                   int start,
                                                   int end)