diff --git a/docs/devices/signalflow.md b/docs/devices/signalflow.md index 066b9d5..18a8c94 100644 --- a/docs/devices/signalflow.md +++ b/docs/devices/signalflow.md @@ -12,21 +12,18 @@ Three different types of event are supported, all of which interact with [Patch] ```python from isobar import * -from isobar.io.signalflow import SignalFlowOutputDevice from signalflow import * class Ping (Patch): def __init__(self, frequency: float = 440): super().__init__() - envelope = ASREnvelope(0, 0, 0.5) sine = SineOscillator(frequency) + envelope = ASREnvelope(0, 0, 0.5) output = sine * envelope * 0.25 self.set_output(output) self.set_auto_free_node(envelope) -graph = AudioGraph() -output_device = SignalFlowOutputDevice(graph=graph) -timeline = Timeline(120, output_device=output_device) +timeline = Timeline(120, SignalFlowOutputDevice()) timeline.schedule({ # If a Patch class is passed to the `patch` property, a patch of this class # is created each time the event is triggered. @@ -100,4 +97,4 @@ timeline.schedule({ "duration": PLoop(PTri(10, 0.1, 0.5)), }) timeline.run() -``` \ No newline at end of file +```