<html>
<head>
</head>
<body>
i may sound silly but i usually use *in1 and *in2 pointers<br>
to refer to audio data passed to a stereo DSP object ... <br>
<br>
in that case, the pointers is supplied by PD when the perform <br>
function is called. is that the case here ???<br>
do you have something like :<br>
<br>
t_float *in1 = (t_float *)(w[1]); /* left audio inlet */<br>
t_float *in2 = (t_float *)(w[2]); /* right audio inlet */<br>
<br>
if you don't, forget my remark.<br>
<br>
regards,<br>
<br>
sevy/yves<br>
<br>
J. Scott Hildebrand wrote:<br>
<blockquote type="cite" cite="mid:Pine.GSO.4.33.0208051648590.989-100000@runner.ucdavis.edu">
<pre wrap=""> it is a dsp object and i don't plan on this external communicating<br>with other objects. are you saying that the *in1 pointers can only access<br>one dimensional arrays? i'm not using pd's array, it's a standard C/C++<br>array. would it be possible to access my array with something like:<br><br> *in1[x][y][z] ?<br><br> scott<br><br><br>On Mon, 5 Aug 2002, Miller Puckette wrote:<br><br></pre>
<blockquote type="cite">
<pre wrap="">This must be a DSP object... these work only for 1-dimensional arrays (audio<br>signals) through a mysterious protocol.<br><br>If you want to have a 2- or n- dimensional array in your extern, go ahead<br>and allocate it and use it as you wish... but Pd has no suitable mechanism<br>for passing them around between objects.<br><br>cheers<br>Miller<br><br>On Mon, Aug 05, 2002 at 02:04:26PM -0700, J. Scott Hildebrand wrote:<br></pre>
<blockquote type="cite">
<pre wrap=""> i have a working external, and i have an array inside of it<br>that's somehow accessed by *in1 and *in2, but never in the code does it<br>say that those pointers are related to those arrays at all. i need to do<br>the same thing but with a 3 dimensional array. how do i access that?<br><br> scott<br><br><br><br><br>--------------------------------------------------------------------<br><br>        "640K ought to be enough for anybody." -- Bill Gates, 1981<br><br>--------------------------------------------------------------------<br><br></pre>
</blockquote>
</blockquote>
<pre wrap=""><!----><br><br><br><br>--------------------------------------------------------------------<br><br>        "640K ought to be enough for anybody." -- Bill Gates, 1981<br><br>--------------------------------------------------------------------<br><br><br><br><br></pre>
</blockquote>
<br>
</body>
</html>