A C D E F G I J L M N O P R S T V W

A

add(Pattern) - Method in class org.jfugue.Pattern
Adds an additional pattern to the end of this pattern.
add(String) - Method in class org.jfugue.Pattern
Adds a music string to the end of this pattern.
addElement(JFugueElement) - Method in class org.jfugue.Pattern
Adds an individual element to the pattern.
addEvent(int, int, int, int, long) - Method in class org.jfugue.EventManager
Adds a ShortMessage.NOTE_ON event to the current track, using attack and decay velocity values.
addEvent(int, int, int, long) - Method in class org.jfugue.EventManager
Adds a MIDI event to the current track.
addParserListener(ParserListener) - Method in class org.jfugue.Parser
Adds a ParserListener.
addTransform(String, String) - Method in class org.jfugue.examples.LSysMusic
 
advanceTrackTimer(long) - Method in class org.jfugue.EventManager
Advances the timer for the current track by the specified duration, which is specified in Pulses Per Quarter (PPQ)

C

CONTROL_EXC - Static variable in class org.jfugue.JFugueException
The index of the Controller command, Xindex=value, is not a valid controller.
CONTROL_FORMAT_EXC - Static variable in class org.jfugue.JFugueException
The Controller command, Xindex=value, is malformed.
Controller - class org.jfugue.Controller.
Contains information for MIDI Controller Events.
Controller() - Constructor for class org.jfugue.Controller
Creates a new Controller object
Controller(byte, byte) - Constructor for class org.jfugue.Controller
Creates a new Controller object, with the specified controller index and value.
controllerEvent(Controller) - Method in class org.jfugue.ParserListenerAdapter
Called when the parser encounters a controller event.
controllerEvent(Controller) - Method in class org.jfugue.PatternTransformer
Extend this method to make your transformer modify the controller messages.
controllerEvent(Controller) - Method in interface org.jfugue.ParserListener
Called when the parser encounters a controller event.
controllerEvent(Controller) - Method in class org.jfugue.Renderer
 
controllerEvent(Controller) - Method in class org.jfugue.demo.ReversePatternTransformer
 
CrabCanon - class org.jfugue.examples.CrabCanon.
This class plays Johann Sebastian Bach's "Crab Canon".
CrabCanon() - Constructor for class org.jfugue.examples.CrabCanon
 

D

DEFAULT_VELOCITY - Static variable in class org.jfugue.Note
Default value for attack and decay velocity.
DurationPatternTool - class org.jfugue.demo.DurationPatternTool.
 
DurationPatternTool() - Constructor for class org.jfugue.demo.DurationPatternTool
 
DurationPatternTransformer - class org.jfugue.demo.DurationPatternTransformer.
The DurationPatternTransformer multiplies the duration of all notes in the given Music String by a factor passed as a variable.
DurationPatternTransformer() - Constructor for class org.jfugue.demo.DurationPatternTransformer
Instantiates a new DurationPatternTransformer object.

E

EventManager - class org.jfugue.EventManager.
Places musical data into the MIDI sequence.
EventManager() - Constructor for class org.jfugue.EventManager
 
execute(Pattern) - Method in class org.jfugue.PatternTool
Runs the pattern tool and returns the result
EXPECTED_BYTE - Static variable in class org.jfugue.JFugueException
The parser expected a byte.
EXPECTED_DOUBLE - Static variable in class org.jfugue.JFugueException
The parser expected a double.
EXPECTED_INT - Static variable in class org.jfugue.JFugueException
The parser expected an int.
EXPECTED_LONG - Static variable in class org.jfugue.JFugueException
The parser expected a long.

F

FACTOR - Static variable in class org.jfugue.demo.DurationPatternTransformer
Pass this String to putVariable, along with the factor by which you wish to alter the duration.
FactTest - class org.jfugue.examples.FactTest.
 
FactTest() - Constructor for class org.jfugue.examples.FactTest
 
FilePlayer - class org.jfugue.demo.FilePlayer.
Plays music strings from a text file.
FilePlayer() - Constructor for class org.jfugue.demo.FilePlayer
 
FIRST - Static variable in class org.jfugue.Note
Indicates that this note is the first note in the token.
FrereJacques - class org.jfugue.examples.FrereJacques.
This class plays the familiar song "Frere Jacques".
FrereJacques() - Constructor for class org.jfugue.examples.FrereJacques
 

G

generate(int) - Method in class org.jfugue.examples.LSysMusic
 
getAttackVelocity() - Method in class org.jfugue.Note
Returns the attack velocity for this note.
getDecayVelocity() - Method in class org.jfugue.Note
Returns the decay velocity for this note.
getDecimalDuration() - Method in class org.jfugue.Note
Returns the decimal fraction value for the duration.
getDemo() - Method in class org.jfugue.PatternFactory
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.
getDescription() - Method in class org.jfugue.PatternTool
Indicates what this PatternTool does.
getDescription() - Method in class org.jfugue.PatternTransformer
Indicates what this PatternTransformer does.
getDescription() - Method in class org.jfugue.demo.DurationPatternTransformer
 
getDescription() - Method in class org.jfugue.demo.IntervalPatternTransformer
 
getDescription() - Method in class org.jfugue.demo.DurationPatternTool
 
getDescription() - Method in class org.jfugue.demo.ReversePatternTransformer
 
getDuration() - Method in class org.jfugue.Note
Returns the duration of this note.
getIndex() - Method in class org.jfugue.Controller
Returns the index of the controller event for this object.
getInstrument() - Method in class org.jfugue.Instrument
Returns the instrument used in this object
getMusicString() - Method in class org.jfugue.Pattern
Returns the music string kept in this pattern
getNumberOfPatterns() - Method in class org.jfugue.PatternFactory
 
getNumberOfPatterns() - Method in class org.jfugue.demo.RockPatternFactory
 
getPattern(int) - Method in class org.jfugue.PatternFactory
 
getPattern(int) - Method in class org.jfugue.demo.RockPatternFactory
 
getResult() - Method in class org.jfugue.PatternTool
Returns the result of the pattern tool after it has been executed on a pattern.
getResult() - Method in class org.jfugue.demo.DurationPatternTool
 
getSequence() - Method in class org.jfugue.EventManager
Returns the current sequence, which is a collection of tracks.
getSequencer() - Method in class org.jfugue.Player
Returns the sequencer containing the MIDI data from a pattern that has been parsed.
getTempo() - Method in class org.jfugue.Tempo
Returns the value of the tempo for this object.
getTempo() - Method in class org.jfugue.Parser
Returns the tempo for the current song.
getTracing() - Static method in class org.jfugue.Parser
Returns the current state of tracing.
getTrackTimer() - Method in class org.jfugue.EventManager
Returns the timer for the current track.
getType() - Method in class org.jfugue.Note
Returns the note type - either First, Sequential, or Parallel.
getValue() - Method in class org.jfugue.Note
Returns the numeric value of this note.
getValue() - Method in class org.jfugue.Controller
Returns the value of the controller event for this object.
getVariable(String) - Method in class org.jfugue.PatternTransformer
Returns a variable setting.
getVariables() - Method in class org.jfugue.PatternTransformer
Returns a list of variables needed by your Transformer.
getVariables() - Method in class org.jfugue.demo.DurationPatternTransformer
Returns a string declaring what variables DurationPatternTransformer can use to perform the transformation.
getVariables() - Method in class org.jfugue.demo.IntervalPatternTransformer
Returns a string declaring what variables IntervalPatternTransformer can use to perform the transformation.
getVariables() - Method in class org.jfugue.demo.ReversePatternTransformer
ReversePatternTransformer does not require that the user specify any variables.
getVoice() - Method in class org.jfugue.Voice
Returns the voice used in this object

I

Instrument - class org.jfugue.Instrument.
Represents instrument changes, also known as patch changes.
INSTRUMENT_EXC - Static variable in class org.jfugue.JFugueException
The Instrument command, Iinstrument, is not a valid instrument.
Instrument(byte) - Constructor for class org.jfugue.Instrument
Creates a new Instrument object, with the specified instrument number.
instrumentEvent(Instrument) - Method in class org.jfugue.ParserListenerAdapter
Called when the parser encounters a instrument event.
instrumentEvent(Instrument) - Method in class org.jfugue.PatternTransformer
Extend this method to make your transformer modify the instrument.
instrumentEvent(Instrument) - Method in interface org.jfugue.ParserListener
Called when the parser encounters a instrument event.
instrumentEvent(Instrument) - Method in class org.jfugue.Renderer
 
instrumentEvent(Instrument) - Method in class org.jfugue.demo.ReversePatternTransformer
 
INTERVAL - Static variable in class org.jfugue.demo.IntervalPatternTransformer
Pass this String to putVariable, along with the interval by which you wish to alter the notes.
INTERVAL - Static variable in class org.jfugue.demo.ReversePatternTransformer
 
IntervalPatternTransformer - class org.jfugue.demo.IntervalPatternTransformer.
The IntervalPatternTransformer alters music by changing the interval, or step, for each note.
IntervalPatternTransformer() - Constructor for class org.jfugue.demo.IntervalPatternTransformer
Instantiates a new IntervalPatternTransformer object.
isRest() - Method in class org.jfugue.Note
Returns whether this Note object actually represents a rest.
isValidToken(String) - Method in class org.jfugue.Parser
Checks whether a token is valid.

J

JFugueDefinitions - class org.jfugue.JFugueDefinitions.
Loads default definitions into the JFugue dictionary.
JFugueElement - interface org.jfugue.JFugueElement.
This is the base class for the JFugue elements, including Voice, Instrument, Note, Controller, and Tempo.
JFugueException - exception org.jfugue.JFugueException.
Handles JFugue parsing exceptions.
JFugueException(String, String, String) - Constructor for class org.jfugue.JFugueException
Create a new JFugueException.

L

LSysMusic - class org.jfugue.examples.LSysMusic.
This class generates a string of music based on a Lindenmayer System, which is a system of grammar re-write rules.
LSysMusic() - Constructor for class org.jfugue.examples.LSysMusic
 

M

main(String[]) - Static method in class org.jfugue.Parser
main( ) is used for diagnostic purposes.
main(String[]) - Static method in class org.jfugue.demo.FilePlayer
 
main(String[]) - Static method in class org.jfugue.examples.FrereJacques
 
main(String[]) - Static method in class org.jfugue.examples.FactTest
 
main(String[]) - Static method in class org.jfugue.examples.LSysMusic
 
main(String[]) - Static method in class org.jfugue.examples.CrabCanon
 
musicString() - Method in class org.jfugue.Note
Returns the Music String representing this element and all of its settings.
musicString() - Method in class org.jfugue.Tempo
Returns the Music String representing this element and all of its settings.
musicString() - Method in class org.jfugue.Controller
Returns the Music String representing this element and all of its settings.
musicString() - Method in class org.jfugue.Voice
Returns the Music String representing this element and all of its settings.
musicString() - Method in interface org.jfugue.JFugueElement
Returns the Music String representing this element and all of its settings.
musicString() - Method in class org.jfugue.Instrument
Returns the Music String representing this element and all of its settings.

N

Note - class org.jfugue.Note.
Contains all information necessary for a musical note, including pitch, duration, attack velocity, and decay velocity.
NOTE_EXC - Static variable in class org.jfugue.JFugueException
The Note command does not specify a valid percussion sound.
NOTE_OCTAVE_EXC - Static variable in class org.jfugue.JFugueException
The Octave value calculated by the parser is out of range.
Note() - Constructor for class org.jfugue.Note
Instantiates a new Note object.
Note(byte, long) - Constructor for class org.jfugue.Note
Instantiates a new Note object with the given note value and duration.
noteEvent(Note) - Method in class org.jfugue.ParserListenerAdapter
Called when the parser encounters an initial note event.
noteEvent(Note) - Method in class org.jfugue.PatternTransformer
Extend this method to make your transformer modify the note.
noteEvent(Note) - Method in interface org.jfugue.ParserListener
Called when the parser encounters an initial note event.
noteEvent(Note) - Method in class org.jfugue.Renderer
 
noteEvent(Note) - Method in class org.jfugue.demo.DurationPatternTransformer
Transforms the given note
noteEvent(Note) - Method in class org.jfugue.demo.IntervalPatternTransformer
Transforms the given note
noteEvent(Note) - Method in class org.jfugue.demo.DurationPatternTool
 
noteEvent(Note) - Method in class org.jfugue.demo.ReversePatternTransformer
 

O

OCTAVE_EXC - Static variable in class org.jfugue.JFugueException
The Octave specifier within the Note command is out of range.
org.jfugue - package org.jfugue
 
org.jfugue.demo - package org.jfugue.demo
 
org.jfugue.examples - package org.jfugue.examples
 

P

PARALLEL - Static variable in class org.jfugue.Note
Indicates that this note is played at the same time as a previous note in the same token.
parallelNoteEvent(Note) - Method in class org.jfugue.ParserListenerAdapter
Called when the parser encounters a parallel note event.
parallelNoteEvent(Note) - Method in class org.jfugue.PatternTransformer
Extend this method to make your transformer modify the note.
parallelNoteEvent(Note) - Method in interface org.jfugue.ParserListener
Called when the parser encounters a parallel note event.
parallelNoteEvent(Note) - Method in class org.jfugue.Renderer
 
parallelNoteEvent(Note) - Method in class org.jfugue.demo.DurationPatternTransformer
Transforms the given note
parallelNoteEvent(Note) - Method in class org.jfugue.demo.IntervalPatternTransformer
Transforms the given note
parallelNoteEvent(Note) - Method in class org.jfugue.demo.ReversePatternTransformer
 
parse(Pattern) - Method in class org.jfugue.Parser
Parses a Pattern and fires events to subscribed ParserListener interfaces.
Parser - class org.jfugue.Parser.
Parses music strings, and fires events for ParserListener interfaces when tokens are interpreted.
PARSER_SPACES_EXC - Static variable in class org.jfugue.JFugueException
The parser encountered spaces in a single token.
Parser() - Constructor for class org.jfugue.Parser
Creates a new Parser object, and populates the dictionary with initial entries.
ParserListener - interface org.jfugue.ParserListener.
Classes that implement ParserListener and add themselves as listeners to a Parser object will receive events when the Parser inteprets tokens from a Music String.
ParserListenerAdapter - class org.jfugue.ParserListenerAdapter.
This Adapter class implements all of the methods of ParserListener, but the implementations are blank.
ParserListenerAdapter() - Constructor for class org.jfugue.ParserListenerAdapter
 
Pattern - class org.jfugue.Pattern.
This class represents a segment of music.
Pattern() - Constructor for class org.jfugue.Pattern
Instantiates a new pattern
Pattern(String) - Constructor for class org.jfugue.Pattern
Instantiates a new pattern using the given music string
PatternFactory - class org.jfugue.PatternFactory.
This class is used to generate pre-defined Patterns during runtime.
PatternFactory() - Constructor for class org.jfugue.PatternFactory
 
PatternTool - class org.jfugue.PatternTool.
 
PatternTool() - Constructor for class org.jfugue.PatternTool
 
PatternTransformer - class org.jfugue.PatternTransformer.
This class is used to transform a pattern.
PatternTransformer() - Constructor for class org.jfugue.PatternTransformer
 
play(Pattern) - Method in class org.jfugue.Player
Plays a pattern by setting up a Renderer and feeding the pattern to it.
Player - class org.jfugue.Player.
Prepares a pattern to be turned into music by the Renderer.
Player() - Constructor for class org.jfugue.Player
Instantiates a new Player object.
populateDictionary(HashMap) - Static method in class org.jfugue.JFugueDefinitions
Loads default definitions into the JFugue dictionary.
putVariable(String, Object) - Method in class org.jfugue.PatternTransformer
Places a value for a variable.

R

readMusicFromFile(String) - Method in class org.jfugue.demo.FilePlayer
Given a filename, returns a string of the contents of that file.
removeParserListener(ParserListener) - Method in class org.jfugue.Parser
Removes a ParserListener.
render(Pattern) - Method in class org.jfugue.Renderer
Starts rendering a pattern by sending it to the parser and listening for parser events to be fired when tokens from the pattern are interpreted.
Renderer - class org.jfugue.Renderer.
This class takes a pattern, and turns it into wonderful music.
Renderer() - Constructor for class org.jfugue.Renderer
Instantiates a Renderer
reset() - Method in class org.jfugue.PatternTool
Resets the variables in a subclass of PatternTool.
reset() - Method in class org.jfugue.demo.DurationPatternTool
 
returnPattern - Variable in class org.jfugue.PatternTransformer
Contains the pattern to return at the end of the transformation.
ReversePatternTransformer - class org.jfugue.demo.ReversePatternTransformer.
Reverses a given pattern.
ReversePatternTransformer() - Constructor for class org.jfugue.demo.ReversePatternTransformer
 
RockPatternFactory - class org.jfugue.demo.RockPatternFactory.
Generates pre-defined rock rhythms.
RockPatternFactory() - Constructor for class org.jfugue.demo.RockPatternFactory
 

S

save(Pattern, String) - Method in class org.jfugue.Player
Saves the MIDI data from a pattern into a file.
SEQUENTIAL - Static variable in class org.jfugue.Note
Indicates that this note immediately follows a previous note in the same token.
sequentialNoteEvent(Note) - Method in class org.jfugue.ParserListenerAdapter
Called when the parser encounters a sequential note event.
sequentialNoteEvent(Note) - Method in class org.jfugue.PatternTransformer
Extend this method to make your transformer modify the note.
sequentialNoteEvent(Note) - Method in interface org.jfugue.ParserListener
Called when the parser encounters a sequential note event.
sequentialNoteEvent(Note) - Method in class org.jfugue.Renderer
 
sequentialNoteEvent(Note) - Method in class org.jfugue.demo.DurationPatternTransformer
Transforms the given note
sequentialNoteEvent(Note) - Method in class org.jfugue.demo.IntervalPatternTransformer
Transforms the given note
sequentialNoteEvent(Note) - Method in class org.jfugue.demo.ReversePatternTransformer
 
setAttackVelocty(byte) - Method in class org.jfugue.Note
Sets the attack velocity for this note.
setAxiom(String) - Method in class org.jfugue.examples.LSysMusic
 
setCurrentTrack(byte) - Method in class org.jfugue.EventManager
Sets the current track, or channel, to which new events will be added.
setDecayVelocty(byte) - Method in class org.jfugue.Note
Sets the decay velocity for this note.
setDecimalDuration(double) - Method in class org.jfugue.Note
Sets the decimal fraction value for the duration.
setDuration(long) - Method in class org.jfugue.Note
Sets the duration of this note.
setIndex(byte) - Method in class org.jfugue.Controller
Sets the index of the controller event for this object.
setInstrument(byte) - Method in class org.jfugue.Instrument
Sets the value of the instrument for this object.
setMusicString(String) - Method in class org.jfugue.Pattern
Sets the music string kept by this pattern.
setRest(boolean) - Method in class org.jfugue.Note
Indicates whether this Note object actually represents a rest.
setTempo(int) - Method in class org.jfugue.Tempo
Sets the value of the tempo for this object.
setTempo(int) - Method in class org.jfugue.Parser
Sets the tempo for the current song.
setTracing(int) - Static method in class org.jfugue.Parser
Turns tracing on or off.
setTrackTimer(long) - Method in class org.jfugue.EventManager
Sets the timer for the current track by the given time, which is specified in Pulses Per Quarter (PPQ)
setType(byte) - Method in class org.jfugue.Note
Sets the note type - either First, Sequential, or Parallel.
setValue(byte) - Method in class org.jfugue.Note
Sets the numeric value of this note.
setValue(byte) - Method in class org.jfugue.Controller
Sets the value of the controller event for this object.
setVoice(byte) - Method in class org.jfugue.Voice
Sets the value of the voice for this object.

T

Tempo - class org.jfugue.Tempo.
Represents tempo changes.
TEMPO_EXC - Static variable in class org.jfugue.JFugueException
The Tempo command, Ttempo, is out of range.
Tempo(int) - Constructor for class org.jfugue.Tempo
Creates a new Tempo object, with the specified tempo value.
tempoEvent(Tempo) - Method in class org.jfugue.ParserListenerAdapter
Called when the parser encounters a tempo event.
tempoEvent(Tempo) - Method in class org.jfugue.PatternTransformer
Extend this method to make your transformer modify the tempo.
tempoEvent(Tempo) - Method in interface org.jfugue.ParserListener
Called when the parser encounters a tempo event.
tempoEvent(Tempo) - Method in class org.jfugue.Renderer
 
tempoEvent(Tempo) - Method in class org.jfugue.demo.ReversePatternTransformer
 
TRACING_OFF - Static variable in class org.jfugue.Parser
Pass this value to setTracing( ) to turn tracing off.
TRACING_ON - Static variable in class org.jfugue.Parser
Pass this value to setTracing( ) to turn tracing on.
transform(Pattern) - Method in class org.jfugue.PatternTransformer
Transforms the pattern, according to the event method that you have presumably extended.

V

Voice - class org.jfugue.Voice.
Represents voice changes, also known as track changes.
VOICE_EXC - Static variable in class org.jfugue.JFugueException
The Voice command, Vvoice, is out of range.
Voice(byte) - Constructor for class org.jfugue.Voice
Creates a new Voice object, with the specified voice value.
voiceEvent(Voice) - Method in class org.jfugue.ParserListenerAdapter
Called when the parser encounters a voice event.
voiceEvent(Voice) - Method in class org.jfugue.PatternTransformer
Extend this method to make your transformer modify the voice.
voiceEvent(Voice) - Method in interface org.jfugue.ParserListener
Called when the parser encounters a voice event.
voiceEvent(Voice) - Method in class org.jfugue.Renderer
 
voiceEvent(Voice) - Method in class org.jfugue.demo.DurationPatternTool
 
voiceEvent(Voice) - Method in class org.jfugue.demo.ReversePatternTransformer
 

W

WORD_NOT_DEFINED_EXC - Static variable in class org.jfugue.JFugueException
The parser cannot find a definition for the given word.

A C D E F G I J L M N O P R S T V W