LibMusicXML 3.22
NoteType Class Reference

provides conversions between numeric note types and strings More...

#include <conversions.h>

Public Types

enum  type {
  undefined , t256th =1 , t128th =1<<1 , t64th =1<<2 ,
  t32nd =1<<3 , t16th =1<<4 , eighth =1<<5 , quarter =1<<6 ,
  half =1<<7 , whole =1<<8 , breve =1<<9 , tlong =1<<10 ,
  count =11
}

Static Public Member Functions

static rational type2rational (type d)
 convert an integer note to a rational representation
static const string xml (type d)
 convert an integer note type to a MusicXML string
static type xml (const string str)
 convert an MusicXML string to an integer note type

Detailed Description

Type indicates the graphic note type. Valid values (from shortest to longest) are 256th, 128th, 64th, 32nd, 16th, eighth, quarter, half, whole, breve, and long.