Forums > MaxMSP

Record and play

April 8, 2010 | 7:04 pm

Hello,

I have a problem which i am a bit stuck with,
So what i would like is do a record of people inside a space for a certain amount of time
then write it and play it in order that the other people who
came after can bend this sound but at the same time they are also record in order that the other
person after them can bend their sound, and so on…
i have made that so far but quite stuck with the repetition :s
it will be really helpful for me if someone has some solutions,

{
"patcher" : {
"fileversion" : 1,
"rect" : [ 35.0, 44.0, 723.0, 628.0 ],
"bglocked" : 0,
"defrect" : [ 35.0, 44.0, 723.0, 628.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "2nd recording",
"patching_rect" : [ 15.0, 254.0, 150.0, 20.0 ],
"id" : "obj-30",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 0,
"fontsize" : 12.0,
"presentation_rect" : [ 15.0, 254.0, 0.0, 0.0 ]
}

}
, {
"box" : {
"maxclass" : "button",
"patching_rect" : [ 172.0, 258.0, 20.0, 20.0 ],
"id" : "obj-29",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "bang" ]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "1st recording",
"patching_rect" : [ 15.0, 16.0, 150.0, 20.0 ],
"id" : "obj-26",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 0,
"fontsize" : 12.0
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "0, 10000 10000",
"patching_rect" : [ 172.0, 287.0, 124.0, 18.0 ],
"id" : "obj-18",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "message",
"text" : "write",
"patching_rect" : [ 388.0, 15.0, 50.0, 18.0 ],
"id" : "obj-19",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "line~",
"patching_rect" : [ 172.0, 326.0, 100.0, 20.0 ],
"id" : "obj-17",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 2,
"fontsize" : 12.0,
"outlettype" : [ "signal", "bang" ]
}

}
, {
"box" : {
"maxclass" : "flonum",
"patching_rect" : [ 195.0, 409.0, 50.0, 20.0 ],
"id" : "obj-13",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 2,
"fontsize" : 11.595187,
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "ezdac~",
"varname" : "autohelp_dac",
"patching_rect" : [ 173.0, 475.0, 45.0, 45.0 ],
"id" : "obj-14",
"local" : 1,
"numinlets" : 2,
"numoutlets" : 0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "*~ 0.2",
"patching_rect" : [ 173.0, 433.0, 41.0, 20.0 ],
"id" : "obj-4",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 11.595187,
"outlettype" : [ "signal" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "play~ sound 10000",
"patching_rect" : [ 173.0, 368.0, 122.0, 20.0 ],
"id" : "obj-23",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 4,
"fontsize" : 11.595187,
"outlettype" : [ "signal", "signal", "signal", "signal" ]
}

}
, {
"box" : {
"maxclass" : "number~",
"patching_rect" : [ 176.0, 148.0, 56.0, 20.0 ],
"id" : "obj-12",
"mode" : 2,
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 2,
"fontsize" : 12.0,
"outlettype" : [ "signal", "float" ],
"sig" : 0.0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ sound 10000",
"patching_rect" : [ 388.0, 50.0, 125.0, 20.0 ],
"id" : "obj-11",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 2,
"fontsize" : 12.0,
"outlettype" : [ "float", "bang" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "0",
"patching_rect" : [ 217.0, 86.0, 33.0, 20.0 ],
"id" : "obj-10",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "int" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "10000",
"patching_rect" : [ 257.0, 86.0, 44.0, 20.0 ],
"id" : "obj-9",
"fontname" : "Arial",
"numinlets" : 2,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "int" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "adc~",
"patching_rect" : [ 176.0, 63.0, 43.0, 20.0 ],
"id" : "obj-7",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 2,
"fontsize" : 12.0,
"outlettype" : [ "signal", "signal" ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "record~ sound",
"patching_rect" : [ 176.0, 114.0, 100.0, 20.0 ],
"id" : "obj-6",
"fontname" : "Arial",
"numinlets" : 3,
"numoutlets" : 1,
"fontsize" : 12.0,
"outlettype" : [ "signal" ]
}

}
, {
"box" : {
"maxclass" : "toggle",
"patching_rect" : [ 177.0, 16.0, 20.0, 20.0 ],
"id" : "obj-3",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ]
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-29", 0 ],
"destination" : [ "obj-18", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-9", 0 ],
"destination" : [ "obj-6", 2 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-19", 0 ],
"destination" : [ "obj-11", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-18", 0 ],
"destination" : [ "obj-17", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-17", 0 ],
"destination" : [ "obj-23", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-23", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-7", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-10", 0 ],
"destination" : [ "obj-6", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-6", 0 ],
"destination" : [ "obj-12", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-14", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-14", 1 ],
"hidden" : 0,
"midpoints" : [ 182.5, 460.0, 208.5, 460.0 ]
}

}
, {
"patchline" : {
"source" : [ "obj-13", 0 ],
"destination" : [ "obj-4", 1 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}

}


April 8, 2010 | 7:35 pm

After looking at your patch, it would appear that you may wish to overwrite into several buffers; you don’t say how many overlapping sounds you wish to have playing at the same time, and how long those sounds are; look at this recent thread and see if there’s any help there:

http://cycling74.com/forums/topic.php?id=25583


April 8, 2010 | 9:27 pm

I just look at the patch thanks but i’m not sure is what i want to do, its a bit confused for me,…
each sound will be 20-30 sec. after this time people1 go out and some people2 go inside the space and can play to what have been recorded before when people1 were in, then after the 20-30sec. people2 go out and people3 go in, etc… and so on for a day.
I would like that it will be a continuous overwriting, do you see what i mean?
Also i would like to have a trace of the sound each time people1 and people2 and people3, etc… come inside during the 20-30 sec. (that it save the .aif)
is that looks clear?
thank you to help,
i have not much time lift to finish it :s i appreciate a lot :)


April 8, 2010 | 9:43 pm

So
1. group1 enters and ‘makes sounds’ (talking/walking/playing music?), which is recorded live into a buffer

2. group1 leaves; group2 enters and changes group1 sounds using [groove~] or something else (do you want to record what group2 do to group1 sound, or record group2 making ‘new’ sounds?)

3. group2 leaves; group3 repeats the process. etc etc

look at the helpfile for the objects: [record~]; [buffer~]; [poke~]


April 9, 2010 | 9:00 am

Yep that is it, i want to try both, record what group2 do to group 1 sound and do another test record the new sounds….
I am looking at all the object that you advice but it s true that i’m a lot struggling…
I succeed to record the first record an replay it and be able to bend it but the second part im stuck. (it s how it is with max msp!!!hehe)
if you have any more tips? ;)
Meanwhile i continue my researches !
Thanks


April 9, 2010 | 10:20 am

This patch allows you to record to a buffer, and then overwrite it later; if you want, copy and paste everything inside the green box, and give [poke~] and [buffer~] one new name; this will allow you to keep Group1 sounds while recording Group2 sounds:

– Pasted Max Patch, click to expand. –

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