How to use the pyo.SfPlayer function in pyo

To help you get started, we’ve selected a few pyo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github belangeo / pyo / pyodemos / Delay_demo.py View on Github external
def ex2():
    from pyo import SfPlayer, Clean_objects, DEMOS_PATH
    print """
Delay with feedback:

o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.5).out()
o_ex2 = Delay(o_ex1, .250, 0.75, 1).out()
"""
    o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.5).out()
    o_ex2 = Delay(o_ex1, .250, 0.75, 1).out()

    c = Clean_objects(4, o_ex1, o_ex2)
    c.start()
github belangeo / pyo / pyodemos / Disto_demo.py View on Github external
def ex3():
    from pyo import Sine, SfPlayer, Clean_objects, DEMOS_PATH
    print """
DIstortion with moving drive:

o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.5)
o_ex2 = Sine(freq=0.5, mul=0.499, add=0.5)
o_ex3 = Disto(input=o_ex1, drive=o_ex2, slope=.5, mul=.25).out()
"""
    o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.5)
    o_ex2 = Sine(freq=0.5, mul=0.499, add=0.5)
    o_ex3 = Disto(input=o_ex1, drive=o_ex2, slope=.5, mul=.25).out()

    c = Clean_objects(4, o_ex1, o_ex2, o_ex3)
    c.start()
github belangeo / pyo / pyodemos / Delay_demo.py View on Github external
def ex3():
    from pyo import Sine, SfPlayer, Clean_objects, DEMOS_PATH
    print """
Basic chorus:

o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.5).out()
o_ex2 = Sine(freq=[1,1.34], mul=0.005, add=0.025)
o_ex3 = Delay(input=o_ex1, delay=o_ex2, feedback=0.5, mul=.3).out()
"""
    o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.5).out()
    o_ex2 = Sine(freq=[1,1.34], mul=0.005, add=0.025)
    o_ex3 = Delay(input=o_ex1, delay=o_ex2, feedback=0.5, mul=.3).out()

    c = Clean_objects(4, o_ex1, o_ex2, o_ex3)
    c.start()
github belangeo / pyo / pyodemos / Hilbert_demo.py View on Github external
def ex1():
    from pyo import SfPlayer, Sine, Clean_objects, DEMOS_PATH
    print """
Frequency shift:

o_ex1 = SfPlayer(DEMOS_PATH + "/accord.aif", loop=True).out()
o_ex2 = Hilbert(o_ex1)
o_ex3 = Sine(1000, [0, .25])
o_ex4 = b['real'] * o_ex3[0]
o_ex5 = b['imag'] * o_ex3[1]
o_up = o_ex4 - o_ex5
o_down = o_ex4 + o_ex5
o_up.out()
"""
    o_ex1 = SfPlayer(DEMOS_PATH + "/accord.aif", loop=True).out()
    o_ex2 = Hilbert(o_ex1)
    o_ex3 = Sine(1000, [0, .25])
    o_ex4 = o_ex2['real'] * o_ex3[0]
    o_ex5 = o_ex2['imag'] * o_ex3[1]
    o_up = o_ex4 - o_ex5
    o_down = o_ex4 + o_ex5
    o_up.out()

    c = Clean_objects(4, o_ex1, o_ex2, o_ex3, o_ex4, o_ex5, o_up, o_down)
    c.start()
github belangeo / pyo / pyodemos / Follower_demo.py View on Github external
def ex2():
    from pyo import SfPlayer, Noise, Clean_objects, DEMOS_PATH
    print """
Sharp envelope follower:

o_ex1 = SfPlayer(DEMOS_PATH + "/transparent.aif", loop=True)
o_ex2 = Follower(o_ex1, freq=25)
o_ex3 = Noise(mul=o_ex2).out()
o_ex4 = o_ex1 * .5
o_ex4.out()
"""
    o_ex1 = SfPlayer(DEMOS_PATH + "/transparent.aif", loop=True)
    o_ex2 = Follower(o_ex1, freq=25)
    o_ex3 = Noise(mul=o_ex2).out()
    o_ex4 = o_ex1 * .5
    o_ex4.out()
    
    c = Clean_objects(4, o_ex1, o_ex2, o_ex3, o_ex4)
    c.start()
github belangeo / pyo / pyodemos / Follower_demo.py View on Github external
def ex3():
    from pyo import SfPlayer, Noise, Clean_objects, DEMOS_PATH
    print """
Very sharp envelope follower:

o_ex1 = SfPlayer(DEMOS_PATH + "/transparent.aif", loop=True)
o_ex2 = Follower(o_ex1, freq=50)
o_ex3 = Noise(mul=o_ex2).out()
o_ex4 = o_ex1 * .5
o_ex4.out()
"""
    o_ex1 = SfPlayer(DEMOS_PATH + "/transparent.aif", loop=True)
    o_ex2 = Follower(o_ex1, freq=50)
    o_ex3 = Noise(mul=o_ex2).out()
    o_ex4 = o_ex1 * .5
    o_ex4.out()
    
    c = Clean_objects(4, o_ex1, o_ex2, o_ex3, o_ex4)
    c.start()
github belangeo / pyo / pyodemos / Freeverb_demo.py View on Github external
def ex2():
    from pyo import SfPlayer, Clean_objects, DEMOS_PATH
    print """
Big room:

o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.5)
o_ex2 = Freeverb(o_ex1, size=.95, damp=1, bal=.5).out()
"""
    o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.5)
    o_ex2 = Freeverb(o_ex1, size=.95, damp=1, bal=.5).out()

    c = Clean_objects(4, o_ex1, o_ex2)
    c.start()
github belangeo / pyo / pyodemos / Disto_demo.py View on Github external
def ex1():
    from pyo import SfPlayer, Clean_objects, DEMOS_PATH
    print """
Soft distortion:

o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.25)
o_ex2 = Disto(o_ex1, drive=.25, slope=.7).out()
"""
    o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.25)
    o_ex2 = Disto(o_ex1, drive=.25, slope=.7).out()

    c = Clean_objects(4, o_ex1, o_ex2)
    c.start()
github belangeo / pyo / pyodemos / Delay_demo.py View on Github external
def ex1():
    from pyo import SfPlayer, Clean_objects, DEMOS_PATH
    print """
Simple delay:

o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.5).out()
o_ex2 = Delay(o_ex1, .250, 0, 1).out()
"""
    o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.5).out()
    o_ex2 = Delay(o_ex1, .250, 0, 1).out()

    c = Clean_objects(4, o_ex1, o_ex2)
    c.start()
github belangeo / pyo / pyodemos / Disto_demo.py View on Github external
def ex2():
    from pyo import SfPlayer, Clean_objects, DEMOS_PATH
    print """
Hard distortion:

o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.5)
o_ex2 = Disto(o_ex1, drive=.98, slope=.2, mul=.15).out()
"""
    o_ex1 = SfPlayer(DEMOS_PATH + '/transparent.aif', loop=True, mul=.5)
    o_ex2 = Disto(o_ex1, drive=.98, slope=.2, mul=.15).out()

    c = Clean_objects(4, o_ex1, o_ex2)
    c.start()