annotate data/include/templates.h @ 83:a0dedcbfa628 timing

Hoist variables, add consts
author Chris Cannam
date Tue, 06 May 2014 11:53:02 +0100
parents eec530c4300d
children 97b77e7cb94c
rev   line source
Chris@30 1 /* Do not edit this file: it was automatically generated */
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@44 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