Skip to content

live_loop can't control surrounding with_fx #1479

Open
@emlyn

Description

@emlyn

Previously posted here https://groups.google.com/forum/#!topic/sonic-pi/aLI4MGLnzA4
I'm not sure if this is a bug, expected behaviour, or something I'm doing wrong, but in any case it is quite confusing. If I have a piece of code with a live_loop inside a with_fx, like the following:

with_fx :reverb do |fx|
  live_loop :test do
    play :c
    sleep 1
  end
end

If I run it at least once, then I modify the loop to control the fx, for example:

with_fx :reverb do |fx|
  live_loop :test do
    control fx, amp: 0
    play :c
    sleep 1
  end
end

It doesn't have any effect on the sound. I can work around it by moving the fx inside the live_loop, but I believe that is less efficient because it creates a new fx node every time it goes around the loop.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions