I have a wavetable player and and adc~ in my patch and need to know how to switch between them, dumb question I know but my head is getting fried!!
Cheers in advance!
One last bit of help! switching betwen adc~ and wavetableplayer
I have a wavetable player and and adc~ in my patch and need to know how to switch between them, dumb question I know but my head is getting fried!!
Cheers in advance!
Add a toggle (named e.g. SourceSwitch) and then use a [*~] for each source, but with the value from the toggle inverted for one of the sources ( [- 1]
So for one source you have:
[pd wavetableplayer~]
|
| [r SourceSwitch]
| |
[*~ ]
|
And for the other you would have:
[adc~]
|
| [r SourceSwitch]
| |
| [- 1]
| |
|
You could insert a [line~] for smoother transitions, but if you're not using pure sine waves you can do without.
Hope this helps.
|] [] |.| ][|-| -- http://soundcloud.com/domxh
or instead of a toggle, you can use a [hradio] with only 2 cells. that way you hit the left cell to switch left and the right cell to switch right.
and with the radio method, you can switch between lots of sources:
[source0]
|
| [r radio]
| |
| [== 0]
| |
[*~ 0]
|
[throw~ source]
[source1]
|
| [r radio]
| |
| [== 1]
| |
[*~ 0]
|
[throw~ source]
[source2]
|
| [r radio]
| |
| [== 2]
| |
[*~ 0]
|
[throw~ source]
etc
[catch~ source]
|
out
(just using throw~/catch~ here so that it doesn't get too complicated ascii)
To avoid clicks, you can use [vline~] like this:
[source1]
|
| [r radio]
| |
| [== 1] or whatever radio value to select
| |
| [change]
| |
| [pack f 10] for 10ms fade time
| |
| [vline~]
| |
[*~]
|
[throw~ source]
Oops! Looks like something went wrong!