예제 #1
0
    def test_insets(self):
        wt1 = wavetables.seesaw('rnd', 4096, dsp.rand(0, 1))
        wt1_graph = wt1.graph(label='LFO 1')

        wt2 = wavetables.seesaw('rnd', 4096, dsp.rand(0, 1))
        wt2_graph = wt2.graph(label='LFO 2')

        wt3 = wavetables.seesaw('rnd', 4096, dsp.rand(0, 1))
        wt3_graph = wt3.graph(label='LFO 3')

        snd = dsp.read('tests/sounds/linux.wav')
예제 #2
0
    def test_insets(self):
        wt1 = wavetables.seesaw('rnd', 4096, dsp.rand(0, 1))
        wt1_graph = wt1.graph(stroke=10)

        wt2 = wavetables.seesaw('rnd', 4096, dsp.rand(0, 1))
        wt2_graph = wt2.graph(stroke=10)

        wt3 = wavetables.seesaw('rnd', 4096, dsp.rand(0, 1))
        wt3_graph = wt3.graph(stroke=10)

        snd = dsp.read('tests/sounds/linux.wav')
        snd.graph('tests/renders/graph_insets.png', insets=[wt1_graph, wt2_graph, wt3_graph], stroke=3, width=1200, height=500)
예제 #3
0
파일: test_graph.py 프로젝트: smutek/pippi
    def test_insets(self):
        wt1 = wavetables.seesaw('rnd', 4096, dsp.rand(0, 1))
        wt1_graph = wt1.graph(label='LFO 1')

        wt2 = wavetables.seesaw('rnd', 4096, dsp.rand(0, 1))
        wt2_graph = wt2.graph(label='LFO 2')

        wt3 = wavetables.seesaw('rnd', 4096, dsp.rand(0, 1))
        wt3_graph = wt3.graph(label='LFO 3')

        snd = dsp.read('tests/sounds/linux.wav')
        snd.graph('tests/renders/graph_insets.png', insets=[wt1_graph, wt2_graph, wt3_graph], stroke=3, width=900, height=250, label='I pronounce Linux as Linux')
예제 #4
0
    def test_insets(self):
        wt1 = wavetables.seesaw('rnd', 4096, dsp.rand(0, 1))
        wt1_graph = wt1.graph(stroke=10)

        wt2 = wavetables.seesaw('rnd', 4096, dsp.rand(0, 1))
        wt2_graph = wt2.graph(stroke=10)

        wt3 = wavetables.seesaw('rnd', 4096, dsp.rand(0, 1))
        wt3_graph = wt3.graph(stroke=10)

        snd = dsp.read('tests/sounds/linux.wav')
        snd.graph('tests/renders/graph_insets.png',
                  insets=[wt1_graph, wt2_graph, wt3_graph],
                  stroke=3,
                  width=1200,
                  height=500)
예제 #5
0
    def test_seesaw(self):
        wt = wavetables.seesaw('tri', 15, 0.85)
        wt.graph('tests/renders/graph_seesaw_tri.png', stroke=3)

        wt = wavetables.seesaw('sine', 15, 0.85)
        wt.graph('tests/renders/graph_seesaw_sine.png', stroke=3)
예제 #6
0
    def test_seesaw(self):
        wt = wavetables.seesaw('tri', 4096, 0.85)
        wt.graph('tests/renders/graph_seesaw_tri.png', stroke=3)

        wt = wavetables.seesaw('sine', 4096, 0.85)
        wt.graph('tests/renders/graph_seesaw_sine.png', stroke=3)