audio on and off switch

For general discussion related FlowStone
Post Reply
ordinarydyon
Posts: 12
Joined: Fri May 29, 2015 11:46 am

audio on and off switch

Post by ordinarydyon »

hii there im new here and i have a problem i need a stereo on and off switch for a audio signal but i dont know how to make that can please anybody help me out please i willl appreciate it a lot
:)
glitchcpt
Posts: 54
Joined: Wed Oct 01, 2014 3:42 pm

Re: audio on and off switch

Post by glitchcpt »

Just use the stock "stereo amp", open it up, remove the knob and replace it with a switch, wire the Boolean output to the Float input and should work ;)
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: audio on and off switch

Post by Spogg »

I remember looking in the toolbox for such a thing when I started on my addiction.
In fact the multiplexor is dead easy to use for this. Here's a little module ready to go. It can be used for many signal types based on what you wire into it.

Have fun with Flowstone but beware of becoming dependant!

Cheers

Spogg
Attachments
Signal on-off and changeover.fsm
simple but useful (I hope)
(354 Bytes) Downloaded 887 times
ordinarydyon
Posts: 12
Joined: Fri May 29, 2015 11:46 am

Re: audio on and off switch

Post by ordinarydyon »

thank you !!!!!! this helped me out im verry happy now
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: audio on and off switch

Post by MyCo »

Don't use multiplexer in streams, they don't disconnect the "off" path. Use selectors instead, this'll reduce the CPU usage a lot. Selectors force a recompile of the stream processing code, so only the parts that are "on" are using CPU. All other parts are completely shut down.
Attachments
Stereo switch.fsm
(3.7 KiB) Downloaded 871 times
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: audio on and off switch

Post by Spogg »

Hi MyCo

This is "fascinating" (as my second cousin Spock would say).

I found just the opposite when developing my Quilcom Adder. I started using selectors to disable a Partial strip when the partial ratio was set to zero (turning off the audio output to avoid CPU load) but I had problems until I used the Multiplexor. I can't recall the exact issues but I can look back into my Devs folder if there's any interest. I believe the issue was in the resulting VST, in Reaper.
My problems seemed counter-intuitive - to have to switch the output routing rather than the input side. One would expect either to work but, in spite of my searching for a reason, I had to concede and go with the Multiplexor because this worked and did what I wanted it to do.

This is a great forum and I love it when the experts get involved!

Cheers

Spogg
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: audio on and off switch

Post by RJHollins »

I can't recall the exact issues but I can look back into my Devs folder if there's any interest. I believe the issue was in the resulting VST, in Reaper.

I'd be interested.

I had a small VST plug that switched a stereo audio into 2 output pairs ... basically a audio router that would allow sending audio to one of 2 different paths.

The issue came when using the VST plug in the Plogue BIDULE chainer app. I contacted Plogue support and they were not able to help.

I'm still looking for a workable solution.

Thanks.
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: audio on and off switch

Post by Spogg »

Hi

I've had a look at my development stages and, naturally, I didn't save the non-working output switching. I develop and experiment in stages and only keep the stages that work as they should.
I do recall the issue though. When I selected a preset that had a channel (synth) with a Ratio set to zero the selector disconnected the routing from the synth but the complete audio went off. Clear Audio Prim didn't bring it back. I had to unload and reload the VST. This was eventually cured by using the Mulipexor to disconnect the poly audio stream instead of the selector.
However, I can't reproduce this behaviour. I threw together a 2 channel (double) synth and tried both methods, multiplex and selector, to turn off the streams, and it worked as one would expect. Both otherwise identical instruments worked fine in Reaper. The two version are below and I've upploaded these to show another point or two. Both output switching methods work and both seem to result in the same reduction in CPU cycles when one or both synth channels are switched off (slider switch).
Something else happened which was new to me. If I bought out the poly streams and fed both into a single combiner outside the synth modules I could only ever hear the last one I connected. Prviously I was able to wire multiple streams into one combiner and hear them all, as is the case with my Quilcom Adder.
I have to assume that this change may be due to me going from FS 3.07 to 3.08.1 and also the Reaper version is new and that may have some influence.
Any ideas?

Cheers

Spogg

EDIT: Just to be clear, the original Selector-based problem was only in the VST, tested in Reaper. It worked fine in Flowstone.
The combiner issue I mentioned is in Flowstone, 3.08.1.
Attachments
Using selector to switch poly output.fsm
(104.89 KiB) Downloaded 869 times
Using multiplexor to switch poly output.fsm
(105.01 KiB) Downloaded 854 times
Post Reply