<?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[ScriptModulationMatrix: Multiple Targets For One Component?]]></title><description><![CDATA[<p dir="auto">I've been digging around the ModulationMatrixTutorial snippet, and am curious about a particular use case.</p>
<p dir="auto">Let's say we have a dual-synth setup, with a filter on each synth. A single UI slider should control the frequency of both filters, and (ideally) the slider's right-click menu should assign a modulator to both filters. We can't use a control callback for the slider, as it won't work with addModulatorTarget.</p>
<p dir="auto">What if we duplicate the addModulatorTarget, changing the Target but keeping the same component and ID (so it shows up as a single entity in the matrix view)?</p>
<pre><code>matrix.addModulatorTarget({
	"Target": "OSC 1 Filter",
	"Chain": matrix.Frequency,
	"ID": "OSC 1 Frequency",
	"Component": "Knob5",
	"Slots": [2, 2, 1]
});

matrix.addModulatorTarget({
	"Target": "OSC 2 Filter",
	"Chain": matrix.Frequency,
	"ID": "OSC 1 Frequency",
	"Component": "Knob5",
	"Slots": [2, 2, 1]
});
</code></pre>
<p dir="auto">Chaos ensues. The slider affects Filter 2 only. Modulation activates for Filter 1 only. getModValue is lost in the slider's LAF. The mod matrix shows 2 instances of the same ID. The right-click menu doesn't reflect the currently active modulators.</p>
<p dir="auto"><img src="/assets/uploads/files/1736731150032-jan-12-2025-20-17-58.gif" alt="Jan-12-2025 20-17-58.gif" class=" img-fluid img-markdown" /></p>
<p dir="auto">I'm exploring workarounds in Broadcasters or Macros, but so far am unable to produce a solution that retains the UE of the ModMatrix system + allows (sample-accurate) modulation of multiple targets from a single component. Am I missing something obvious here?</p>
]]></description><link>https://forum.hise.audio/topic/11676/scriptmodulationmatrix-multiple-targets-for-one-component</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 01:30:12 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/11676.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Jan 2025 04:19:40 GMT</pubDate><ttl>60</ttl></channel></rss>