diff options
author | Richard <q@1bpm.net> | 2025-03-19 02:14:06 +0000 |
---|---|---|
committer | Richard <q@1bpm.net> | 2025-03-19 02:14:06 +0000 |
commit | 8a4bb15e2c7729f70e106e220745821a467fcef4 (patch) | |
tree | 7a6639bda4f51aa80b809209115b709603b8d4fd /examples/example1.c | |
parent | 89200bf7fbccd99cad6167a15ab1da2395a250ec (diff) | |
download | libguttersynth-master.tar.gz libguttersynth-master.tar.bz2 libguttersynth-master.zip |
Diffstat (limited to 'examples/example1.c')
-rw-r--r-- | examples/example1.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/example1.c b/examples/example1.c index f827ca7..8a9ee5a 100644 --- a/examples/example1.c +++ b/examples/example1.c @@ -49,7 +49,7 @@ FILE* wavfile_open() header.num_channels = 1; header.sample_rate = samples_per_second; header.byte_rate = samples_per_second * (bits_per_sample / 8); - header.block_align = bits_per_sample/8; + header.block_align = bits_per_sample / 8; header.bits_per_sample = bits_per_sample; header.data_length = 0; @@ -127,12 +127,12 @@ void create() target = wavfile_open(); int seconds = 20; int total_samples = samples_per_second * seconds; - int sample = 0; - int buffer_pos = 0; - int buffer_size = 4410; - double *buffer = (double*) malloc(sizeof(double) * buffer_size); + int sample = 0; + int buffer_pos = 0; + int buffer_size = 4410; + double *buffer = (double*) malloc(sizeof(double) * buffer_size); - gutter_state *gs = gutter_init(4, 24, samples_per_second); + gutter_state *gs = gutter_init(4, 24, samples_per_second); //gutter_randomisefilters(gs); double* filterAutomation = malloc(sizeof(double) * gs->bankCount * gs->filterCount * 3 * 2); @@ -209,7 +209,7 @@ void create() free(buffer); free(filterAutomation); - gutter_cleanup(gs); + gutter_cleanup(gs); wavfile_close(); } |