annotate data/include/templates.h @ 151:fc06b6f33021

double -> float in EM (to test)
author Chris Cannam
date Wed, 14 May 2014 19:38:36 +0100
parents e3373d367bda
children 6003a9af43af
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@44 8 #define SILVET_TEMPLATE_COUNT 10 /* Number of instruments */
Chris@44 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@30 34 #include "piano-maps-SptkBGCl.h"
Chris@30 35 };
Chris@30 36
Chris@30 37 #endif