因此,在 MaxMSP 经验有限的情况下,我一直在尝试做的是创建一个补丁,该补丁显示一个带有来自网络摄像头的实时镜头的小屏幕。用户拍手,麦克风拾取声音并将当前图像以 JPG 格式保存在用户的计算机上。
我可以找到诸如麦克风元素之类的基本元素,并且通过谷歌搜索如何在 Max MSP 的屏幕上获取网络摄像头素材,但在那之后我对 Max MSP 的体验几乎没有......
这是我的补丁:
{
"boxes" : [ {
"box" : {
"maxclass" : "message",
"text" : "exportimage jpeg",
"id" : "obj-18",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 390.0, 360.0, 103.0, 18.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "ezadc~",
"id" : "obj-16",
"numinlets" : 1,
"patching_rect" : [ 510.0, 90.0, 45.0, 45.0 ],
"numoutlets" : 2,
"outlettype" : [ "signal", "signal" ]
}
}
, {
"box" : {
"maxclass" : "message",
"text" : "open",
"id" : "obj-8",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 570.0, 255.0, 47.0, 18.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "jit.pwindow",
"id" : "obj-6",
"numinlets" : 1,
"patching_rect" : [ 510.0, 360.0, 290.0, 231.0 ],
"numoutlets" : 0,
"idlemouse" : 0,
"dstrect" : [ 0, 0, 320, 240 ],
"colormode" : "argb",
"border" : 0.0,
"srcrect" : [ 0, 0, 320, 240 ],
"bordercolor" : [ 0.0, 0.0, 0.0, 1.0 ],
"doublebuffer" : 1,
"planemap" : [ 0, 1, 2, 3 ],
"depthbuffer" : 1,
"fsaa" : 0,
"usesrcrect" : 0,
"usedstrect" : 0,
"interp" : 0,
"stereo" : 0,
"onscreen" : 1
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.rgb2luma",
"id" : "obj-4",
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 510.0, 330.0, 73.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "jit.dx.grab 200 200",
"id" : "obj-2",
"fontsize" : 12.0,
"numinlets" : 1,
"patching_rect" : [ 510.0, 300.0, 109.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "" ],
"fontname" : "Arial"
}
}
, {
"box" : {
"maxclass" : "newobj",
"text" : "qmetro",
"id" : "obj-1",
"fontsize" : 12.0,
"numinlets" : 2,
"patching_rect" : [ 510.0, 255.0, 48.0, 20.0 ],
"numoutlets" : 1,
"outlettype" : [ "bang" ],
"fontname" : "Arial"
}
}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-18", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-16", 0 ],
"destination" : [ "obj-1", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-6", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
, {
"patchline" : {
"source" : [ "obj-8", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}
}
]
}
我还需要什么来实现我的目标?我一直在论坛上阅读有关过滤器和抖动的信息,但这对我来说现在没有任何意义..