Hi, Ahmet<br><br>I don&#39;t know how to create a variable argument type of function definition for this purpose, but it should be clear that your dsp function knows how many inlets there will be.  You will be setting the number of inlets when the object is created.  <br>
<br>You could make a maximum number of inlets and add a data structure element to store the number of inlets.  Then, in your dsp function, put a case statement to look up the dsp_add call with the correct number of arguments.  <br>
<br>I&#39;m not sure that&#39;s the best way, since dsp_add has a variable number of arguments in its definition.  It would make sense to me if function calls had to have a fixed number of arguments, but I&#39;m just not sure.<br>
<br>Chuck<br><br><div class="gmail_quote">On Sat, May 7, 2011 at 10:01 AM, Ahmet Kizilay <span dir="ltr">&lt;<a href="mailto:ahmet.kizilay@gmail.com">ahmet.kizilay@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello, <div>I want to write an external which creates the signal inlets dynamically depending on the number of arguments, just like the multiplex~ object from zexy.</div><div>My question is about writing the dsp_add function. How do I set the arguments when I don&#39;t exactly know how many signals I will be handling?</div>


<div><br></div><div>I hope my question is appropriate for the list (first post)?</div><div><br></div><div>Thanks.</div><div><br>-- <br>ahmet kizilay<br><a href="http://www.ahmetkizilay.com" target="_blank">http://www.ahmetkizilay.com</a><br>



</div>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>