getYValueFromBPM method
- int bpm
Converts BPM value to screen y-coordinate.
bpm
is the BPM value.
Returns the y-coordinate on the screen.
Implementation
double getYValueFromBPM(int bpm) {
double adjustedBPM = (bpm - scaleOrigin).toDouble();
adjustedBPM = adjustedBPM / 2; //scaled down version for mobile phone
double yValue = yOrigin - (adjustedBPM * pixelsPerOneMM);
//Log.i("bpmvalue", bpm + " " + adjustedBPM + " " + y_value);
return yValue;
}