0

因此,在 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" : [  ]
            }

        }
 ]
}

我还需要什么来实现我的目标?我一直在论坛上阅读有关过滤器和抖动的信息,但这对我来说现在没有任何意义..

4

1 回答 1

1

您可能需要类似以下内容的内容(将此代码复制并粘贴到一个空的最大修补程序中):

<pre><code>
----------begin_max5_patcher----------
895.3ocyX1sbiBBEG+5jmBGuNaF9vO2q184Xmc5fQVCYTzEIoYamlm8EPSaR
SsgXbzdgxHB3+yONb3fOOelaR4dZsqy2c9kyrYOOe1LSU5Jl097L2Bx9U4jZ
Syb2vjKqdjwSKezcQy6K2JyoR4+pnMCjq6B0kyuaeckfVS4RhjUxePPWIaZU
HveIXgiejo.zd6sdQjqVy3YmzCbbftUdwHcAJ1zGDFdRu3aKXbkXLZE9VkMR
zTKpsVVpwdJS17MLzUW2KymqusvRRvoOp57QHHo6MxzU5j3j2IZRH7r2gmKM
zvHskgCCMEnk9Jy7T17mRtjSJLio6OELxqeuav90CRM6Iyf.0D8Rr.5CVJn0
0jL5EbgtupTHYEp24TyIU0qKkNapnYc6FcMWHXrmwgH.XqKTCY8.XcAz235A
itczh9PzBsFsn3A0iC1ICYb4UwnuuYcEFeiXDFYJPlIggyA8FnX3.RwTZtCF
.97UtV.kFmQePegxc6ZELntV4NfOMN+4NXcFKyKZZikgvCHUxHRpMQs5jFvV
nLY9HnAjF5LBJHRAaemLQ0jGN1DqHjGxDRpI.8j3uLjoD72BpTTp11w4GjUR
1N5mDv9pgYhM6cgZh5BQvoxGB1qsvR1Jkk79a89vSBxhtLH6Mr+xo1BX.mso
oYzCWMAPa2NAaR10yapVHLjawR1QEpz+N3.A.finntSJUyx3JC557IpYY.bx
xAweH2scsJAs0GzYeAU2P2Odf.SQbTewC9NwSu11k9DIc0gqY8KtANfMAM87
Od+NOvHLXHOYTYEk2uzIPvlHfMQE8BmpiyD0Gbzi+jPmoKL3+RffANAIQVBJ
eaAYHRQpMCfHyjdHdp1YvafQT59kYBRhxV.5q9shnkMsoI.hmrildJbLeb2b
F+8+pMiAnq+bhUWtUr5n41fZ0Qxe0DRo0RF2bJ9SZCFdViVyRSol2eTcorZR
RN0nQvGN0YqbTo9cc8fFM4XCcPZ4.GE4frPNdiFbh9RMUgAmMMzgbFOOYjUd
xvwkOWUOwiGev1D4ALZ5IzF7DLd3IvF8DNd5Iz1Pgiid7sw6Y7VbYgZBG2kV
vuNyUHa12BMdyVuKp6GqmfuTQdfiWfPnMQd76obZxWkTUsiJpaGRiRT4xuoT
neLXg4QFu4QShwtB5N1w1GZpgHTInKUYmuUzjw89H8IqTemWl+e.j169yC
-----------end_max5_patcher-----------
</code></pre>
于 2014-05-30T14:31:53.783 回答