<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Modartt user forum - JSON-RPC api]]></title>
	<link rel="self" href="https://forum.modartt.com/extern.php?action=feed&amp;tid=9043&amp;type=atom"/>
	<updated>2023-09-04T18:10:50Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.modartt.com/viewtopic.php?id=9043</id>
		<entry>
			<title type="html"><![CDATA[Re: JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=992238#p992238"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[DavidA]]></name>
				<uri>https://forum.modartt.com/profile.php?id=8170</uri>
			</author>
			<updated>2023-09-04T18:10:50Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=992238#p992238</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=980217#p980217"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[navindra]]></name>
				<uri>https://forum.modartt.com/profile.php?id=7205</uri>
			</author>
			<updated>2022-01-23T04:54:30Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=980217#p980217</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=980072#p980072"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[sordess]]></name>
				<uri>https://forum.modartt.com/profile.php?id=7494</uri>
			</author>
			<updated>2022-01-10T23:21:03Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=980072#p980072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=980071#p980071"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jcitron]]></name>
				<uri>https://forum.modartt.com/profile.php?id=6888</uri>
			</author>
			<updated>2022-01-10T19:35:07Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=980071#p980071</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=980069#p980069"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jcitron]]></name>
				<uri>https://forum.modartt.com/profile.php?id=6888</uri>
			</author>
			<updated>2022-01-10T19:02:20Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=980069#p980069</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=979996#p979996"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[navindra]]></name>
				<uri>https://forum.modartt.com/profile.php?id=7205</uri>
			</author>
			<updated>2022-01-06T13:58:04Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=979996#p979996</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=979969#p979969"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[sordess]]></name>
				<uri>https://forum.modartt.com/profile.php?id=7494</uri>
			</author>
			<updated>2022-01-05T03:42:48Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=979969#p979969</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=979966#p979966"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[drahoslove]]></name>
				<uri>https://forum.modartt.com/profile.php?id=7255</uri>
			</author>
			<updated>2022-01-04T22:43:35Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=979966#p979966</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=979705#p979705"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[xooorx]]></name>
				<uri>https://forum.modartt.com/profile.php?id=6848</uri>
			</author>
			<updated>2021-12-23T20:17:30Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=979705#p979705</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=979700#p979700"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Groove On]]></name>
				<uri>https://forum.modartt.com/profile.php?id=5495</uri>
			</author>
			<updated>2021-12-23T18:45:32Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=979700#p979700</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=979533#p979533"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Irmin]]></name>
				<uri>https://forum.modartt.com/profile.php?id=2799</uri>
			</author>
			<updated>2021-12-17T10:50:54Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=979533#p979533</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=979528#p979528"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[julien]]></name>
				<uri>https://forum.modartt.com/profile.php?id=2</uri>
			</author>
			<updated>2021-12-17T08:32:32Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=979528#p979528</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[JSON-RPC api]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=979527#p979527"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Irmin]]></name>
				<uri>https://forum.modartt.com/profile.php?id=2799</uri>
			</author>
			<updated>2021-12-17T07:46:29Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=979527#p979527</id>
		</entry>
</feed>
