00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <stdio.h>
00022 #include <shortfract>
00023 #include "osc.h"
00024
00025
00026
00027
00028
00029
00030 osc::COscillator * o;
00031
00032
00033
00034
00035
00036
00037 shortfract isig[256];
00038
00039
00040
00041
00042
00043
00044 shortfract qsig[256];
00045
00046
00047
00048
00049
00050
00051 int main(void)
00052 {
00053 FILE *f;
00054
00055 o = new osc::CTableLookup( 0x10000 );
00056 f = fopen( "output.txt", "w" );
00057
00058 for ( int j=0; j<65536; j+=256 ){
00059 o->run( isig, qsig, 256 );
00060 for ( int i=0; i<256; i++ )
00061 fprintf( f, "%d\n", isig[i].v );
00062 }
00063
00064 fclose( f );
00065 }