Exemple #1
0
 def test_window(self):
     sound = SoundBuffer(filename='tests/sounds/guitar1s.wav')
     for window_type in ('sine', 'saw', 'tri', 'hamm', 'hann', 'bart',
                         'kaiser', 'black'):
         sound = sound.env(window_type)
         self.assertEqual(sound[0], (0, 0))
Exemple #2
0
 def test_window(self):
     sound = SoundBuffer(filename='tests/sounds/guitar1s.wav')
     for window_type in (dsp.SINE, dsp.SAW, dsp.TRI, dsp.HAMM, dsp.HANN,
                         dsp.BART, dsp.KAISER, dsp.BLACK):
         sound = sound.env(window_type)
         self.assertEqual(sound[0], (0, 0))