electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » Instruments and Equipment » MAX/MSP - Pd
Is This Possible?
Post new topic   Reply to topic Moderators: jksuperstar
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
w minor



Joined: Sep 28, 2006
Posts: 12
Location: Reading, UK

PostPosted: Sun Oct 08, 2006 5:18 pm    Post subject: Is This Possible?
Subject description: either/or type decisions in MAX
Reply with quote  Mark this post and the followings unread

Hi,

I have a patch in which i need to co-ordinate the signals down two seperate signal chains so that a signal can only ever go down one chain at anyone time. Both signals will both just be a 1, they then need to continue on to their respectful destinations, but never on the same beat.


I hope this is clear, it's not easy to explain.

Please if anyone could help me with this it would be most appreciated.

Thanks

w minor
Back to top
View user's profile Send private message
seraph
Editor
Editor


Joined: Jun 21, 2003
Posts: 12092
Location: Firenze, Italy
Audio files: 33
G2 patch files: 2

PostPosted: Sun Oct 08, 2006 11:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

a gate~ maybe Question
_________________
homepage - blog - forum - youtube

Quote:
Politics is the entertainment division of the military industrial complex - Frank Zappa
Back to top
View user's profile Send private message Visit poster's website
w minor



Joined: Sep 28, 2006
Posts: 12
Location: Reading, UK

PostPosted: Mon Oct 09, 2006 5:06 am    Post subject: Reply with quote  Mark this post and the followings unread

no a gate will not work for this, it only has one input that can be passed through it. Perhaps i did not explain myself well enough.

Imagine data A and data X travelling along parallel chains. I need data A to continue to destination B and X to continue to destination Y, without variation, with the exception that the two cannot happen at the same time...

please help me this is driving me crazy

thanks
Back to top
View user's profile Send private message
seraph
Editor
Editor


Joined: Jun 21, 2003
Posts: 12092
Location: Firenze, Italy
Audio files: 33
G2 patch files: 2

PostPosted: Mon Oct 09, 2006 6:18 am    Post subject: Reply with quote  Mark this post and the followings unread

3 gates maybe:
the first between A to B
the second between X and Y
the third opens and/or closes the previous two
Shocked

_________________
homepage - blog - forum - youtube

Quote:
Politics is the entertainment division of the military industrial complex - Frank Zappa
Back to top
View user's profile Send private message Visit poster's website
elektro80
Site Admin


Joined: Mar 25, 2003
Posts: 21977
Location: Norway
Audio files: 14

PostPosted: Mon Oct 09, 2006 7:35 am    Post subject: Reply with quote  Mark this post and the followings unread

When A is hot the signal is routed to B. When X is hot, the A input is muted and output routed to Y?
_________________
A Charity Pantomime in aid of Paranoid Schizophrenics descended into chaos yesterday when someone shouted, "He's behind you!"

MySpace
SoundCloud
Flickr
Back to top
View user's profile Send private message Visit poster's website
w minor



Joined: Sep 28, 2006
Posts: 12
Location: Reading, UK

PostPosted: Mon Oct 09, 2006 9:30 am    Post subject: Reply with quote  Mark this post and the followings unread

to clarify:

if A is hot it's routed to B
if X is hot it's routed to Y
BUT if A and X are hot, only one of them conpletes it's journey to B or Y respectively, but it is not predetermined which one of these will take priority, it should be random for each decision.
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Mon Oct 09, 2006 9:55 am    Post subject: Reply with quote  Mark this post and the followings unread

So; you make three gates;

The first is open when A && !Y
The second is open when !A && Y
The third is open when A & Y

All of these are mutually exclusive and all get fed your input signal.

You then take some Xfade or switch type thingy, modulate it by a random value that switches it between the two extremes.

Finally you take a mixing thingy that feeds the first gate and the X fade's output to B and a second mixing thingy that takes the second gate and the Xfade and goes to B.

I'll leave it to you to translate that to Max but that's how I'd do it in other graphical systems. Fun puzzle.

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
w minor



Joined: Sep 28, 2006
Posts: 12
Location: Reading, UK

PostPosted: Mon Oct 09, 2006 5:12 pm    Post subject: Reply with quote  Mark this post and the followings unread

Cracked it!!!

similar to what was suggested but not quite the same...

since the output of both data sources was always either 1 or 0 i just used two > commands to deal with the situations in which only one was non-zero,
then i used and && comand routed through a 50/50 random decision type thing to decide which note would play when both were hit.

thanks for your help

peace
Back to top
View user's profile Send private message
flowersniffer7



Joined: Nov 17, 2006
Posts: 53
Location: Allentown PA

PostPosted: Mon Nov 20, 2006 8:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

Terminal 11 actually does something similar using the matrix objects in audio mulch... He takes beats he made and runs them into different fx chains using the matrix... Pretty interesting.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic Moderators: jksuperstar
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Instruments and Equipment » MAX/MSP - Pd
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use