Class BeatsPerMinute
java.lang.Object
nl.genart.VJMotion.beatsperminute.BeatsPerMinute
BPM timings for Processing..
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean[]
helper booleans that turn true every n beats.boolean[]
helper booleans that turn true every n beats for 1 frame.static final String
Read this libraries version -
Constructor Summary
ConstructorsConstructorDescriptionBeatsPerMinute
(processing.core.PApplet parent) Call this constructor in the setup() method of your sketch to initialize and start the library. -
Method Summary
Modifier and TypeMethodDescriptionfloat
adsr
(float attackDuration) float
adsr
(float attackDuration, float decayDuration, float sustainLevel, float releaseDuration) float
adsr
(float attackDuration, float decayDuration, float sustainLevel, float releaseDuration, float durationInBeats) float
adsr
(float attackDuration, float decayDuration, float sustainLevel, float releaseDuration, float durationInBeats, float delayInBeats) void
draw()
float
ease()
float
ease
(float durationInBeats) float
ease
(float durationInBeats, float delayInBeats) float
float
easeBounce
(float durationInBeats) float
easeBounce
(float durationInBeats, float delayInBeats) int
int
getBPM()
void
keyEvent
(processing.event.KeyEvent event) float
linear()
float
linear
(float durationInBeats) float
linear
(float durationInBeats, float delayInBeats) float
float
linearBounce
(float durationInBeats) float
linearBounce
(float durationInBeats, float delayInBeats) void
post()
void
pre()
setBPM
(int bpm) setInfoPanelKey
(char keyboardKey) setInfoPanelY
(int y)
-
Field Details
-
every
public boolean[] everyhelper 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_oncehelper booleans that turn true every n beats for 1 frame. -
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
-
getBPM
public int getBPM() -
getBeatCount
public int getBeatCount() -
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
-
keyEvent
public void keyEvent(processing.event.KeyEvent event) -
showInfoPanel
-
setInfoPanelY
-
setInfoPanelKey
-
draw
public void draw() -
post
public void post() -
pre
public void pre()
-