2006-09-11 02:49:56 +00:00
|
|
|
//
|
2007-04-27 06:41:34 +00:00
|
|
|
// File: VLSheetViewInternal.h - Metrics for lead sheet drawing
|
2006-09-11 02:49:56 +00:00
|
|
|
//
|
2007-04-27 06:41:34 +00:00
|
|
|
// Author(s):
|
|
|
|
//
|
|
|
|
// (MN) Matthias Neeracher
|
|
|
|
//
|
2011-08-28 04:12:44 +00:00
|
|
|
// Copyright © 2006-2011 Matthias Neeracher
|
2006-09-11 02:49:56 +00:00
|
|
|
//
|
|
|
|
|
2006-10-02 08:32:25 +00:00
|
|
|
const float kLineX = 5.0;
|
|
|
|
const float kLineH = 10.0;
|
2009-03-14 23:06:13 +00:00
|
|
|
const float kTripletH = 5.0;
|
2007-04-21 07:09:52 +00:00
|
|
|
#define kSystemBaseline ((fNumBotLedgers+1)*kLineH+fNumStanzas*kLyricsH)
|
|
|
|
#define kSystemAscent ((fNumTopLedgers+7)*kLineH+kChordH)
|
|
|
|
#define kSystemH (kSystemBaseline+kSystemAscent)
|
2006-09-11 02:49:56 +00:00
|
|
|
const float kClefX = 20.5f;
|
2006-10-02 05:29:37 +00:00
|
|
|
const float kClefY =-15.0f;
|
2006-09-11 02:49:56 +00:00
|
|
|
const float kClefW = 30.0f;
|
2006-12-28 05:03:28 +00:00
|
|
|
const float kMeasTol = 3.5f;
|
2006-10-02 05:29:37 +00:00
|
|
|
const float kMeasNoX = 10.0f;
|
|
|
|
const float kMeasNoY = 4.5f*kLineH;
|
2007-12-23 23:07:27 +00:00
|
|
|
const float kBreakX = 5.0f;
|
|
|
|
const float kBreakY = 0.0f*kLineH;
|
2006-09-11 02:49:56 +00:00
|
|
|
const float kNoteW = 12.0f;
|
|
|
|
const float kKeyW = 10.0f;
|
|
|
|
const float kAccW = 10.0f;
|
|
|
|
const float kSharpY =-15.0f;
|
|
|
|
const float kFlatY = -7.0f;
|
2006-10-21 09:25:45 +00:00
|
|
|
const float kNaturalY =-15.0f;
|
2011-08-28 04:12:44 +00:00
|
|
|
const float k2SharpY = -5.0f;
|
|
|
|
const float k2FlatY = -7.0f;
|
2006-10-21 09:25:45 +00:00
|
|
|
const float kSharpW =-11.0f;
|
|
|
|
const float kFlatW = -9.0f;
|
|
|
|
const float kNaturalW = -7.0f;
|
2011-08-28 04:12:44 +00:00
|
|
|
const float k2SharpW =-11.0f;
|
|
|
|
const float k2FlatW =-11.0f;
|
2006-09-11 02:49:56 +00:00
|
|
|
const float kImgScale = 0.04f;
|
2007-04-21 07:09:52 +00:00
|
|
|
#define kChordY ((fNumTopLedgers+6)*kLineH)
|
2006-09-11 02:49:56 +00:00
|
|
|
const float kChordW = 40.0f;
|
|
|
|
const float kChordH = 25.0f;
|
2007-04-21 07:09:52 +00:00
|
|
|
#define kLyricsY (-(fNumBotLedgers+1)*kLineH)
|
2006-12-02 03:35:21 +00:00
|
|
|
const float kLyricsH = 1.5*kLineH;
|
2006-09-11 02:49:56 +00:00
|
|
|
const float kNoteX = 7.0f;
|
|
|
|
const float kNoteY = 5.0f;
|
|
|
|
const float kStemX = 0.0f;
|
|
|
|
const float kStemY = 1.0f;
|
|
|
|
const float kStemH = 30.0f;
|
|
|
|
const float kWholeRestY = 20.0f;
|
|
|
|
const float kHalfRestY = 15.0f;
|
|
|
|
const float kTieDepth = 10.0f;
|
2007-01-21 11:34:56 +00:00
|
|
|
const float kCodaX =-10.0f;
|
|
|
|
const float kCodaY = 5.0f;
|
2007-04-21 22:34:55 +00:00
|
|
|
const float kLedgerX =-10.0f;
|
|
|
|
const float kLedgerW = 20.0f;
|