コード例 #1
0
 def test_bandlimiting_osc(self):
     sr = 44100
     time = 4
     length = sr * time
     sweep = np.logspace(0, 9, length, base = 2) * 30
     out = Osc('tri', freq=sweep, quality=6).play(time)
     out.write('tests/renders/osc_bl.wav')
コード例 #2
0
    def test_fm_osc(self):
        pm = Osc('sine', freq=200.0).play(1).env('tri') * 1000
        out = Osc('sine', freq=pm).play(1)
        out.write('tests/renders/osc_fm.wav')

        pm = Osc('sine', freq=[200.0, 300, 400], freq_interpolator='trunc').play(1).env('tri') * 1000
        out = Osc('sine', freq=pm).play(1)
        out.write('tests/renders/osc_fm_trunc.wav')
コード例 #3
0
 def test_pm_osc(self):
     pmtest = Osc('sine', freq=[0, 800, 0], quality=6).play(1).env('tri')
     out = Osc('sine', freq=200, pm = pmtest, quality=6).play(1).env("tri")
     out.write('tests/renders/osc_pm.wav')
コード例 #4
0
ファイル: test_oscs.py プロジェクト: recck/pippi
 def test_fm_osc(self):
     pm = Osc('sine', freq=200.0).play(1).env('tri') * 1000
     out = Osc('sine', freq=pm).play(1)
     out.write('tests/renders/osc_fm.wav')