<?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[while note is held]]></title><description><![CDATA[<p dir="auto">Hi, i just started using hise, and its my first time posting in here , english is not my mother tongue so sorry if i write something wrong.<br />
In kontakt you can use " while ($NOTE_HELD = 1) " to make something happend while a key is pressed and held, is there a function like that one in hise scripting?</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.hise.audio/topic/2937/while-note-is-held</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 23:01:13 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/2937.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Aug 2020 23:36:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to while note is held on Mon, 24 Aug 2020 06:13:05 GMT]]></title><description><![CDATA[<p dir="auto">No that is not possible. Script callbacks are supposed to return immediately so any kind of "thread management" (sleep, while, etc) is not available.</p>
<p dir="auto">What you need to do is to set a variable to true in the <code>onNoteOn</code> callback, then query it somehow (either using a timer callback or other callbacks) and reset it to false in the <code>onNoteOff</code> callback.</p>
]]></description><link>https://forum.hise.audio/post/24307</link><guid isPermaLink="true">https://forum.hise.audio/post/24307</guid><dc:creator><![CDATA[Christoph Hart]]></dc:creator><pubDate>Mon, 24 Aug 2020 06:13:05 GMT</pubDate></item></channel></rss>