Package org.jfugue.pattern
Class Atom
- java.lang.Object
-
- org.jfugue.pattern.Atom
-
- All Implemented Interfaces:
PatternProducer
public class Atom extends java.lang.Object implements PatternProducer
An Atom represents a single entity of a Voice+Layer+Instrument+Note and is useful especially when using the Realtime Player, so all of the information about a specific note is conveyed at the same time. Pattern now has an atomize() method that will turn the Pattern into a collection of atoms.
-
-
Constructor Summary
Constructors Constructor Description Atom(byte voice, byte layer, byte instrument, java.lang.String note)
Atom(byte voice, byte layer, byte instrument, Note note)
Atom(java.lang.String voice, java.lang.String layer, java.lang.String instrument, java.lang.String note)
Atom(java.lang.String voice, java.lang.String layer, java.lang.String instrument, Note note)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getInstrument()
byte
getLayer()
Note
getNote()
Pattern
getPattern()
Returns a patternbyte
getVoice()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Atom
public Atom(byte voice, byte layer, byte instrument, java.lang.String note)
-
Atom
public Atom(byte voice, byte layer, byte instrument, Note note)
-
Atom
public Atom(java.lang.String voice, java.lang.String layer, java.lang.String instrument, java.lang.String note)
-
Atom
public Atom(java.lang.String voice, java.lang.String layer, java.lang.String instrument, Note note)
-
-
Method Detail
-
getVoice
public byte getVoice()
-
getLayer
public byte getLayer()
-
getInstrument
public byte getInstrument()
-
getNote
public Note getNote()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getPattern
public Pattern getPattern()
Description copied from interface:PatternProducer
Returns a pattern- Specified by:
getPattern
in interfacePatternProducer
-
-