diff options
| author | Samuel Johnson <[email protected]> | 2025-10-08 10:28:39 -0400 |
|---|---|---|
| committer | Samuel Johnson <[email protected]> | 2025-10-08 10:28:39 -0400 |
| commit | f9c3650a31183c56b7613b074e8c11680317eb89 (patch) | |
| tree | e6af62a9f1049cf1fa7b76358c9a5a9d23177e9d /examples/test.c | |
| parent | 886b6573ebdcf00bf862aa03bf07fa0a3469a86d (diff) | |
Diffstat (limited to 'examples/test.c')
| -rw-r--r-- | examples/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/test.c b/examples/test.c index 05c5114..0fd994a 100644 --- a/examples/test.c +++ b/examples/test.c @@ -46,7 +46,7 @@ int main (void) { ins_set_carrier(instrument, OSC_SINE); ins_set_modulator(instrument, OSC_SINE); ins_set_carrier_amplitude(instrument, 0.25); - ins_set_modulator_amplitude(instrument, 0.25); + ins_set_modulator_amplitude(instrument, 0.85); ins_set_frequency_mult(instrument, 3.0); adsr_ref adsr = adsr_new(); @@ -111,7 +111,7 @@ int main (void) { } //float env = adsr_tick(adsr, SAMPLE_RATE); - float ins = ins_tick(instrument, SAMPLE_RATE); + float ins = ins_tick(instrument, ALGORITHM_FREQUENCY, SAMPLE_RATE); buffer[j][0] = ins;// * env; buffer[j][1] = ins;// * env; } |
