Skip to content

Instantly share code, notes, and snippets.

@jarmitage
Last active April 5, 2024 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarmitage/a1521962976796c4d058f4efc7d18895 to your computer and use it in GitHub Desktop.
Save jarmitage/a1521962976796c4d058f4efc7d18895 to your computer and use it in GitHub Desktop.
Sardine x SignalFlow example
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