Last active
June 20, 2024 15:56
-
-
Save jarmitage/a1521962976796c4d058f4efc7d18895 to your computer and use it in GitHub Desktop.
Sardine x SignalFlow example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sardine_core.run import * | |
import os | |
import signalflow as sf | |
graph = sf.AudioGraph() | |
audio_path = "/signalflow/examples/audio/stereo-count.wav" | |
buf = sf.Buffer(audio_path) | |
player = sf.BufferPlayer(buf, loop=True) | |
player.play() | |
@swim | |
def loop(p=4, i=0): | |
player.rate=P('0.5 2 0.1', i) | |
again(loop, p=1/2, i=i+1) | |
player.stop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment