Skip to content

Simple way of layering Playback Processors? #181

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

You must be logged in to vote

I think in this case you want to use the Add Processor. You also don't need to set .record to True, unless you care about the intermediate signals. So I think this snippet will help.

add_processor = engine.make_add_processor("added", [1., 1., 1.])
# you can optionally do the following line whenever you want
add_processor.gain_levels = [1., 1., 1.]
graph = [
  (bass, []), # Playback has no inputs.
  (synth, []), # Playback has no inputs.
  (tempo, []),  # Playback has no inputs
  (add_processor, ["synth", "drums", "bass"]),
  (reverb_processor, ["added"])
]

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gnoejuan
Comment options

You must be logged in to vote
0 replies
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