-
Notifications
You must be signed in to change notification settings - Fork 15
Stroking Methods
Starts playing the metronome at a specific bpm.
Parameters:
bpm - The bpm you want the metronome to play at
Alias: startMetronome
Example:
startStroking(120);
Starts playing the metronome at a specific bpm for x seconds.
Parameters:
bpm - The bpm you want the metronome to play at
durationInSeconds - The amount of seconds you want this to last
Alias: startMetronome
Example:
startStroking(120, 60);
Stops the current playing metronome.
Alias: stopMetronome
Example:
stopMetronome();
Returns whether the sub is currently stroking/whether a metronome is running right now.
Alias: isMetronomeActive
Example:
if(isStroking()) {
sendMessage("Continue stroking!");
}
Adds or subtracts (negative bpm) to/from the current metronome bpm.
Parameters:
bpm - The bpm you want to add/subtract
Alias: addMetronomeBPM
Example:
addStrokingBPM(20);
sendMessage("Speed up!");
Returns the current metronome's bpm.
Alias: getMetronomeBPM
Example:
if(isStroking() && getStrokingBPM() > 120) {
addStrokingBPM(-20);
sendMessage("You can slow down for a bit.");
}