From 12f20783b7ec8804825282fd04d9333ec83e31eb Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 16 Jan 2011 18:18:39 +0100 Subject: 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 --- synth/util.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'synth/util.cpp') diff --git a/synth/util.cpp b/synth/util.cpp index c54f2d5..fb32d4d 100644 --- a/synth/util.cpp +++ b/synth/util.cpp @@ -20,7 +20,7 @@ string IntToStrHex(int i) bool isnum(string s) { - for (size_t i=0;i=0;i--) + for (i=result.length()-1;i>=0;--i) if ((result[i]!=' ') && (result[i]!='\t')) break; -- cgit v1.2.3