Forums > MaxMSP

sending and receiving audio from Logic..

June 24, 2009 | 5:44 am

Ok.. So I’ve got a patch that has a subtractive synth and a random number generator.. but is also playing an audio file which pulls numbers from it to create midi information which I am sending to a vocoder in Logic, (at the moment playing the same file..)..

What i’d like to do is have the audio being played from Maxmsp, sent out to Logic (along with the midi values), then routed back to Max for mixing in with the other audio..

I can’t figure out how to make it so that Max can ONLY send out the audio form the audio file via rewire without touching everything else..

anyone got any ideas?

here’s the patch, as well if you’re interested..

– Pasted Max Patch, click to expand. –

June 24, 2009 | 12:18 pm

You should be able to do the audio routing with SoundFlower 16ch. Seems like you could use [dac~ 3 4] to send audio to Logic. Then in LOGIC, set a stereo channel’s input to 3-4, process the sound with plugins, and set the track’s output to 4-5. Then in Max, make a [adc~ 4 5] in max to receive the processed sound back inside Max.

Should not be very hard, but be careful of creating an feedback loop with SoundFlower.

Hope this is helpful,
Mitch


June 24, 2009 | 2:27 pm

yeah that makes perfect sense, however, i went to do it, but Logic doesn’t seem to be getting any input (i.e. no sound, no movement on the meters..). I had a look in dsp status, and the outputs are set to 2, and aren’t able to be changed..! When you go to the routing options, you can assign 1+2 to outputs 1-whatever, but that just gives us the master out.. ahh!


June 24, 2009 | 2:30 pm

STOP THE PRESS! I’ve got it!

be wary of the deadly "Soundflower 16ch (Aggregated)" option. it be deadly, and theivin’ of ye outputs me laddies….

(No idea why it seemed fitting to write that in pir-english…).

Thanks heaps Mitch!


June 24, 2009 | 6:51 pm

Arrrr, and ya have a fine method of expressin’ yerself, me hearty!

? can somebody explain
Why should logic even offer an ‘aggregated’ connection to Soundflower, or a multi-input/multi-output audio interface (EG RME fireface)? What’s the advantage?

cb.aka j2k


June 24, 2009 | 8:13 pm

If you want to run audio to and from your audio interface, as well as run audio in between applications at the same time, then you would want an aggregated device. Otherwise you only get one or the other.


June 24, 2009 | 10:15 pm

(the ‘aggregated’ option was actually showing up in Maxmsp.. not logic!)..

I don’t really understand it either.. I only ever see "aggregated" options come up for my built in sound card when i unplug my Motu.. And the only difference I can see is that the computer volume control buttons are disabled. i thought it was might strange that an aggregated Soundflower option was available.. Again..

I still don’t really get what the "aggregation" is al about either!



Zh
June 25, 2009 | 12:06 am

@mitch turner – that’s possible, but then how do you hear the sound?


June 25, 2009 | 1:54 pm

zh,
What I’d do is go to the SoundFlower Bed icon (up by the time, wifi, battery indicator, etc…) and make sure SoundFlower 16 has a check mark beside Built-In Output. By checking this, SoundFlower will copy a channel’s audio to the Built-In Output. Any of the channels may be sent to the Built-In Output by checking them.

I think it is in the README for SoundFlowerBed.

So, I’d use 1-2 for my all the audio I want to hear and 3-16 for interapplication routing.

Hope that makes sense,
Mitch


June 25, 2009 | 4:07 pm

ok.. so I did this..

and it worked beautifully.

Really well.

I had my recording of Anton Artaud routed out to logic, and being vocoded (with the synth component being controlled by midi notes coming from the amplitude of the file).

Then… All of a sudden Soundflower decides that it no longer wants to work. At all. I reloaded EVERYTHING.. Rebooted, the whole bit. But sound flower has chosen to no longer function between programs.. 30 minutes before the performance.

This made me very sad.


June 28, 2009 | 12:22 am

Couldn’t you simply set up 2 Rewire outputs?

(i.e. – the first lot of audio goes in via rewire 1+2, that’s routed back into max for further audio mixing and then gets sent back into logic via rewire 3+4)

Ignore me if I’ve missed some glaringly obvious issue with this, I’m tired (well, that’s my excuse and I’m sticking to it!).


June 28, 2009 | 7:47 am

the problem is that when you select the rewire driver it doesn’t let you use your interface as a device anymore..

As far as I can see anyway..?


Viewing 12 posts - 1 through 12 (of 12 total)