synchronize the recording button

3 replies [Last post]
jazzisfaction
Offline
Joined: 02/08/2010
synchronize the recording button

 Hey,
I would like to start the recording into a buffer (with a record~) object within Max/MSP whenever I trigger the record button in a chosen audio track in LIVE (see patch in attachment)
Is this possible and if 'yes', how could I do that?
Thanx for helping.
Cheers
Peer
{
"boxes" : [ {
"box" : {
"maxclass" : "newobj",
"text" : "buffer~ incomingSignal",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "float", "bang" ],
"fontsize" : 12.0,
"patching_rect" : [ 128.0, 260.0, 133.0, 20.0 ],
"id" : "obj-8"
}
 
}
, {
"box" : {
"maxclass" : "comment",
"text" : "how can I synchronize the 'trigger' toggle with the record-button of a chosen audio track in LIVE?",
"linecount" : 4,
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 0,
"fontsize" : 12.0,
"patching_rect" : [ 183.0, 71.0, 154.0, 62.0 ],
"id" : "obj-7"
}
 
}
, {
"box" : {
"maxclass" : "toggle",
"numinlets" : 1,
"numoutlets" : 1,
"outlettype" : [ "int" ],
"patching_rect" : [ 241.0, 152.0, 20.0, 20.0 ],
"id" : "obj-4"
}
 
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "record~ incomingSignal 2",
"fontname" : "Arial Bold",
"numinlets" : 4,
"numoutlets" : 1,
"outlettype" : [ "signal" ],
"fontsize" : 10.0,
"patching_rect" : [ 366.0, 231.0, 133.0, 18.0 ],
"id" : "obj-3"
}
 
}
, {
"box" : {
"maxclass" : "live.gain~",
"varname" : "live.gain~",
"numinlets" : 2,
"numoutlets" : 5,
"outlettype" : [ "signal", "signal", "", "float", "list" ],
"patching_rect" : [ 360.0, 66.0, 48.0, 136.0 ],
"id" : "obj-5",
"parameter_enable" : 1,
"saved_attribute_attributes" : {
"valueof" : {
"parameter_steps" : 0,
"parameter_exponent" : 1.0,
"parameter_unitstyle" : 4,
"parameter_mmax" : 6.0,
"parameter_mmin" : -70.0,
"parameter_initial" : [ 0.0 ],
"parameter_type" : 0,
"parameter_initial_enable" : 0,
"parameter_shortname" : "live.gain~",
"parameter_invisible" : 0,
"parameter_modmax" : 127.0,
"parameter_annotation_name" : "",
"parameter_longname" : "live.gain~",
"parameter_modmin" : 0.0,
"parameter_linknames" : 0,
"parameter_modmode" : 0,
"parameter_info" : "",
"parameter_order" : 0,
"parameter_units" : "",
"parameter_speedlim" : 0
}
 
}
 
}
 
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "plugin~",
"fontname" : "Arial Bold",
"numinlets" : 2,
"numoutlets" : 2,
"outlettype" : [ "signal", "signal" ],
"fontsize" : 10.0,
"patching_rect" : [ 360.0, 31.0, 53.0, 18.0 ],
"id" : "obj-1"
}
 
}
 ],
"lines" : [ {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-3", 0 ],
"hidden" : 0,
"midpoints" : [ 250.5, 201.0, 375.5, 201.0 ]
}
 
}
, {
"patchline" : {
"source" : [ "obj-1", 1 ],
"destination" : [ "obj-5", 1 ],
"hidden" : 0,
"midpoints" : [ 403.5, 51.0, 398.5, 51.0 ]
}
 
}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-5", 0 ],
"hidden" : 0,
"midpoints" : [ 369.5, 51.0, 369.5, 51.0 ]
}
 
}
, {
"patchline" : {
"source" : [ "obj-5", 0 ],
"destination" : [ "obj-3", 0 ],
"hidden" : 0,
"midpoints" : [  ]
}
 
}
, {
"patchline" : {
"source" : [ "obj-5", 1 ],
"destination" : [ "obj-3", 1 ],
"hidden" : 0,
"midpoints" : [  ]
}
 
}
 ]
}
 

jazzisfaction
Offline
Joined: 02/08/2010

hmmm....

I guess the easiest way would be to assign the trigger button of the record~ object and the record button in LIVE to the same CC....
Pitty, thought there would be a easier way....

jazzisfaction
Offline
Joined: 02/08/2010

hmmmm....another way could be with the live.observer object or live.path.....but how do I find the right path for the record button.
The 'live.observer' help menu says:
Not all properties can be observed, please consult the Live Object Model to see which can. Also, it is not possible to modify the live set from a notification, i.e. while you are receiving a value message spontaneously sent by a live.observer's outlet.

Great.....and how can I contact the 'Live Object Model'??????

This is not yet really well developped I think.....I mean how can one find a path like 'loadmess path live_set tracks 0 mixer_device volume' by oneself?
I don't know all the path names....what is the path name for the record button???

jazzisfaction
Offline
Joined: 02/08/2010

oeps