Esempio n. 1
0
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;
      }
Esempio n. 2
0
int Ruler::pos2pix(const Pos& p) const
      {
      return lrint((p.time(_timeType)+480) * _xmag) + MAP_OFFSET - _xpos;
      }
Esempio n. 3
0
int PianoView::pos2pix(const Pos& p) const
      {
      return p.time(_timeType) + MAP_OFFSET;
      }
Esempio n. 4
0
int WaveView::pos2pix(const Pos& p) const
      {
      return lrint((p.time(_timeType) + 480) * _xmag)
         + MAP_OFFSET - _xpos + pianoWidth;
      }