org.jfugue
Class PatternFactory

java.lang.Object
  extended by org.jfugue.PatternFactory
Direct Known Subclasses:
RockPatternFactory

public abstract class PatternFactory
extends java.lang.Object

This class is used to generate pre-defined Patterns during runtime. A perfect use of this class would be to extend it and make your new class generate rhythms of various music styles, like Rock, Swing, or 8-Beat. You could also use it to generate a series of tones or notes that uniquely identifies your product.

Version:
2.0
Author:
David Koelle

Constructor Summary
PatternFactory()
           
 
Method Summary
 Pattern getDemo()
          Takes all of the patterns generated by the PatternFactory, and adds them together into one Pattern that can be used to hear all of the music the PatternFactory is capable of producing.
abstract  int getNumberOfPatterns()
           
abstract  Pattern getPattern(int selection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternFactory

public PatternFactory()
Method Detail

getPattern

public abstract Pattern getPattern(int selection)

getNumberOfPatterns

public abstract int getNumberOfPatterns()

getDemo

public Pattern getDemo()
Takes all of the patterns generated by the PatternFactory, and adds them together into one Pattern that can be used to hear all of the music the PatternFactory is capable of producing.