Skip to content

How do you link the output of one plugin to the input of another plugin? #96

Answered by DBraun
samuelbraun04 asked this question in Q&A
Discussion options

You must be logged in to vote

Looks ok, but assuming you want to connect the output of the bass boost to the input of the soft clipper, the graph should be different.

graph = [
    (playback_processor, []),
    (bass_boost, ["playback"])
    (soft_clipper, ["my_bass_boost"])
]
# or
graph = [
    (playback_processor, []),
    (bass_boost, [playback_processor.get_name()])
    (soft_clipper, [bass_boost.get_name()])
]

Also, I see you copied assert soft_clipper.get_name() == "my_soft_clipper". This was in the README just to show get_name(), but you don't have to bother checking it in production code.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@samuelbraun04
Comment options

Answer selected by samuelbraun04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants