diff options
| author | John Glover <glover.john@gmail.com> | 2010-10-21 13:39:28 +0100 | 
|---|---|---|
| committer | John Glover <glover.john@gmail.com> | 2010-10-21 13:39:28 +0100 | 
| commit | ce65c30264be9683dd3a59b35730d2f31e02d37f (patch) | |
| tree | 90aaf2e77526af9ba099e76175956d0dd6a37633 /examples/plotpeaks.py | |
| parent | b46b988f164f983fc889c7bc0c96953e4609d27a (diff) | |
| download | simpl-ce65c30264be9683dd3a59b35730d2f31e02d37f.tar.gz simpl-ce65c30264be9683dd3a59b35730d2f31e02d37f.tar.bz2 simpl-ce65c30264be9683dd3a59b35730d2f31e02d37f.zip  | |
Changed from floats to doubles in the C/C++ code, makes Python integration a bit easier. Fixed a bug that would cause SndObjSynthesis to crash if peak values were floats.
Diffstat (limited to 'examples/plotpeaks.py')
| -rw-r--r-- | examples/plotpeaks.py | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/plotpeaks.py b/examples/plotpeaks.py index 200b803..0132ba6 100644 --- a/examples/plotpeaks.py +++ b/examples/plotpeaks.py @@ -16,12 +16,11 @@  import simpl  import simpl.plot -import numpy as np  from scipy.io.wavfile import read -input_file = '../test/audio/flute.wav' +input_file = '../tests/audio/flute.wav'  audio_in_data = read(input_file) -audio_in = np.asarray(audio_in_data[1], np.float32) / 32768.0  # values between -1 and 1 +audio_in = simpl.asarray(audio_in_data[1]) / 32768.0  # values between -1 and 1  sample_rate = audio_in_data[0]  # take just the first few frames  |