Forums > MaxMSP

record a sound with sustain in a buffer.

Oct 09 2013 | 9:35 am

i want to recording from the kslider a pianosound. it has a long sustain. but when i’m recording it in to a buffer (buffer 6000), it records only the piano sound and not the sustain who cames afterward. has anybody an idea how i can record the sound with the sustain?

Oct 09 2013 | 12:14 pm

what is generating the piano sound ?

Oct 09 2013 | 2:20 pm

When you say "sustain", are you meaning the "sustain pedal" info, or are you just trying to record a long note?

Oct 10 2013 | 1:19 am

the pianosound is genereted from midi notes. just like a simple synthesizer. that i made in a patch. like in the tutorial: max midi tutorial note management. also the sustain is created in this patch. then i tryed to create a patch with recording in a buffer.

so i compressed two patches where i work with. and where i had/have problems to record all my material. i trigger this keyboard with my yamaha midicontrollermCBX-K1

-- Pasted Max Patch, click to expand. --


-- Pasted Max Patch, click to expand. --


Oct 10 2013 | 3:44 am

You should probably post your patch:

in unlocked Edit Mode, go Edit/Select All; Edit/Copy Compressed, then paste here.

Oct 11 2013 | 2:28 am

*in the first patch you are using only midi, so the sound goes outside max – you can get it back by using Soundflower or Jackrouter, setting default computer output device as one of thsoe, then use adc~ with the related thing as input channel, then record it. (mac or windows ?)
*In the second example : you are recording what comes through your default input device (usually a built-in microphone), and starting the record on a first note-off information, stopping it on a second note-off (that’s how record works : 1 or nonzero to start, 0 to stop the recording. You’re using "sel" which sends a bang to toggle when it receives a 0, which happens when the velocity of a notein is 0, which happens on a note-off information, ie when you are releasing a key. Then, each bang in the toggle causes it to switch between 1 and 0)

To summarize, it seems you are not doing what you thingk you are doing…the piano sound you can effectively record in the buffer~ seems to come from your computer’s audio output, without going through max. I suggest, er, using soundflower or jack to reroute midi audio through your max patch directly, so you will really understand what happens ?

Oct 14 2013 | 1:58 am

hi again,
i tryed with soundflower. set on Audio/Midi Setup Soundflower.
by the max patch Driver: Core Audio (i can’t see Core Audio soundfloer!)
Input device: Soundflower Output Device MOTU.
but still i can’t record in a buffer by the way i work with mac pro OX 10.6.8

-- Pasted Max Patch, click to expand. --


Oct 14 2013 | 4:33 am

"driver" should be coreaudio, and "input device" soundflower – so you’re ok there

can you still here the piano sound when you are playing ? you shouldn’t, if your default output device is effectively set on soundflower. If ylu want to heare it then, use Max input from soundflower to route to a physical output (your MOTU).
There is soundflower(2ch) and soundflower(16ch), they are not the same audio channels, so be careful you use the same each time.

By the way : with that patch you posted, you won’t have any sound, you know ? the output of record~ is not an audio output, it’s a sync output – it gives info on relative position in the buffer, on a 0 to 1 scale. You should see the related soundwave beeing recorded though.

Oct 17 2013 | 4:43 am

i hear still my sound. don’t know way. checked all my input and output. i work with soundflower 1.5.2. only with two channel. i couldn’t install the newer one. with this output i see that something get through. but it seems that it is a slowly growing feetback. this i don’t here, but i see how the level meter grows till it is red!

Oct 20 2013 | 5:21 am

hei i still try to figer out how to play my generated sound where come from a midikeyboard and is connected with a midicabel to my motu and goes into my patch. soundflower2ch is on, by input and output. the driver is coreaudio. but in my patch it grows to a feedback wenn i click with my mouse or my keyboard.

-- Pasted Max Patch, click to expand. --


Oct 21 2013 | 6:58 am

You are not recording any sound here. [Record~] only takes audio as input, the only audio signal you’re giving it comes from the [scale~], and it makes no sense, because there is no input in that [scale~], and [scale] only scales an incoming signal and won’t do anything on its own.
Besides, as i told you earlier, [record~]’s outlet doesn’t send an audio signal, but a rate synchronization signal, which is useful for syncronizing with other oscillators – completely useless for your patch – and you should *not* connect it to an audio output (or anything at all in your case). [record~] alone DOES NOT MAKE SOUND.
you need one adc~ or ezadc~ connected to record~, you need to unconnect record~ from ezdac~, then you probably need to study more deeply the helpfiles of the objects you are using…

Oct 22 2013 | 12:20 am

Thanks. look, i’m a totaly beginner… and finally i found out yesterday, what was the case, why i couldn’t record in a buffer with the patch, where you gafe me some really good ideas.
when you know it, it is simple, but you have to know. the case was, that i didn’t know, that i have to change on the "systempreferences – sound", to soundflower. i did change to soundflower befor only by audio/midisetup and in Max by audio inpur-output….
so, thank you anyway for helping me. the beginning was very useful.

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

Forums > MaxMSP