Skip to content

Commit 8fcb269

Browse files
committed
Automatically generated standard symetric tables
1 parent 82979e1 commit 8fcb269

25 files changed

+146
-146
lines changed

extras/python/make_standard_tables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
folder = ".."+os.sep+".."+os.sep+"tables" + os.sep
2121

2222
def write_header(fout, samplerate,name):
23-
tablename = name.upper()+str(samplerate)+"_INT8"
23+
tablename = name.upper()+str(samplerate)
2424
fout.write('#ifndef ' + tablename + '_H_' + '\n')
2525
fout.write('#define ' + tablename + '_H_' + '\n \n')
2626
fout.write("/**\n This table is part of Mozzi\n Generated with extras/python/make_standard_tables.py\n*/\n\n")
@@ -31,7 +31,7 @@ def write_header(fout, samplerate,name):
3131
fout.write('CONSTTABLE_STORAGE(int8_t) ' + tablename + '_DATA [] = {\n')
3232

3333
def write_footer(fout,samplerate,name):
34-
tablename = name.upper()+str(samplerate)+"_INT8"
34+
tablename = name.upper()+str(samplerate)
3535
fout.write('\n }; \n \n #endif /* ' + tablename + '_H_ */\n')
3636

3737

tables/cos1024_int8.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef COS1024_INT8_H_
2-
#define COS1024_INT8_H_
1+
#ifndef COS1024_H_
2+
#define COS1024_H_
33

44
/**
55
This table is part of Mozzi
@@ -9,10 +9,10 @@
99
#include <Arduino.h>
1010
#include "mozzi_pgmspace.h"
1111

12-
#define COS1024_INT8_NUM_CELLS 1024
13-
#define COS1024_INT8_SAMPLERATE 1024
12+
#define COS1024_NUM_CELLS 1024
13+
#define COS1024_SAMPLERATE 1024
1414

15-
CONSTTABLE_STORAGE(int8_t) COS1024_INT8_DATA [] = {
15+
CONSTTABLE_STORAGE(int8_t) COS1024_DATA [] = {
1616
-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127,
1717
-127, -127, -126, -126, -126, -126, -126, -126, -126, -126, -126, -126, -126,
1818
-125, -125, -125, -125, -125, -125, -125, -124, -124, -124, -124, -124, -124,
@@ -78,4 +78,4 @@ CONSTTABLE_STORAGE(int8_t) COS1024_INT8_DATA [] = {
7878
-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127,
7979
};
8080

81-
#endif /* COS1024_INT8_H_ */
81+
#endif /* COS1024_H_ */

tables/cos2048_int8.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef COS2048_INT8_H_
2-
#define COS2048_INT8_H_
1+
#ifndef COS2048_H_
2+
#define COS2048_H_
33

44
/**
55
This table is part of Mozzi
@@ -9,10 +9,10 @@
99
#include <Arduino.h>
1010
#include "mozzi_pgmspace.h"
1111

12-
#define COS2048_INT8_NUM_CELLS 2048
13-
#define COS2048_INT8_SAMPLERATE 2048
12+
#define COS2048_NUM_CELLS 2048
13+
#define COS2048_SAMPLERATE 2048
1414

15-
CONSTTABLE_STORAGE(int8_t) COS2048_INT8_DATA [] = {
15+
CONSTTABLE_STORAGE(int8_t) COS2048_DATA [] = {
1616
-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127,
1717
-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127,
1818
-127, -127, -127, -126, -126, -126, -126, -126, -126, -126, -126, -126, -126,
@@ -141,4 +141,4 @@ CONSTTABLE_STORAGE(int8_t) COS2048_INT8_DATA [] = {
141141
-127, -127, -127, -127, -127, -127, -127, -127, -127, -127,
142142
};
143143

144-
#endif /* COS2048_INT8_H_ */
144+
#endif /* COS2048_H_ */

tables/cos256_int8.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef COS256_INT8_H_
2-
#define COS256_INT8_H_
1+
#ifndef COS256_H_
2+
#define COS256_H_
33

44
/**
55
This table is part of Mozzi
@@ -9,10 +9,10 @@
99
#include <Arduino.h>
1010
#include "mozzi_pgmspace.h"
1111

12-
#define COS256_INT8_NUM_CELLS 256
13-
#define COS256_INT8_SAMPLERATE 256
12+
#define COS256_NUM_CELLS 256
13+
#define COS256_SAMPLERATE 256
1414

15-
CONSTTABLE_STORAGE(int8_t) COS256_INT8_DATA [] = {
15+
CONSTTABLE_STORAGE(int8_t) COS256_DATA [] = {
1616
-127, -127, -127, -127, -126, -126, -126, -125, -125, -124, -123, -122, -122,
1717
-121, -120, -118, -117, -116, -115, -113, -112, -111, -109, -107, -106, -104,
1818
-102, -100, -98, -96, -94, -92, -90, -88, -85, -83, -81, -78, -76, -73, -71,
@@ -31,4 +31,4 @@ CONSTTABLE_STORAGE(int8_t) COS256_INT8_DATA [] = {
3131
-123, -124, -125, -125, -126, -126, -126, -127, -127, -127,
3232
};
3333

34-
#endif /* COS256_INT8_H_ */
34+
#endif /* COS256_H_ */

tables/cos4096_int8.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef COS4096_INT8_H_
2-
#define COS4096_INT8_H_
1+
#ifndef COS4096_H_
2+
#define COS4096_H_
33

44
/**
55
This table is part of Mozzi
@@ -9,10 +9,10 @@
99
#include <Arduino.h>
1010
#include "mozzi_pgmspace.h"
1111

12-
#define COS4096_INT8_NUM_CELLS 4096
13-
#define COS4096_INT8_SAMPLERATE 4096
12+
#define COS4096_NUM_CELLS 4096
13+
#define COS4096_SAMPLERATE 4096
1414

15-
CONSTTABLE_STORAGE(int8_t) COS4096_INT8_DATA [] = {
15+
CONSTTABLE_STORAGE(int8_t) COS4096_DATA [] = {
1616
-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127,
1717
-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127,
1818
-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127,
@@ -267,4 +267,4 @@ CONSTTABLE_STORAGE(int8_t) COS4096_INT8_DATA [] = {
267267
-127, -127, -127, -127, -127, -127, -127,
268268
};
269269

270-
#endif /* COS4096_INT8_H_ */
270+
#endif /* COS4096_H_ */

tables/cos512_int8.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef COS512_INT8_H_
2-
#define COS512_INT8_H_
1+
#ifndef COS512_H_
2+
#define COS512_H_
33

44
/**
55
This table is part of Mozzi
@@ -9,10 +9,10 @@
99
#include <Arduino.h>
1010
#include "mozzi_pgmspace.h"
1111

12-
#define COS512_INT8_NUM_CELLS 512
13-
#define COS512_INT8_SAMPLERATE 512
12+
#define COS512_NUM_CELLS 512
13+
#define COS512_SAMPLERATE 512
1414

15-
CONSTTABLE_STORAGE(int8_t) COS512_INT8_DATA [] = {
15+
CONSTTABLE_STORAGE(int8_t) COS512_DATA [] = {
1616
-127, -127, -127, -127, -127, -127, -127, -127, -126, -126, -126, -126, -126,
1717
-125, -125, -125, -125, -124, -124, -124, -123, -123, -122, -122, -122, -121,
1818
-121, -120, -120, -119, -118, -118, -117, -117, -116, -115, -115, -114, -113,
@@ -47,4 +47,4 @@ CONSTTABLE_STORAGE(int8_t) COS512_INT8_DATA [] = {
4747
-127, -127, -127, -127, -127, -127,
4848
};
4949

50-
#endif /* COS512_INT8_H_ */
50+
#endif /* COS512_H_ */

tables/cos8192_int8.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef COS8192_INT8_H_
2-
#define COS8192_INT8_H_
1+
#ifndef COS8192_H_
2+
#define COS8192_H_
33

44
/**
55
This table is part of Mozzi
@@ -9,10 +9,10 @@
99
#include <Arduino.h>
1010
#include "mozzi_pgmspace.h"
1111

12-
#define COS8192_INT8_NUM_CELLS 8192
13-
#define COS8192_INT8_SAMPLERATE 8192
12+
#define COS8192_NUM_CELLS 8192
13+
#define COS8192_SAMPLERATE 8192
1414

15-
CONSTTABLE_STORAGE(int8_t) COS8192_INT8_DATA [] = {
15+
CONSTTABLE_STORAGE(int8_t) COS8192_DATA [] = {
1616
-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127,
1717
-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127,
1818
-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127,
@@ -518,4 +518,4 @@ CONSTTABLE_STORAGE(int8_t) COS8192_INT8_DATA [] = {
518518
-127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127, -127,
519519
};
520520

521-
#endif /* COS8192_INT8_H_ */
521+
#endif /* COS8192_H_ */

tables/cosphase2048_int8.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef COSPHASE2048_INT8_H_
2-
#define COSPHASE2048_INT8_H_
1+
#ifndef COSPHASE2048_H_
2+
#define COSPHASE2048_H_
33

44
/**
55
This table is part of Mozzi
@@ -9,10 +9,10 @@
99
#include <Arduino.h>
1010
#include "mozzi_pgmspace.h"
1111

12-
#define COSPHASE2048_INT8_NUM_CELLS 2048
13-
#define COSPHASE2048_INT8_SAMPLERATE 2048
12+
#define COSPHASE2048_NUM_CELLS 2048
13+
#define COSPHASE2048_SAMPLERATE 2048
1414

15-
CONSTTABLE_STORAGE(int8_t) COSPHASE2048_INT8_DATA [] = {
15+
CONSTTABLE_STORAGE(int8_t) COSPHASE2048_DATA [] = {
1616
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
1717
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 126, 126, 126,
1818
126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126,
@@ -141,4 +141,4 @@ CONSTTABLE_STORAGE(int8_t) COSPHASE2048_INT8_DATA [] = {
141141
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
142142
};
143143

144-
#endif /* COSPHASE2048_INT8_H_ */
144+
#endif /* COSPHASE2048_H_ */

tables/cosphase256_int8.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef COSPHASE256_INT8_H_
2-
#define COSPHASE256_INT8_H_
1+
#ifndef COSPHASE256_H_
2+
#define COSPHASE256_H_
33

44
/**
55
This table is part of Mozzi
@@ -9,10 +9,10 @@
99
#include <Arduino.h>
1010
#include "mozzi_pgmspace.h"
1111

12-
#define COSPHASE256_INT8_NUM_CELLS 256
13-
#define COSPHASE256_INT8_SAMPLERATE 256
12+
#define COSPHASE256_NUM_CELLS 256
13+
#define COSPHASE256_SAMPLERATE 256
1414

15-
CONSTTABLE_STORAGE(int8_t) COSPHASE256_INT8_DATA [] = {
15+
CONSTTABLE_STORAGE(int8_t) COSPHASE256_DATA [] = {
1616
127, 127, 127, 127, 126, 126, 126, 125, 125, 124, 123, 122, 122, 121, 120, 118,
1717
117, 116, 115, 113, 112, 111, 109, 107, 106, 104, 102, 100, 98, 96, 94, 92, 90,
1818
88, 85, 83, 81, 78, 76, 73, 71, 68, 65, 63, 60, 57, 54, 51, 49, 46, 43, 40, 37,
@@ -31,4 +31,4 @@ CONSTTABLE_STORAGE(int8_t) COSPHASE256_INT8_DATA [] = {
3131
122, 123, 124, 125, 125, 126, 126, 126, 127, 127, 127,
3232
};
3333

34-
#endif /* COSPHASE256_INT8_H_ */
34+
#endif /* COSPHASE256_H_ */

tables/cosphase8192_int8.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef COSPHASE8192_INT8_H_
2-
#define COSPHASE8192_INT8_H_
1+
#ifndef COSPHASE8192_H_
2+
#define COSPHASE8192_H_
33

44
/**
55
This table is part of Mozzi
@@ -9,10 +9,10 @@
99
#include <Arduino.h>
1010
#include "mozzi_pgmspace.h"
1111

12-
#define COSPHASE8192_INT8_NUM_CELLS 8192
13-
#define COSPHASE8192_INT8_SAMPLERATE 8192
12+
#define COSPHASE8192_NUM_CELLS 8192
13+
#define COSPHASE8192_SAMPLERATE 8192
1414

15-
CONSTTABLE_STORAGE(int8_t) COSPHASE8192_INT8_DATA [] = {
15+
CONSTTABLE_STORAGE(int8_t) COSPHASE8192_DATA [] = {
1616
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
1717
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
1818
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
@@ -518,4 +518,4 @@ CONSTTABLE_STORAGE(int8_t) COSPHASE8192_INT8_DATA [] = {
518518
127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
519519
};
520520

521-
#endif /* COSPHASE8192_INT8_H_ */
521+
#endif /* COSPHASE8192_H_ */

0 commit comments

Comments
 (0)