<?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[Tagging notes]]></title><description><![CDATA[<p dir="auto">is there a way to "tag" a note with data (like there is in Kontakt) so I can interogate it later.</p>
<p dir="auto">Yes I know there's isArtificial() but I wanted something where I could add a value (or set of values) to a note to track which key-trigger note created it...</p>
]]></description><link>https://forum.hise.audio/topic/7091/tagging-notes</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Mar 2026 05:03:15 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/7091.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Jan 2023 15:48:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tagging notes on Mon, 09 Jan 2023 16:38:02 GMT]]></title><description><![CDATA[<p dir="auto">@d-healey actually I thin k I have a solution - just do the same thing in reverse using Synth.addNoteOff</p>
<pre><code> for (n=0; n &lt; ChordPlayer.playingEvents[pos].length; n++)
           {
               Synth.addNoteOff(1, ChordPlayer.chordPadArray[pos].data.chord[n], ChordPlayer.chordPadArray[pos].data.strumLength * n);
               ChordPlayer.playingEvents[pos][n] = -1;

           };
</code></pre>
]]></description><link>https://forum.hise.audio/post/60719</link><guid isPermaLink="true">https://forum.hise.audio/post/60719</guid><dc:creator><![CDATA[Lindon]]></dc:creator><pubDate>Mon, 09 Jan 2023 16:38:02 GMT</pubDate></item><item><title><![CDATA[Reply to Tagging notes on Mon, 09 Jan 2023 16:33:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a></p>
<blockquote>
<p dir="auto">So with your solution I'd need 12 timers... very very messy.</p>
</blockquote>
<p dir="auto">You make a script that takes a trigger note and generates a strum. You insert 12 instances of that script and set each one to use a different trigger note.</p>
]]></description><link>https://forum.hise.audio/post/60718</link><guid isPermaLink="true">https://forum.hise.audio/post/60718</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Mon, 09 Jan 2023 16:33:46 GMT</pubDate></item><item><title><![CDATA[Reply to Tagging notes on Mon, 09 Jan 2023 16:29:48 GMT]]></title><description><![CDATA[<p dir="auto">@d-healey said in <a href="/post/60715">Tagging notes</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> For my guitar engine I'm just using the standard <code>Synth.playNote()</code> within a timer. I store the note IDs in a 6 element array (one per string)</p>
<p dir="auto">I only allow one note per guitar string, so if a second note is triggered on the same string I turn off the old one.</p>
<p dir="auto">When the key is released I turn off all strummed notes.</p>
</blockquote>
<p dir="auto">Sounds good - for you. Im doing a chord player - with 12 trigger notes, each trigger has a chord assigned, each trigger can strum the chord - so there may well be a lot of notes passing downstream - all I want to do is attach the trigger value to each note - then later I can ignore it if the trigger note is no longer held.</p>
<p dir="auto">So with your solution I'd need 12 timers... very very messy.</p>
<p dir="auto">It's annoying because this is trivially simple in KSP...</p>
]]></description><link>https://forum.hise.audio/post/60716</link><guid isPermaLink="true">https://forum.hise.audio/post/60716</guid><dc:creator><![CDATA[Lindon]]></dc:creator><pubDate>Mon, 09 Jan 2023 16:29:48 GMT</pubDate></item><item><title><![CDATA[Reply to Tagging notes on Mon, 09 Jan 2023 16:24:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> For my guitar engine I'm just using the standard <code>Synth.playNote()</code> within a timer. I store the note IDs in a 6 element array (one per string)</p>
<p dir="auto">I only allow one note per guitar string, so if a second note is triggered on the same string I turn off the old one.</p>
<p dir="auto">When the key is released I turn off all strummed notes.</p>
]]></description><link>https://forum.hise.audio/post/60715</link><guid isPermaLink="true">https://forum.hise.audio/post/60715</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Mon, 09 Jan 2023 16:24:50 GMT</pubDate></item><item><title><![CDATA[Reply to Tagging notes on Mon, 09 Jan 2023 16:21:33 GMT]]></title><description><![CDATA[<p dir="auto">@d-healey said in <a href="/post/60711">Tagging notes</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> Can't you use an object for this?</p>
</blockquote>
<p dir="auto">in what way? - Im doing this:</p>
<pre><code>for(n = 0; n&lt; 5; n++)
            {
                nid = Synth.addNoteOn(1, ChordPlayer.chordPadArray[pos].data.chord[n], Message.getVelocity(), ChordPlayer.chordPadArray[pos].data.strumLength * n);
                ChordPlayer.playingEvents[pos].push(nid);
            }
</code></pre>
<p dir="auto">So this generates a strum....by delaying each note creation by a fixed amount, but....</p>
<p dir="auto">If the note off event happens before the strum is complete I get hanging notes...</p>
<p dir="auto">So to be clear this strum could be any set of notes, and the note off has no idea if the note is part of the strum or not, and doesnt know what the trigger note was...</p>
]]></description><link>https://forum.hise.audio/post/60712</link><guid isPermaLink="true">https://forum.hise.audio/post/60712</guid><dc:creator><![CDATA[Lindon]]></dc:creator><pubDate>Mon, 09 Jan 2023 16:21:33 GMT</pubDate></item><item><title><![CDATA[Reply to Tagging notes on Mon, 09 Jan 2023 16:14:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/67">@Lindon</a> Can't you use an object for this?</p>
]]></description><link>https://forum.hise.audio/post/60711</link><guid isPermaLink="true">https://forum.hise.audio/post/60711</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Mon, 09 Jan 2023 16:14:21 GMT</pubDate></item></channel></rss>