int Ruler::pos2pix(const Pos& p) const { // return lrint((p.time(_timeType) + 480) * _xmag) - _xpos - 5; return lrint((p.time(_timeType) + 480) * _xmag) - _xpos - 1; }
int Ruler::pos2pix(const Pos& p) const { return lrint((p.time(_timeType)+480) * _xmag) + MAP_OFFSET - _xpos; }
int PianoView::pos2pix(const Pos& p) const { return p.time(_timeType) + MAP_OFFSET; }
int WaveView::pos2pix(const Pos& p) const { return lrint((p.time(_timeType) + 480) * _xmag) + MAP_OFFSET - _xpos + pianoWidth; }