/*
lyxy.h
(C) 2020 by marnout à free pt fr  Released under the GPL
*/

#ifndef MRD_LYXY_H
#define MRD_LYXY_H

#include <string>
#include <iostream>
#include <map>

using namespace std;


const int NaN = 255; // not a number !
int scale = 2; // width scale : width of semiquaver

map<int,int> pitch = { {'r', NaN},
   {'a',0}, {'b',2}, {'c',3}, {'d',5}, {'e',7}, {'f',8}, {'g',10}
};

string note[] = {
   "a", "bes", "b", "c", "cis", "d", "ees", "e", "f", "fis", "g", "aes"
};

// convert lilypond note to xy
bool lytoxy(const char*, int&, int&);
// convert source lilypond to xy file
void lytoxy(string);


#endif

