<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/07/2019 05:40, Philip Stone wrote:<br>
</div>
<blockquote type="cite" cite="mid:66EFEF80-0CC6-490E-A26D-B25DE20252A6@ucdavis.edu">
<span style="font-size:11.0pt">I’ve been using [poly] for a long time … the number of voices can only be set at creation time. I’d love to be able to change that dynamically … I know this will be glitchy, and don’t care —
</span><span style="font-size:11.0pt"><span style="font-size:11.0pt">I won’t be doing it during audio output</span></span></blockquote>
<p>Dear Phil</p>
<p>Apologies in advance for my stupid questions, but …</p>
<p>If — and it is a big “if” — you have only a small number of poly configurations to switch between and if as you say you are only doing it when no audio is being output, can’t you do this with a wrapper around multiple [poly] objects? Attached an example
 abstraction for switching between two different voice counts (it ignores out-of-range voice counts, but it might better take a configuration number at its right inlet); it stops all notes before switching to the new voice count, but that is not a problem in
 your use case, right? I am pretty sure you have thought of this already — almost certain, in fact.<br>
</p>
<p>That wouldn’t do if you were dynamically creating/destroying arbitrarily many voices, but then you could create/destroy [poly] objects, too, right?</p>
<p>That is not to say that being able to change voice count in [poly] wouldn’t be a useful feature, but if it were to be implemented, why not do it in a non-glitchy way (i.e. don’t clear the object, and stop the notes only for the voices removed when reducing
 the voice count)?<br>
</p>
<p>What kind of glitch did you have in mind, anyway?</p>
<p>Best</p>
<p>m<br>
</p>
<pre class="moz-signature" cols="70">-- 
matthew brandi | 020 8882 4616</pre>
</body>
</html>