<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Modartt user forum - JSON-RPC api]]></title>
		<link>https://forum.modartt.com/viewtopic.php?id=9043</link>
		<description><![CDATA[The most recent posts in JSON-RPC api.]]></description>
		<lastBuildDate>Mon, 04 Sep 2023 18:10:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=992238#p992238</link>
			<description><![CDATA[<p>The RPCs are a great feature.&nbsp; However, they are very slow, like 1-2 second delay.&nbsp; Maybe they could be sped up using select().</p>]]></description>
			<author><![CDATA[null@example.com (DavidA)]]></author>
			<pubDate>Mon, 04 Sep 2023 18:10:50 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=992238#p992238</guid>
		</item>
		<item>
			<title><![CDATA[Re: JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=980217#p980217</link>
			<description><![CDATA[<div class="quotebox"><cite>navindra wrote:</cite><blockquote><div class="quotebox"><cite>drahoslove wrote:</cite><blockquote><p>The JSON-RPC API is great!</p><p>However, the embedded MIDI sequencer still does not seem to work in the headless mode. </p><p>So the commands <em>midiRecord</em>, <em>midiPlay</em>, <em>midiStop</em>,... work only in GUI mode.</p></blockquote></div><p>FYI, Julien has confirmed that this will be addressed in the next version.</p></blockquote></div><p>It works now! Both via JSON-RPC and MIDI control. Thanks, Julien!</p>]]></description>
			<author><![CDATA[null@example.com (navindra)]]></author>
			<pubDate>Sun, 23 Jan 2022 04:54:30 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=980217#p980217</guid>
		</item>
		<item>
			<title><![CDATA[Re: JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=980072#p980072</link>
			<description><![CDATA[<div class="quotebox"><cite>jcitron wrote:</cite><blockquote><p>I got this to work nicely, but is it possible to run this remotely on the remote client without asking for activation?</p><p>I had to map a network drive &quot;Z:&quot; and then put in the path. This launched the application on my remote host, a tablet, but request activation which I did not want to do.</p></blockquote></div><p>You will need to active it if you want to run it from that computer.&nbsp; The licence is per device that you run it from not where it is stored.&nbsp; Otherwise, we would be able to exceed the limit of 3 devices.</p>]]></description>
			<author><![CDATA[null@example.com (sordess)]]></author>
			<pubDate>Mon, 10 Jan 2022 23:21:03 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=980072#p980072</guid>
		</item>
		<item>
			<title><![CDATA[Re: JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=980071#p980071</link>
			<description><![CDATA[<p>I got this to work nicely, but is it possible to run this remotely on the remote client without asking for activation?</p><p>I had to map a network drive &quot;Z:&quot; and then put in the path. This launched the application on my remote host, a tablet, but request activation which I did not want to do.</p>]]></description>
			<author><![CDATA[null@example.com (jcitron)]]></author>
			<pubDate>Mon, 10 Jan 2022 19:35:07 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=980071#p980071</guid>
		</item>
		<item>
			<title><![CDATA[Re: JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=980069#p980069</link>
			<description><![CDATA[<div class="quotebox"><cite>Irmin wrote:</cite><blockquote><p>Anyone manage to connect to the API</p><p>Running on Windows 11</p><p>C:\Program Files\Modartt\Pianoteq 7&gt;&quot;Pianoteq 7.exe&quot; --serve localhost:8081</p><p>C:\Program Files\Modartt\Pianoteq 7&gt;Listening for JSON-RPC on http://localhost:8081/jsonrpc</p><p>But can&#039;t connect.</p><p>Also @Modartt do you have specs for the API, don&#039;t see it in the manual?</p></blockquote></div><p>There&#039;s a typo in the command given. It should be this:</p><p>&quot;C:\Program Files\Modartt\Pianoteq 7\Pianoteq 7.exe&quot; --serve localhost:8081</p><p>This took me a few minutes to see, but then it clicked.</p><p>When I tried it, PTC7 popped right up on Windows 10. If you created the typo when you typed it here, then your issue is Windows 11 being snotty with permissions not allowing a remote host to connect via the loopback.</p>]]></description>
			<author><![CDATA[null@example.com (jcitron)]]></author>
			<pubDate>Mon, 10 Jan 2022 19:02:20 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=980069#p980069</guid>
		</item>
		<item>
			<title><![CDATA[Re: JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=979996#p979996</link>
			<description><![CDATA[<div class="quotebox"><cite>drahoslove wrote:</cite><blockquote><p>The JSON-RPC API is great!</p><p>However, the embedded MIDI sequencer still does not seem to work in the headless mode. </p><p>So the commands <em>midiRecord</em>, <em>midiPlay</em>, <em>midiStop</em>,... work only in GUI mode.</p></blockquote></div><p>FYI, Julien has confirmed that this will be addressed in the next version.</p>]]></description>
			<author><![CDATA[null@example.com (navindra)]]></author>
			<pubDate>Thu, 06 Jan 2022 13:58:04 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=979996#p979996</guid>
		</item>
		<item>
			<title><![CDATA[Re: JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=979969#p979969</link>
			<description><![CDATA[<p>Hi,</p><p>First, thanks Modartt for that surprised feature in 7.5.&nbsp; This is a great addition in my opinion.&nbsp; I have started using the JsonRPC api and so far it works great.&nbsp; Here are a few suggestions that I find could help make the API better.</p><p>Suggestions:<br />1- When an API changes the state of Pianoteq than that API should return that new state.&nbsp; For instance, <br />&nbsp; abSwitch() should return the state that it is now. i.e. either A or B<br />2- When providing a wrong command name, the Pianoteq instance crashes instead of returning an error<br />3- Metronome API - I could not find anything about the metronome<br />4- getInfo() API - When the loaded preset is a custom one, the name of the preset includes the bank info in it.&nbsp; Pls, consider adding the attribute bank like it is for the getListOfPresets() API<br />&nbsp; * Ex: &quot;name&quot;: &quot;My Presets/NY Steinway Model D (RC)&quot; - The &quot;My Presets&quot; Is the bank attribute mixed with the name attribute.&nbsp; This makes it not consistent across your API and introduce confusion.</p><br /><p>Issue that I am facing at the moment<br />1- (FIXED - No longer an issue) Found my issue with loading custom presets.&nbsp; I forgot to include the bank name in the request.&nbsp; Now fixed</p><br /><p>Thanks again for this API!</p><p>Cheers</p>]]></description>
			<author><![CDATA[null@example.com (sordess)]]></author>
			<pubDate>Wed, 05 Jan 2022 03:42:48 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=979969#p979969</guid>
		</item>
		<item>
			<title><![CDATA[Re: JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=979966#p979966</link>
			<description><![CDATA[<p>The JSON-RPC API is great!</p><p>However, the embedded MIDI sequencer still does not seem to work in the headless mode. </p><p>So the commands <em>midiRecord</em>, <em>midiPlay</em>, <em>midiStop</em>,... work only in GUI mode. </p>]]></description>
			<author><![CDATA[null@example.com (drahoslove)]]></author>
			<pubDate>Tue, 04 Jan 2022 22:43:35 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=979966#p979966</guid>
		</item>
		<item>
			<title><![CDATA[Re: JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=979705#p979705</link>
			<description><![CDATA[<div class="quotebox"><cite>Groove On wrote:</cite><blockquote><p>Does this work in macOS? I can open Pianoteq from the macOS command-line, but it does not recognize any arguments (--serve --fullscreen etc.).</p><div class="codebox"><pre><code>open -a /Applications/Pianoteq\ 7\ STAGE/Pianoteq\ 7\ STAGE.app</code></pre></div></blockquote></div><p>I start it on macOS like this:<br /></p><div class="codebox"><pre><code>/Applications/Pianoteq\ 7/Pianoteq\ 7.app/Contents/MacOS/Pianoteq\ 7 --serve 8081</code></pre></div><p>Not the stage version in this case, but the point is to take the path into the app package contents to the app itself. (If making the &quot;obvious&quot; edit to my command line doesn&#039;t work for you then you can look inside the package to see where things are at by &quot;right clicking&quot; the app in finder and choosing &quot;Show Package Contents&quot;)</p><p>(Edit: Note there&#039;s no &quot;open - a&quot; here, you just type the path.)</p>]]></description>
			<author><![CDATA[null@example.com (xooorx)]]></author>
			<pubDate>Thu, 23 Dec 2021 20:17:30 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=979705#p979705</guid>
		</item>
		<item>
			<title><![CDATA[Re: JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=979700#p979700</link>
			<description><![CDATA[<p>Does this work in macOS? I can open Pianoteq from the macOS command-line, but it does not recognize any arguments (--serve --fullscreen etc.).</p><div class="codebox"><pre><code>open -a /Applications/Pianoteq\ 7\ STAGE/Pianoteq\ 7\ STAGE.app</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Groove On)]]></author>
			<pubDate>Thu, 23 Dec 2021 18:45:32 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=979700#p979700</guid>
		</item>
		<item>
			<title><![CDATA[Re: JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=979533#p979533</link>
			<description><![CDATA[<div class="quotebox"><cite>julien wrote:</cite><blockquote><p>Maybe localhost was not a great suggestion. You can try with &quot;--serve 8081&quot; or &quot;--serve 127.0.0.1:8081&quot; , you should be able to open <a href="http://127.0.0.1:8081">http://127.0.0.1:8081</a> in your browser.</p><p>Then you will find the API reference and a python example in that page.</p></blockquote></div><p>thanks, 127.0.0.1 worked</p>]]></description>
			<author><![CDATA[null@example.com (Irmin)]]></author>
			<pubDate>Fri, 17 Dec 2021 10:50:54 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=979533#p979533</guid>
		</item>
		<item>
			<title><![CDATA[Re: JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=979528#p979528</link>
			<description><![CDATA[<p>Maybe localhost was not a great suggestion. You can try with &quot;--serve 8081&quot; or &quot;--serve 127.0.0.1:8081&quot; , you should be able to open <a href="http://127.0.0.1:8081">http://127.0.0.1:8081</a> in your browser.</p><p>Then you will find the API reference and a python example in that page.</p>]]></description>
			<author><![CDATA[null@example.com (julien)]]></author>
			<pubDate>Fri, 17 Dec 2021 08:32:32 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=979528#p979528</guid>
		</item>
		<item>
			<title><![CDATA[JSON-RPC api]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=979527#p979527</link>
			<description><![CDATA[<p>Anyone manage to connect to the API</p><p>Running on Windows 11</p><p>C:\Program Files\Modartt\Pianoteq 7&gt;&quot;Pianoteq 7.exe&quot; --serve localhost:8081</p><p>C:\Program Files\Modartt\Pianoteq 7&gt;Listening for JSON-RPC on http://localhost:8081/jsonrpc</p><p>But can&#039;t connect.</p><p>Also @Modartt do you have specs for the API, don&#039;t see it in the manual?</p>]]></description>
			<author><![CDATA[null@example.com (Irmin)]]></author>
			<pubDate>Fri, 17 Dec 2021 07:46:29 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=979527#p979527</guid>
		</item>
	</channel>
</rss>
