Class BeatsPerMinute

java.lang.Object
nl.genart.VJMotion.beatsperminute.BeatsPerMinute

public class BeatsPerMinute extends Object
BPM timings for Processing..
  • Field Details

    • every

      public boolean[] every
      helper booleans that turn true every n beats. Added one extra upfront that isn't used, so the user could do every[3] which means 3rd beat.
    • every_once

      public boolean[] every_once
      helper booleans that turn true every n beats for 1 frame.
    • VERSION

      public static final String VERSION
      Read this libraries version
      See Also:
  • Constructor Details

    • BeatsPerMinute

      public BeatsPerMinute(processing.core.PApplet parent)
      Call this constructor in the setup() method of your sketch to initialize and start the library. Set the second argument to be your starting bpm amount.
      Parameters:
      parent - Your sketch's PApplet object //@param bpmTemp the initial beat per minute amount (integer)
  • Method Details

    • setBPM

      public BeatsPerMinute setBPM(int bpm)
    • getBPM

      public int getBPM()
    • getBeatCount

      public int getBeatCount()
    • getSurfaceTitle

      public String getSurfaceTitle()
    • adsr

      public float adsr(float attackDuration)
    • adsr

      public float adsr(float attackDuration, float decayDuration, float sustainLevel, float releaseDuration)
    • adsr

      public float adsr(float attackDuration, float decayDuration, float sustainLevel, float releaseDuration, float durationInBeats)
    • adsr

      public float adsr(float attackDuration, float decayDuration, float sustainLevel, float releaseDuration, float durationInBeats, float delayInBeats)
    • linear

      public float linear()
    • linear

      public float linear(float durationInBeats)
    • linearBounce

      public float linearBounce()
    • linearBounce

      public float linearBounce(float durationInBeats)
    • linear

      public float linear(float durationInBeats, float delayInBeats)
    • linearBounce

      public float linearBounce(float durationInBeats, float delayInBeats)
    • ease

      public float ease()
    • ease

      public float ease(float durationInBeats)
    • ease

      public float ease(float durationInBeats, float delayInBeats)
    • easeBounce

      public float easeBounce()
    • easeBounce

      public float easeBounce(float durationInBeats)
    • easeBounce

      public float easeBounce(float durationInBeats, float delayInBeats)
    • disableKeyPress

      public BeatsPerMinute disableKeyPress()
    • keyEvent

      public void keyEvent(processing.event.KeyEvent event)
    • showInfoPanel

      public BeatsPerMinute showInfoPanel()
    • setInfoPanelY

      public BeatsPerMinute setInfoPanelY(int y)
    • setInfoPanelKey

      public BeatsPerMinute setInfoPanelKey(char keyboardKey)
    • draw

      public void draw()
    • post

      public void post()
    • pre

      public void pre()