]> git.parisson.com Git - timeside.git/commitdiff
cleanup grapher tests
authoryomguy <yomguy@parisson.com>
Thu, 11 Mar 2010 15:02:07 +0000 (15:02 +0000)
committeryomguy <yomguy@parisson.com>
Thu, 11 Mar 2010 15:02:07 +0000 (15:02 +0000)
tests/api/test_pipe_spectrogram.py
tests/api/test_pipe_waveform.py

index ec06865eb2f695831790d6f33a0f53181d992b33..f32f8225f75d9adcd90db28a5c0d8fe99cd96805 100644 (file)
@@ -2,7 +2,6 @@
 from timeside.tests.api import examples
 from timeside.core import *
 from timeside.api import *
-import os.path
 
 use_gst = 1
 if use_gst:
@@ -11,17 +10,7 @@ else:
     from timeside.tests.api.examples import FileDecoder, WavEncoder
 
 image_file = './spectrogram.png'
-
-# mono
-#source = os.path.join(os.path.dirname(__file__), "../samples/sweep_source.wav")
-#source = os.path.join(os.path.dirname(__file__), "../samples/guitar.wav")
-#source = os.path.join(os.path.dirname(__file__), "../samples/sweep_source.mp3")
-
-# stereo
-source = os.path.join(os.path.dirname(__file__), "../samples/sweep.wav")
-#source = os.path.join(os.path.dirname(__file__), "../samples/guitar_stereo.wav")
-#source = os.path.join(os.path.dirname(__file__), "/home/momo/music/flac/Isabelle Aboulker/Mon imagier des instruments/16 - Isabelle Aboulker - 16 instru.flac")
-#source = os.path.join(os.path.dirname(__file__), "/home/momo/music/ogg/Emilie_Jolie/01 - Henri Salvador - Prologue.ogg")
+source = '../samples/sweep.wav'
 
 decoder  = FileDecoder(source)
 spectrogram = examples.Spectrogram(width=1024, height=256, output=image_file, bg_color=(0,0,0), color_scheme='default')
index 82ba4a9f8a3ee1d6af527a30d52a92d86db32ab8..2969d7a51c94ed14b56789db7404cdc228c3bea4 100644 (file)
@@ -11,17 +11,7 @@ else:
     from timeside.tests.api.examples import FileDecoder, WavEncoder
 
 image_file = './waveform.png'
-
-# mono
-#source = os.path.join(os.path.dirname(__file__), "../samples/sweep_source.wav")
-#source = os.path.join(os.path.dirname(__file__), "../samples/guitar.wav")
-#source = os.path.join(os.path.dirname(__file__), "../samples/sweep_source.mp3")
-
-# stereo
-source = os.path.join(os.path.dirname(__file__), "../samples/sweep.wav")
-#source = os.path.join(os.path.dirname(__file__), "../samples/guitar_stereo.wav")
-#source = os.path.join(os.path.dirname(__file__), "/home/momo/music/flac/Isabelle Aboulker/Mon imagier des instruments/16 - Isabelle Aboulker - 16 instru.flac")
-#source = os.path.join(os.path.dirname(__file__), "/home/momo/music/ogg/Emilie_Jolie/01 - Henri Salvador - Prologue.ogg")
+source = '../samples/sweep.wav'
 
 decoder  = FileDecoder(source)
 waveform = examples.Waveform(width=1024, height=256, output=image_file, bg_color=(0,0,0), color_scheme='default')