Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Opposite of Switch Chop

Still a little green? Ask your beginner's questions here

Opposite of Switch Chop

Postby niknaim » Tue Apr 10, 2018 1:59 pm

I am looking for a possibility to route a audiofile in chops to one of 5 different audio deice out chops. I want to chose by number to which AudioDEviceOut-Chop the sound should be sent. Since I am still a beginner I just cannot find a way. Hope someone has an idea.
niknaim
 
Posts: 3
Joined: Sun Apr 23, 2017 7:51 am
Location: Stuttgart

Re: Opposite of Switch Chop

Postby raganmd » Tue Apr 10, 2018 2:57 pm

More complex routing is usually a little easier to solve with a select operator (a select CHOP for example) and some simple python scripting. If you can post some more details and your starting point we can try to give you a push in the right direction. Have you done any python before?
raganmd
 
Posts: 1272
Joined: Thu Mar 28, 2013 5:21 am
Location: San Francisco, CA

Re: Opposite of Switch Chop

Postby elburz » Tue Apr 10, 2018 6:34 pm

Do you come from a Max MSP background and using gate and router objects?
--
Elburz Sorkhabi
Creative + Technology
nVoid Art-Tech Limited
http://nvoid.com
elburz
 
Posts: 1994
Joined: Fri Jun 01, 2012 6:55 pm
Location: Toronto, Canada

Re: Opposite of Switch Chop

Postby niknaim » Wed Apr 11, 2018 4:25 am

Thanky raganmd for you offer.
I come from Isadora-Background. There you have the "Router-Actor" which exactly does what I want. I never used MaxMSP and tried a little in Python already in TouchDesigner.

I attached a file with my base setup. By setting numbers 1-5 I want to route the Audiofilein-Chop to one of 5 different AudioDeviceOut-Chops (with different devices chosen in the Chop).

The aim is to change the audiodevice that the sound is routing to dynamically.
I would be happy if someone can help me to get on the way with that.
Attachments
audio_routing.2.toe
(9.88 KiB) Downloaded 12 times
niknaim
 
Posts: 3
Joined: Sun Apr 23, 2017 7:51 am
Location: Stuttgart

Re: Opposite of Switch Chop

Postby elburz » Wed Apr 11, 2018 10:58 am

The easiest non-python way would be to use Fan CHOP to turn one channel into a channel per output, then filter to smooth out the signal change. Then you can use each of the new channels as "gates" by multiplying the audio signal going to each output by it's corresponding "gate" channel.
Attachments
audio_routing.toe
(11.05 KiB) Downloaded 24 times
--
Elburz Sorkhabi
Creative + Technology
nVoid Art-Tech Limited
http://nvoid.com
elburz
 
Posts: 1994
Joined: Fri Jun 01, 2012 6:55 pm
Location: Toronto, Canada

Re: Opposite of Switch Chop

Postby niknaim » Wed Apr 11, 2018 1:24 pm

Thank you elburz! Thats what I am looking for. I didnt understand the fan CHOP yet. By the way I have been again to the Void-Website. Impressive projects you have. I will be happy to see oneof them live one day.
niknaim
 
Posts: 3
Joined: Sun Apr 23, 2017 7:51 am
Location: Stuttgart

Re: Opposite of Switch Chop

Postby elburz » Thu Apr 12, 2018 12:49 pm

No problem, Matthew can provide further examples (I'm sure he already has a tutorial about it) but I thought I'd chime in with the native operator version that doesn't need Python since it's easier for new users to grasp.

Thanks for the kind words :D
--
Elburz Sorkhabi
Creative + Technology
nVoid Art-Tech Limited
http://nvoid.com
elburz
 
Posts: 1994
Joined: Fri Jun 01, 2012 6:55 pm
Location: Toronto, Canada


Return to Beginners

Who is online

Users browsing this forum: No registered users and 10 guests