#define HEADER_W 472
#define HEADER_H  48

#define PANEL_COMMENT_W    136
#define PANEL_COMMENT_H     24
#define PANEL_LOGO_W       112
#define PANEL_LOGO_H        24
#define PANEL_RACK_W       472
#define PANEL_RACK_H        24
#define PANEL_SCALE_W      224
#define PANEL_SCALE_H       24

#define TOOLPANEL_HEIGHT    48
#define UNIT_HEIGHT         16
#define WOICE_HEIGHT        16
#define FIXEDUNIT_HEIGHT    24
#define NAMETRAY_WIDTH     144
#define WOICE_WIDTH        144
#define VOLUME_HEIGHT      128
#define SCROLL_HEIGHT       16
#define MEASNO_HEIGHT       10
#define STARTFIELD_HEIGHT   16
#define SCOPE_HEIGHT        16
						 
#define UNITNAME_WIDTH     112
#define UNITNAME_HEIGHT     16

#define WOICENAME_WIDTH    112
#define WOICENAME_HEIGHT    16

#define WOICENAME_WIDTH    112
#define WOICENAME_HEIGHT    16

#define NAMEBOX_WIDTH      128
#define NAMEBOX_HEIGHT      16

#define NOBOX_WIDTH         24
#define NOBOX_HEIGHT        16

#define TUNINGBOX_WIDTH     64
#define TUNINGBOX_HEIGHT    16

#define KEY_SEPARATOR        8
#define KEY_HEIGHT          16

#define MINVIEW_HEIGHT (HEADER_H + TOOLPANEL_HEIGHT + KEY_HEIGHT*2     \
						+ UNIT_HEIGHT + KEY_SEPARATOR + SCROLL_HEIGHT)

#define PROJECTNAME_WIDTH  152
#define PROJECTNAME_HEIGHT  16

#define DEFAULT_BEATWIDTH   48
#define DEFAULT_DEVINUM      4

// キーの数
#define KEYNUM            88// コードは 21 から 108


#define COLORINDEX_font_pcm     103
#define COLORINDEX_font_ptv     105
#define COLORINDEX_font_ptn     106
#define COLORINDEX_font_ogg     104
#define COLORINDEX_font_unit    107
#define COLORINDEX_font_project  11

#define COLORINDEX_play_out      19
#define COLORINDEX_play_field    20
#define COLORINDEX_play_marker   21

#define COLORINDEX_unit_lane_0  113
#define COLORINDEX_unit_lane_1  112

#define COLORINDEX_scale_0       99
#define COLORINDEX_scale_1      100
#define COLORINDEX_scale_2      101

#define COLORINDEX_delete_0      21

#define COLORINDEX_scope_line   127
#define COLORINDEX_scope_field  126

#define COLORINDEX_velocity_0   111
#define COLORINDEX_velocity_1   110

#define COLORINDEX_note_body_0   97
#define COLORINDEX_note_body_1   96

#define COLORINDEX_note_cur_0    18
#define COLORINDEX_note_cur_1    17
#define COLORINDEX_note_cur_2    16

#define COLORINDEX_note_sub_0   119
#define COLORINDEX_note_sub_1   119
#define COLORINDEX_note_sub_2   120