<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Sending Control Change Message to Voices]]></title><description><![CDATA[<p>Ok, so I am trying to send control change messages to the voices of my poly synth. I was working with control 0 - modulation, control 7 - volume, and pitchbend.</p>
<p>I know I am doing something wrong but what I did is connect the ctlin objects to my voices directly. Is that right? How do you have the voices react to the control changes correctly?</p>
<p>I am attaching my patch. Also the Release of my ADSR isn't working. I currently have velocity driving my amplitude which is why the Release isn't working, i think. Because velocity is driving my amplitude as soon as I release the midi note the velocity goes directly to zero and so does the amplitude. Let me know if I need to clarify anything. Thanks in advance!</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/FINAL_PROJECT_2.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/FINAL_PROJECT_2.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 18:12:21 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/2458.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Mar 2009 23:54:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sending Control Change Message to Voices on Sun, 15 Mar 2009 23:54:02 GMT]]></title><description><![CDATA[<p>Ok, so I am trying to send control change messages to the voices of my poly synth. I was working with control 0 - modulation, control 7 - volume, and pitchbend.</p>
<p>I know I am doing something wrong but what I did is connect the ctlin objects to my voices directly. Is that right? How do you have the voices react to the control changes correctly?</p>
<p>I am attaching my patch. Also the Release of my ADSR isn't working. I currently have velocity driving my amplitude which is why the Release isn't working, i think. Because velocity is driving my amplitude as soon as I release the midi note the velocity goes directly to zero and so does the amplitude. Let me know if I need to clarify anything. Thanks in advance!</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/FINAL_PROJECT_2.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/FINAL_PROJECT_2.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices</guid><dc:creator><![CDATA[LockdownDJ]]></dc:creator><pubDate>Sun, 15 Mar 2009 23:54:02 GMT</pubDate></item><item><title><![CDATA[Reply to Sending Control Change Message to Voices on Mon, 16 Mar 2009 03:59:17 GMT]]></title><description><![CDATA[<p>From what I see from briefly looking over your patch, the [ctlin] and [bendin] are going to the same input that is handling MIDI notes (only one voice though?) and are being treated that way. So there's no distinction between different MIDI messages. I've never really had a problem with just sticking those [ctlin]s inside the voices and handling the messages in there. I believe with the exception of polyaftertouch (and of course noteon/off), MIDI messages are meant to act globally across voices anyway.</p>
<p>As for the releases, I think you're right about the velocities (your adsr abstraction is missing, so I can't look at that). Just stick a [sel 0] before the [*~ 1] to filter out the noteoffs there.</p>
<p>|<br />
[sel 0]<br />
|<br />
[*~ 1]<br />
|<br />
[outlet~]</p>
<p>Edit: Actually, I think it should be routed to the [*~ 1] to the right of that coming out of the [adsr], and the other [*~ 1] should be changed to [*~] with the output of the [adsr] going into the right inlet. As it is the envelope is being added to the signal, not multiplied.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices/2</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Mon, 16 Mar 2009 03:59:17 GMT</pubDate></item><item><title><![CDATA[Reply to Sending Control Change Message to Voices on Mon, 16 Mar 2009 04:02:15 GMT]]></title><description><![CDATA[<p>By the way, why are you reloading the arrays with every note? You should just have to do that once, maybe with a loadbang. Unless I'm missing something.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices/3</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Mon, 16 Mar 2009 04:02:15 GMT</pubDate></item><item><title><![CDATA[Reply to Sending Control Change Message to Voices on Mon, 16 Mar 2009 06:25:12 GMT]]></title><description><![CDATA[<p>Cool, thanks for your reply.</p>
<p>I took out one of those *~1 objects and added the sel 0 object to the velocity output but I cant get it any sound without the original velocity hookups setup the way the were.</p>
<p>Here is that adsr abstraction and a revision of the project/voices. I only have the first voice in use right now, I want to get it right in that voice first. Also how where would I hook up the pitch bend and modulation control change messages?</p>
<p>Thanks a lot for your help!</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/adsr.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/adsr.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices/4</guid><dc:creator><![CDATA[LockdownDJ]]></dc:creator><pubDate>Mon, 16 Mar 2009 06:25:12 GMT</pubDate></item><item><title><![CDATA[Reply to Sending Control Change Message to Voices on Mon, 16 Mar 2009 06:25:12 GMT]]></title><description><![CDATA[<p>Cool, thanks for your reply.</p>
<p>I took out one of those *~1 objects and added the sel 0 object to the velocity output but I cant get it any sound without the original velocity hookups setup the way the were.</p>
<p>Here is that adsr abstraction and a revision of the project/voices. I only have the first voice in use right now, I want to get it right in that voice first. Also how where would I hook up the pitch bend and modulation control change messages?</p>
<p>Thanks a lot for your help!</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/adsr.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/adsr.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices/5</guid><dc:creator><![CDATA[LockdownDJ]]></dc:creator><pubDate>Mon, 16 Mar 2009 06:25:12 GMT</pubDate></item><item><title><![CDATA[Reply to Sending Control Change Message to Voices on Tue, 17 Mar 2009 02:02:35 GMT]]></title><description><![CDATA[<p>Okay, I made a few edits in your patch with some notes. I realize my explanation about the [sel 0] wasn't that clear earlier.</p>
<p>The volume and pitchbend stuff are in subpatches with .mmb at the end of their names; volume is in the main patch, pitchbend in voice 1. I typically add the half steps I get from pitchbend to the MIDI note values before converting them with [mtof], but I'm not sure what you're doing with your math, so you might have to modify it to suit your needs (I didn't test this with any of my samples).</p>
<p>As for mod wheel, it really depends on what you want it to do! Remember, the names given to cc values in the MIDI spec are just guidelines to make things a little easier to program, but they're really arbitrary. cc7 doesn't have to be volume. And mod could be anything; often times it's vibrato, opening a filter, or a combination of things at once.</p>
<p>It looks like hitting a new key might cause a previous voice to start playing a different sample with the way you have things set up. You might want to put that whole [route...]-&gt;[set array( setup in the voices to prevent that. Also, the reading-a-file-again-each-time-its-corresponding-key-is-pressed thing probably isn't necessary. I think you're just doing it to get sample lengths. You could just loadbang at start and put their sample lengths in at different indexes of a new table, and then just look them up when you need them (probably with the [route...]-&gt;[set array( setup).</p>
<p><a href="http://www.pdpatchrepo.info/hurleur/FINAL_PROJECT.mmb.pd" rel="nofollow">http://www.pdpatchrepo.info/hurleur/FINAL_PROJECT.mmb.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices/6</guid><dc:creator><![CDATA[Maelstorm]]></dc:creator><pubDate>Tue, 17 Mar 2009 02:02:35 GMT</pubDate></item><item><title><![CDATA[Reply to Sending Control Change Message to Voices on Tue, 17 Mar 2009 20:17:30 GMT]]></title><description><![CDATA[<p>Nice, thank you very much Maelstrom. This makes a lot of sense. I appreciate you taking the time to do the edits. Thanks again!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/2458/sending-control-change-message-to-voices/7</guid><dc:creator><![CDATA[LockdownDJ]]></dc:creator><pubDate>Tue, 17 Mar 2009 20:17:30 GMT</pubDate></item></channel></rss>