aboutsummaryrefslogtreecommitdiff
path: root/examples/example1.c
diff options
context:
space:
mode:
authorRichard <q@1bpm.net>2025-03-19 02:14:06 +0000
committerRichard <q@1bpm.net>2025-03-19 02:14:06 +0000
commit8a4bb15e2c7729f70e106e220745821a467fcef4 (patch)
tree7a6639bda4f51aa80b809209115b709603b8d4fd /examples/example1.c
parent89200bf7fbccd99cad6167a15ab1da2395a250ec (diff)
downloadlibguttersynth-8a4bb15e2c7729f70e106e220745821a467fcef4.tar.gz
libguttersynth-8a4bb15e2c7729f70e106e220745821a467fcef4.tar.bz2
libguttersynth-8a4bb15e2c7729f70e106e220745821a467fcef4.zip
changed tabs, fixed example2HEADmaster
Diffstat (limited to 'examples/example1.c')
-rw-r--r--examples/example1.c14
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();
}