[maxmsp] Audio Switcher
jasch
j at jasch.ch
Sun Jan 27 00:16:42 MST 2008
- Previous message: [maxmsp] Re: Audio Switcher
- Next message: [maxmsp] Audio Switcher
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
this sounds like the perfect job for a multiplexer. there are cheap
ones for a few $/€/£ that can be controlled by any microcontroller
like an arduino board. the switching is not particularly clean or
fast, and you might get clicks if used in an audio-signal, but it does
what you're describing: one input to one of several selectable outputs
(only one connection at a time, though). if the switching is to be
completely regular and you're good at building circuits you might get
away with just using timers instead of a microcontroller. the
microcontroller OTOH would give you software control over the switching.
multiplexer model: CD74HC4067 or similar
this is the run-loop of an arduino firmware that switches between four
channels under serial control from software (using 2 bits on pins 12 &
13):
void loop()
{
while (Serial.available() > 0) { // reads all characters
from serial buffer -> only keep last one
byte1 = Serial.read();
newflag = 1;
}
if(newflag == 1) {
if(byte1 == 49) {
digitalWrite(12, LOW); // port 1
digitalWrite(13, LOW);
} else if(byte1 == 50 ) {
digitalWrite(12, HIGH); // port 2
digitalWrite(13, LOW);
} else if(byte1 == 51 ) {
digitalWrite(12, LOW); // port 3
digitalWrite(13, HIGH);
} else if(byte1 == 52 ) {
digitalWrite(12, HIGH); // port 4
digitalWrite(13, HIGH);
}
newflag = 0;
}
}
cheers
/*j
> does anyone know or could give me tips/advice if i can build a
> hardware switcher like the external Bucket?
>
> what i want to build is rather simple. the hardware takes 1 input
> and distrubute it into say 16 outputs. After the input and before
> the outputs, i would like to have a hardware kind of switcher which
> i can set a timer (either in hardware or max controlled) so that it
> sends the audio to output 1 for 10 secs, then switches to output 2
> for 10 secs, output 3 for 10 secs and so on. i
- Previous message: [maxmsp] Re: Audio Switcher
- Next message: [maxmsp] Audio Switcher
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
