Mercurial > hg > silvet
annotate data/include/templates.h @ 372:af71cbdab621 tip
Update bqvec code
author | Chris Cannam |
---|---|
date | Tue, 19 Nov 2019 10:13:32 +0000 |
parents | d8468176339d |
children |
rev | line source |
---|---|
Chris@136 | 1 /* Do not edit: this file was automatically generated by generateTemplatesC */ |
Chris@30 | 2 |
Chris@30 | 3 #ifndef SILVET_DATA_TEMPLATES_H |
Chris@30 | 4 #define SILVET_DATA_TEMPLATES_H |
Chris@30 | 5 |
Chris@30 | 6 /* note: intended to parse as both C and C++ */ |
Chris@30 | 7 |
Chris@218 | 8 #define SILVET_TEMPLATE_COUNT 14 /* Number of instruments */ |
Chris@303 | 9 #define SILVET_TEMPLATE_NOTE_COUNT 88 /* Number of notes per instrument */ |
Chris@44 | 10 #define SILVET_TEMPLATE_HEIGHT 545 /* Frequency bins per template */ |
Chris@44 | 11 #define SILVET_TEMPLATE_MAX_SHIFT 2 /* Zeros at either end of template */ |
Chris@44 | 12 #define SILVET_TEMPLATE_SIZE 549 /* Height + 2 * max shift space */ |
Chris@30 | 13 |
Chris@30 | 14 typedef struct { |
Chris@30 | 15 const char *name; |
Chris@30 | 16 int lowest; |
Chris@30 | 17 int highest; |
Chris@151 | 18 float data[SILVET_TEMPLATE_NOTE_COUNT][SILVET_TEMPLATE_SIZE]; |
Chris@30 | 19 } silvet_template_t; |
Chris@30 | 20 |
Chris@41 | 21 static int silvet_templates_lowest_note = 15; |
Chris@41 | 22 static int silvet_templates_highest_note = 72; |
Chris@41 | 23 |
Chris@35 | 24 static silvet_template_t silvet_templates[SILVET_TEMPLATE_COUNT] = { |
Chris@30 | 25 #include "bassoon.h" |
Chris@30 | 26 #include "cello.h" |
Chris@30 | 27 #include "clarinet.h" |
Chris@30 | 28 #include "flute.h" |
Chris@30 | 29 #include "guitar.h" |
Chris@30 | 30 #include "horn.h" |
Chris@30 | 31 #include "oboe.h" |
Chris@30 | 32 #include "tenorsax.h" |
Chris@30 | 33 #include "violin.h" |
Chris@218 | 34 #include "viola.h" |
Chris@161 | 35 #include "piano1.h" |
Chris@161 | 36 #include "piano2.h" |
Chris@161 | 37 #include "piano3.h" |
Chris@218 | 38 #include "pianorwc.h" |
Chris@30 | 39 }; |
Chris@30 | 40 |
Chris@30 | 41 #endif |