Class BeadsAutomation

  • java.lang.Object
    • UGen
      • uk.ac.qmul.eecs.depic.daw.beads.BeadsAutomation
  • All Implemented Interfaces:
    Automation, Sequence


    public class BeadsAutomation
    extends UGen
    implements Automation
    An automation implemented as a Beads UGen. Automations are a series of audio rate slopes that change an parameter over time. So this version is implemented as a UGen that in the processBuffer produces audio rate values by linearly interpolating between adjacent automation points ( automation points are represented as AutomationValue objects )
    • Constructor Detail

      • BeadsAutomation

        public BeadsAutomation(uk.ac.qmul.eecs.depic.daw.beads.BeadsSoundWave wave,
                               Range<java.lang.Float> range,
                               java.awt.Color color,
                               float initialValue)
    • Method Detail

      • getColor

        public java.awt.Color getColor()
        Description copied from interface: Automation
        Returns the colour to draw this automation graphically
        Specified by:
        getColor in interface Automation
      • setValue

        public void setValue(float value)
      • getValue

        public float getValue()
      • add

        public AutomationValue add(float position,
                                   float value)
        Description copied from interface: Automation
        Adds a new AutomationValue object to this automation.
        Specified by:
        add in interface Automation
        Parameters:
        position - the position of the new object
        value - the value of the new object
        Returns:
        the new automation just created
      • remove

        public boolean remove(Sequence.Value value)
        Description copied from interface: Automation
        Removes an AutomationValue object from this automation.
        Specified by:
        remove in interface Automation
        Returns:
        true if this automation changed as a result of the call
      • getBegin

        public float getBegin()
        Specified by:
        getBegin in interface Sequence
      • getEnd

        public float getEnd()
        Specified by:
        getEnd in interface Sequence
      • getLen

        public float getLen()
        Returns the lenght of the automation in milliseconds
        Specified by:
        getLen in interface Sequence
        Returns:
        the lenght of the automation in milliseconds
      • reset

        public void reset()
        Description copied from interface: Automation
        Removes all the automation values.
        Specified by:
        reset in interface Automation
      • calculateBuffer

        public void calculateBuffer()
      • toString

        public java.lang.String toString()