<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Modartt user forum - Automatically load specific instrument with Raspberry Pi shell script?]]></title>
		<link>https://forum.modartt.com/viewtopic.php?id=11200</link>
		<description><![CDATA[The most recent posts in Automatically load specific instrument with Raspberry Pi shell script?.]]></description>
		<lastBuildDate>Fri, 19 Jan 2024 04:25:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Automatically load specific instrument with Raspberry Pi shell script?]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=994743#p994743</link>
			<description><![CDATA[<p>Ah thanks, that&#039;s exactly what I needed. Sure enough, it can be done. Here&#039;s the --help info:</p><p>```<br />Copyright (c) 2023 Modartt.<br />Options from command-line:<br /> --help&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: show this help, and quit<br /> --version&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : show current version number and date, and quit<br /> --no-prefs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: start Pianoteq without using any saved preference<br /> --no-audio-prefs&nbsp; &nbsp;: start Pianoteq with a clean audio/midi configuration<br /> --prefs FILENAME&nbsp; &nbsp;: stores the preferences in the specified file<br /> --fxp FILENAME&nbsp; &nbsp; &nbsp;: load an FXP file on startup<br /> --preset NAME&nbsp; &nbsp; &nbsp; : load a preset on startup<br /> --list-presets&nbsp; &nbsp; &nbsp;: display the list of all presets<br /> --midimapping NAME : load a midimapping preset on startup<br /> --midi-channel CH&nbsp; : listen only to MIDI events on the specified channel (1&lt;=value&lt;=16 or &#039;all&#039;)<br /> --midi-transpose x : transpose note events by the specified amount (-36&lt;=x&lt;=36)<br /> --midi FILENAME&nbsp; &nbsp; : load a midi file, or a *.m3u playlist content. If filename is a folder, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; the midi files contained in that folder<br /> --open file1 file2 ...&nbsp; &nbsp; &nbsp;: load files, which can be midi, fxp, mfxp, ptq, scl or kbm files.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Must be used as the *last* option<br /> --wav FILENAME&nbsp; &nbsp; &nbsp;: export midi file as WAV file, and quit<br /> --flac FILENAME&nbsp; &nbsp; : export as FLAC<br /> --mp3 FILENAME&nbsp; &nbsp; &nbsp;: export as MP3<br /> --rate FREQ&nbsp; &nbsp; &nbsp; &nbsp; : change the sample rate for the exported wav<br /> --bit-depth D&nbsp; &nbsp; &nbsp; : change the bit-depth for the exported wav (16,24 or 32)<br /> --dither ON/OFF&nbsp; &nbsp; : turn dithering when exporting on or off<br /> --normalize&nbsp; &nbsp; &nbsp; &nbsp; : turn on volume normalization for the exported wav<br /> --normalize-db DB&nbsp; : change the normalization level (default value is -1dB)<br /> --mono&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: export the wav file as mono<br /> --headless&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: do not show the graphical interface<br /> --fullscreen&nbsp; &nbsp; &nbsp; &nbsp;: start in fullscreen mode<br /> --export-lv2-presets PATH : export all presets as LV2 presets<br /> --export-lv2-presets-std&nbsp; : export lv2 preset to their default location, which is:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /home/tedpower/.lv2/<br /> --export-presets-filter all|builtin|ptq|user : select which presets are exported, default is &#039;builtin&#039;<br /> --restore-windows&nbsp; : restore the a previously saved set of windows<br /> --do-not-block-screensaver : prevent Pianoteq from keeping the screen on<br /> --quiet&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : be less verbose<br /> --play&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: immediately start playing the midi file<br /> --play-and-quit&nbsp; &nbsp; : start playing the midi file, and quit when it ends<br /> --serve [IP:]PORT&nbsp; : start a JSON-RPC server for remote control of Pianoteq.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; When using --serve &quot;&quot; , the server listens on localhost:8081</p><p>Example of use: Pianoteq --preset &quot;U4 Small&quot; --midi foo.mid --wav foo.wav<br />```</p>]]></description>
			<author><![CDATA[null@example.com (tedp)]]></author>
			<pubDate>Fri, 19 Jan 2024 04:25:47 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=994743#p994743</guid>
		</item>
		<item>
			<title><![CDATA[Re: Automatically load specific instrument with Raspberry Pi shell script?]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=994732#p994732</link>
			<description><![CDATA[<p>I’m not at my computer right now but I think you can pass “—help” without the quotes into the executable at the command line to see what commands are available. </p><p>I know you can start Pianoteq in server mode and send requests to switch pianos.</p>]]></description>
			<author><![CDATA[null@example.com (stephenll)]]></author>
			<pubDate>Thu, 18 Jan 2024 20:39:02 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=994732#p994732</guid>
		</item>
		<item>
			<title><![CDATA[Automatically load specific instrument with Raspberry Pi shell script?]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=994711#p994711</link>
			<description><![CDATA[<p>Hello,</p><p>I am setting up a dedicated Raspberry Pi 5 to work with Pianoteq. I mostly use it headlessly, as I don&#039;t want to dive through menus every time I want to play piano. But I would like to select between a few instruments (a steinway, a rhodes, a wurlitzer). I&#039;m thinking about building a selector (rotary encoder) that would run a script and allow me to switch between instruments with a physical action. Sort of recreating this functionality found in e.g. the Yamaha Reface CP (but with my own midi controller and speakers etc.): </p><p><span class="postimg"><img src="https://uc69d25049dfa13e27d9129f62c3.previews.dropboxusercontent.com/p/thumb/ACI6kRejbNyBIq-zlYKuXAO9q3fo3tQ71j3_kFYqeuRadwvFqfdP7BP8tVC_xi_k2GUtg_OXTpmjQBY5bfB62pucn2WVkwDLqNJncUqIqKjnPhdME6aBkrvgSy7HR2czPlfb6YCEWa9gjFD2VrCF1rIk53MibiK65gWLSwYAeX7teBDLYUf3cKjk3WPDsJ2Kz2C1GIXnf5tEpSv6mt8cwSm9c_726-z5G-JMqlpIzS1JT7D2S3q8VM3UbsTXplpQXh1R3YFt7aPJgVJhtCpaO6v9BJr8civdS0MwgZ-AwOner6iLYLTYKI_rKAnfHg0UbWiUeK5LrbfP7pu5gG-pFzi9jJiOjowSIPeeqMWHksQIxQh3ueW63FIT6bz6nf8R94k/p.png" alt="Reface CP" title="Reface CP"/></span></p><p>My question is — does anyone know if it is possible to open Pianoteq into a specific instrument / preset / patch via a script (specifically within linux / pi os)? I&#039;d like to have one script (shell script?) that opens into the Rhodes, one that opens into a Piano, etc.</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (tedp)]]></author>
			<pubDate>Thu, 18 Jan 2024 15:04:02 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=994711#p994711</guid>
		</item>
	</channel>
</rss>
