#ifndef __STRUCTURES

#define __STRUCTURES

#define TICKWIDTH 8
#define BIGTICK   5

#define TICKSPERSECOND 100
struct DemoIDEView
{
  int         PixelToTick           (int x)
  {
    return m_iStartTick + (x/TICKWIDTH)*m_iScale;
  }

  int         TickToPixel           (int iTick)
  {
    return ((iTick - m_iStartTick)/m_iScale)*TICKWIDTH;
  }

  int                               m_iTicks;
  int                               m_iStartTick;
  int                               m_iScale;
  int                               m_iCurrentTick;
  int                               m_iPlaytick;
  bool                              m_bBPM;
  int                               m_iStartBPM;
  int                               m_iBPM;
};

#endif