1 //Parameters for harpsichord.dsp
2 //©Romain Michon (rmichon@ccrma.stanford.edu), 2011
5 #include "instrument.h"
7 #define _LOOKUP_TABLE_H_
9 double DryTapAmpT60_points
[16*2] = {
10 // NoteNumber(A440=69), T60(sec)
27 extern LookupTable DryTapAmpT60
;
28 LookupTable
DryTapAmpT60(&DryTapAmpT60_points
[0], 16);
30 float getValueDryTapAmpT60 (float index
){
31 return DryTapAmpT60
.getValue(index
);
34 double releaseLoopGain_points
[10*2] = {
45 extern LookupTable releaseLoopGain
;
46 LookupTable
releaseLoopGain(&releaseLoopGain_points
[0], 10);
48 float getValueReleaseLoopGain(float index
){
49 return releaseLoopGain
.getValue(index
);
52 double loopFilterb0_points
[18*2] = {
72 extern LookupTable loopFilterb0
;
73 LookupTable
loopFilterb0(&loopFilterb0_points
[0], 18);
75 float getValueLoopFilterb0(float index
){
76 return loopFilterb0
.getValue(index
);
79 double loopFilterb1_points
[18*2] = {
99 extern LookupTable loopFilterb1
;
100 LookupTable
loopFilterb1(&loopFilterb1_points
[0], 18);
102 float getValueLoopFilterb1(float index
){
103 return loopFilterb1
.getValue(index
);
106 double loopFilterb2_points
[18*2] = {
126 extern LookupTable loopFilterb2
;
127 LookupTable
loopFilterb2(&loopFilterb2_points
[0], 18);
129 float getValueLoopFilterb2(float index
){
130 return loopFilterb2
.getValue(index
);
133 double loopFiltera1_points
[18*2] = {
153 extern LookupTable loopFiltera1
;
154 LookupTable
loopFiltera1(&loopFiltera1_points
[0], 18);
156 float getValueLoopFiltera1(float index
){
157 return loopFiltera1
.getValue(index
);
160 double loopFiltera2_points
[18*2] = {
180 extern LookupTable loopFiltera2
;
181 LookupTable
loopFiltera2(&loopFiltera2_points
[0], 18);
183 float getValueLoopFiltera2(float index
){
184 return loopFiltera2
.getValue(index
);