Class Atom

java.lang.Object
org.jfugue.pattern.Atom
All Implemented Interfaces:
PatternProducer

public class Atom extends 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 Details

    • Atom

      public Atom(byte voice, byte layer, byte instrument, String note)
    • Atom

      public Atom(byte voice, byte layer, byte instrument, Note note)
    • Atom

      public Atom(String voice, String layer, String instrument, String note)
    • Atom

      public Atom(String voice, String layer, String instrument, Note note)
  • Method Details

    • getVoice

      public byte getVoice()
    • getLayer

      public byte getLayer()
    • getInstrument

      public byte getInstrument()
    • getNote

      public Note getNote()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getPattern

      public Pattern getPattern()
      Description copied from interface: PatternProducer
      Returns a pattern
      Specified by:
      getPattern in interface PatternProducer