Mercurial > hg > silvet
diff data/include/templates.h @ 30:d697e78f81f1
Add templates in C header form (and conversion program)
author | Chris Cannam |
---|---|
date | Tue, 01 Apr 2014 17:40:21 +0100 |
parents | |
children | 461d94ed3816 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data/include/templates.h Tue Apr 01 17:40:21 2014 +0100 @@ -0,0 +1,34 @@ +/* Do not edit this file: it was automatically generated */ + +#ifndef SILVET_DATA_TEMPLATES_H +#define SILVET_DATA_TEMPLATES_H + +/* note: intended to parse as both C and C++ */ + +#define SILVET_TEMPLATE_NOTE_COUNT 88 +#define SILVET_TEMPLATE_HEIGHT 545 + +typedef struct { + const char *name; + int lowest; + int highest; + float data[SILVET_TEMPLATE_NOTE_COUNT][SILVET_TEMPLATE_HEIGHT]; +} silvet_template_t; + +static silvet_template_t silvet_templates[13] = { +#include "bassoon.h" +#include "cello.h" +#include "clarinet.h" +#include "flute.h" +#include "guitar.h" +#include "horn.h" +#include "oboe.h" +#include "tenorsax.h" +#include "violin.h" +#include "piano-maps-SptkBGCl.h" +#include "piano1.h" +#include "piano2.h" +#include "piano3.h" +}; + +#endif