diff options
author | Florian Jung <flo@thinkpad.(none)> | 2011-01-16 18:18:39 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2011-01-16 18:30:53 +0100 |
commit | 12f20783b7ec8804825282fd04d9333ec83e31eb (patch) | |
tree | aae39218ace9c7c12c14cf1246cd2485bf1323f1 /synth/readwave.cpp | |
parent | 527e7400f227703b9f0932b685f2bf7f2c2c005b (diff) |
Added waveforms and noise, changed foo++ into ++foo
List of waveforms:
0=sin
1=abssin
2=half_sin
3=pulse-sin
4=square
5=sawtooth
6=pyramid
7=white noise
Diffstat (limited to 'synth/readwave.cpp')
-rw-r--r-- | synth/readwave.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synth/readwave.cpp b/synth/readwave.cpp index 08106ca..0b2c0a0 100644 --- a/synth/readwave.cpp +++ b/synth/readwave.cpp @@ -102,7 +102,7 @@ void read_wave(const char *fn, custom_wave_t *result) result->wave=new fixed_t[n_samples]; double sample; - for (int i=0;i<n_samples;i++) + for (int i=0;i<n_samples;++i) { if (feof(f)) throw string("unexpected end-of-file"); |