<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Modartt user forum - How to launch  two different presets A/B at startup]]></title>
	<link rel="self" href="https://forum.modartt.com/extern.php?action=feed&amp;tid=11450&amp;type=atom"/>
	<updated>2024-05-02T11:18:48Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.modartt.com/viewtopic.php?id=11450</id>
		<entry>
			<title type="html"><![CDATA[Re: How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996681#p996681"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Evaffek wrote:</cite><blockquote><div class="quotebox"><cite>levinite wrote:</cite><blockquote><p>I take it you already know Pianoteq will restore your old session including your A/B selections and that you can select a preset using the Pianoteq command line. To take it a bit further requires a programatic approach. The idea is to midimap your required presets and select a new preset by sending a midi message using a virtual controller. </p><br /><p>In Linux</p><p>-start Pianoteq with selected fxp/preset using the command line</p><p>-create virtual midi ports*:<br /> code: sudo modprobe snd-virmidi</p><p>-if needed list virtual ports with code: amidi -l</p><p>-send program change (0xC0) mapped to fxp 0x77 to Pianoteq using one of the created ports hw:2,0:<br /> code: amidi -p hw:2,0 -S &#039;C0 77&#039;</p><p>Note: The virtual controller can be used to create the initial preset mapping.<br />Is there a way to map the A/B switch? Don&#039;t know, <i class="far fa-smile smiley"></i> but it is possible to send virtual key-presses to a program.</p><p>Once you get it working, if desired, put the required commands in a shell file <i class="far fa-smile smiley"></i></p><br /><p>For windows find a program that sends midi messages but the same idea should work</p><br /><p>*<br /><a href="https://unix.stackexchange.com/questions/759660/how-to-write-raw-midi-bytes-to-linux-midi-through-client">https://unix.stackexchange.com/question...ugh-client</a><a href="https://cannacraftcorner.com">web</a><a href="https://pureplantpleasures.com">web</a></p><p>edit: <br />Oops, still will only change A or B. We need a midi mapping for selecting A or B, but I still think it can be made to work by sending virtual key-presses. That will probably be best done with Python and I will probably work on it or find something that already does it. But it might not be needed here, by only sending mapped presets via midi messages instead of clicking &quot;A/B&quot; comparisons could be done. Indeed, even now its possible to do on the fly A/B/C... comparisons via the midimapping approach.</p></blockquote></div><p>Thank you, Levinite. It does seem like the appropriate approach to ensure success. I&#039;ll delve deeper into the matter. As you recommended, I&#039;ll explore GitHub to see if there are any existing functions or utilities for simulating key press input virtually.</p></blockquote></div><p> one of the best open source software I found on GitHub is sendmidi . </p><p><a href="https://github.com/gbevin/SendMIDI">https://github.com/gbevin/SendMIDI</a></p><p>It works on Linux, Windows and MacOs. I use it on my Mac and have mapped my favourite pianoteq presets&nbsp; to function keys and also to switch A/B .</p>]]></content>
			<author>
				<name><![CDATA[joannchr]]></name>
				<uri>https://forum.modartt.com/profile.php?id=8284</uri>
			</author>
			<updated>2024-05-02T11:18:48Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996681#p996681</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996680#p996680"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>levinite wrote:</cite><blockquote><p>I take it you already know Pianoteq will restore your old session including your A/B selections and that you can select a preset using the Pianoteq command line. To take it a bit further requires a programatic approach. The idea is to midimap your required presets and select a new preset by sending a midi message using a virtual controller. </p><br /><p>In Linux</p><p>-start Pianoteq with selected fxp/preset using the command line</p><p>-create virtual midi ports*:<br /> code: sudo modprobe snd-virmidi</p><p>-if needed list virtual ports with code: amidi -l</p><p>-send program change (0xC0) mapped to fxp 0x77 to Pianoteq using one of the created ports hw:2,0:<br /> code: amidi -p hw:2,0 -S &#039;C0 77&#039;</p><p>Note: The virtual controller can be used to create the initial preset mapping.<br />Is there a way to map the A/B switch? Don&#039;t know, <i class="far fa-smile smiley"></i> but it is possible to send virtual key-presses to a program.</p><p>Once you get it working, if desired, put the required commands in a shell file <i class="far fa-smile smiley"></i></p><br /><p>For windows find a program that sends midi messages but the same idea should work</p><br /><p>*<br /><a href="https://unix.stackexchange.com/questions/759660/how-to-write-raw-midi-bytes-to-linux-midi-through-client">https://unix.stackexchange.com/question...ugh-client</a><a href="https://cannacraftcorner.com">web</a><a href="https://pureplantpleasures.com">web</a></p><p>edit: <br />Oops, still will only change A or B. We need a midi mapping for selecting A or B, but I still think it can be made to work by sending virtual key-presses. That will probably be best done with Python and I will probably work on it or find something that already does it. But it might not be needed here, by only sending mapped presets via midi messages instead of clicking &quot;A/B&quot; comparisons could be done. Indeed, even now its possible to do on the fly A/B/C... comparisons via the midimapping approach.</p></blockquote></div><p>Thank you, Levinite. It does seem like the appropriate approach to ensure success. I&#039;ll delve deeper into the matter. As you recommended, I&#039;ll explore GitHub to see if there are any existing functions or utilities for simulating key press input virtually.</p>]]></content>
			<author>
				<name><![CDATA[Evaffek]]></name>
				<uri>https://forum.modartt.com/profile.php?id=9669</uri>
			</author>
			<updated>2024-05-02T07:17:46Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996680#p996680</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996651#p996651"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>levinite wrote:</cite><blockquote><p>Don&#039;t know how I missed it for so long, but the A/B switch can be midi-mapped <i class="far fa-smile smiley"></i> I tried mapping it to program change and it works. Here is how I tested it:</p><p>--map selected fxps to midi codes<br />--in the MIDI section map program change to A/B switch (via select action)<br />--save the midimapping configuration and set it to default<br />--quit Pianoteq<br />--start Pianoteq<br />--send program change code to select 1st fxp<br />--send program change code for A/B switch<br />--send program change code to select 2nd fxp</p><p>Notes:<br />--Although one could probably use &quot;--fxp&quot; option to load the first fpx, the above only uses midi codes which can be used to load additional presets or fxps without quitting Pianoteq.<br />--The first fxp is sent to the current A/B state setting which may be unknown.<br />--The select action has many useful mapping options.</p></blockquote></div><p> so it is easy to write a custom sequence&nbsp; with SWS startup action for Reaper users .</p>]]></content>
			<author>
				<name><![CDATA[Pianistically]]></name>
				<uri>https://forum.modartt.com/profile.php?id=9183</uri>
			</author>
			<updated>2024-04-28T09:53:34Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996651#p996651</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996637#p996637"/>
			<content type="html"><![CDATA[<p>Don&#039;t know how I missed it for so long, but the A/B switch can be midi-mapped <i class="far fa-smile smiley"></i> I tried mapping it to program change and it works. Here is how I tested it:</p><p>--map selected fxps to midi codes<br />--in the MIDI section map program change to A/B switch (via select action)<br />--save the midimapping configuration and set it to default<br />--quit Pianoteq<br />--start Pianoteq<br />--send program change code to select 1st fxp<br />--send program change code for A/B switch<br />--send program change code to select 2nd fxp</p><p>Notes:<br />--Although one could probably use &quot;--fxp&quot; option to load the first fpx, the above only uses midi codes which can be used to load additional presets or fxps without quitting Pianoteq.<br />--The first fxp is sent to the current A/B state setting which may be unknown.<br />--The select action has many useful mapping options.</p>]]></content>
			<author>
				<name><![CDATA[levinite]]></name>
				<uri>https://forum.modartt.com/profile.php?id=7208</uri>
			</author>
			<updated>2024-04-26T19:22:06Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996637#p996637</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996556#p996556"/>
			<content type="html"><![CDATA[<p>Someting somewhat like the global velocty curve (the &quot;G&quot; icon) maybe? </p><p>..a simple way to make &#039;current loaded piano persistent&#039;, different ones for each A/B.. I like that idea! But.. also like the idea of saveable A/B lists, to reload too. (select one as your &#039;global&#039; AB - and change that when it is needed).</p>]]></content>
			<author>
				<name><![CDATA[Qexl]]></name>
				<uri>https://forum.modartt.com/profile.php?id=4633</uri>
			</author>
			<updated>2024-04-19T10:05:02Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996556#p996556</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996555#p996555"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>brundlefly wrote:</cite><blockquote><div class="quotebox"><cite>Pianistically wrote:</cite><blockquote><p>With Logic Pro on Mac , if you create a pianoteq track , then&nbsp; load one instrument in A, and another preset in B and&nbsp; save the project ( as template&nbsp; or not )&nbsp; only one instrument is loaded when you quit logic and relaunch it&nbsp; and you end up with the same instrument in A and B. Same with Reaper</p></blockquote></div><p>My mistake. I was thinking of the way layers work. Had never tried it with A/B presets. It appears the B preset exists only in memory for the duration of the session and is re-populated from A on reload. The result in Cakewalk is the same. I think Modartt could easily address this.</p></blockquote></div><p> I guess they would have to provide a &#039;save session&#039; option in addition to the existing &#039;save preset&#039; one.&nbsp; The existing &#039;save preset&#039; option must be preserved&nbsp; as is&nbsp; in order to allow to load one preset without affecting the second preset already loaded.</p>]]></content>
			<author>
				<name><![CDATA[Pianistically]]></name>
				<uri>https://forum.modartt.com/profile.php?id=9183</uri>
			</author>
			<updated>2024-04-19T08:07:50Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996555#p996555</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996551#p996551"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Pianistically wrote:</cite><blockquote><p>With Logic Pro on Mac , if you create a pianoteq track , then&nbsp; load one instrument in A, and another preset in B and&nbsp; save the project ( as template&nbsp; or not )&nbsp; only one instrument is loaded when you quit logic and relaunch it&nbsp; and you end up with the same instrument in A and B. Same with Reaper</p></blockquote></div><p>My mistake. I was thinking of the way layers work. Had never tried it with A/B presets. It appears the B preset exists only in memory for the duration of the session and is re-populated from A on reload. The result in Cakewalk is the same. I think Modartt could easily address this.</p>]]></content>
			<author>
				<name><![CDATA[brundlefly]]></name>
				<uri>https://forum.modartt.com/profile.php?id=8366</uri>
			</author>
			<updated>2024-04-18T23:20:53Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996551#p996551</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996550#p996550"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>brundlefly wrote:</cite><blockquote><p>Use the VSTi in a DAW; the DAW project/song/template file will recall the setup.</p></blockquote></div><p> With Logic Pro on Mac , if you create a pianoteq track , then&nbsp; load one instrument in A, and another preset in B and&nbsp; save the project ( as template&nbsp; or not )&nbsp; only one instrument is loaded when you quit logic and relaunch it&nbsp; and you end up with the same instrument in A and B. Same with Reaper . Maybe you do something else. In all cases launching the app created by automator works like a charm.</p><p>PS : just to make sure, may you suggested that you create 2 separate instruments tracks in logic and load one instrument&nbsp; in one track and a different one in another track.&nbsp; But this not what I was trying to achieve . I wanted to find a solution that allows to launch pianoteq&nbsp; preloaded with 1 given preset in A and another preset in B which is more optimised.</p>]]></content>
			<author>
				<name><![CDATA[Pianistically]]></name>
				<uri>https://forum.modartt.com/profile.php?id=9183</uri>
			</author>
			<updated>2024-04-18T22:21:15Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996550#p996550</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996548#p996548"/>
			<content type="html"><![CDATA[<p>Use the VSTi in a DAW; the DAW project/song/template file will recall the setup.</p>]]></content>
			<author>
				<name><![CDATA[brundlefly]]></name>
				<uri>https://forum.modartt.com/profile.php?id=8366</uri>
			</author>
			<updated>2024-04-18T20:43:03Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996548#p996548</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996547#p996547"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>levinite wrote:</cite><blockquote><p>I take it you already know Pianoteq will restore your old session including your A/B selections and that you can select a preset using the Pianoteq command line. To take it a bit further requires a programatic approach. The idea is to midimap your required presets and select a new preset by sending a midi message using a virtual controller. </p><br /><p>In Linux</p><p>-start Pianoteq with selected fxp/preset using the command line</p><p>-create virtual midi ports*:<br /> code: sudo modprobe snd-virmidi</p><p>-if needed list virtual ports with code: amidi -l</p><p>-send program change (0xC0) mapped to fxp 0x77 to Pianoteq using one of the created ports hw:2,0:<br /> code: amidi -p hw:2,0 -S &#039;C0 77&#039;</p><p>Note: The virtual controller can be used to create the initial preset mapping.<br />Is there a way to map the A/B switch? Don&#039;t know, <i class="far fa-smile smiley"></i> but it is possible to send virtual key-presses to a program.</p><p>Once you get it working, if desired, put the required commands in a shell file <i class="far fa-smile smiley"></i></p><br /><p>For windows find a program that sends midi messages but the same idea should work</p><br /><p>*<br /><a href="https://unix.stackexchange.com/questions/759660/how-to-write-raw-midi-bytes-to-linux-midi-through-client">https://unix.stackexchange.com/question...ugh-client</a></p><p>edit: <br />Oops, still will only change A or B. We need a midi mapping for selecting A or B, but I still think it can be made to work by sending virtual key-presses. That will probably be best done with Python and I will probably work on it or find something that already does it. But it might not be needed here, by only sending mapped presets via midi messages instead of clicking &quot;A/B&quot; comparisons could be done. Indeed, even now its possible to do on the fly A/B/C... comparisons via the midimapping approach.</p></blockquote></div><p>&nbsp; &nbsp;Following up , and being a Mac user , there is actually a very easy to launch A/B using different presets at startup. It is based on your suggestion.&nbsp; &nbsp;The trick consists in using an automation utility on Mac call AUTOMATOR which allows to develop a workflow able to launch program and able to simulate&nbsp; any sequence of UI events that can be recorded. <br />Here is an example of how to develop an executable that launches Pianoteq , loads first preset &quot;NY Steinway D Classical&quot;&nbsp; then action A/B switch and finally&nbsp; loads &#039;Petrof Mistral Dreamy&#039; .</p><br /><p><a href="https://drive.google.com/file/d/1ZR4dVoq9efPjVAnlbuMRVmRl5B28xJpN/view?usp=sharing">https://drive.google.com/file/d/1ZR4dVo...sp=sharing</a></p>]]></content>
			<author>
				<name><![CDATA[Pianistically]]></name>
				<uri>https://forum.modartt.com/profile.php?id=9183</uri>
			</author>
			<updated>2024-04-18T18:09:19Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996547#p996547</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996541#p996541"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>levinite wrote:</cite><blockquote><p>I take it you already know Pianoteq will restore your old session including your A/B selections and that you can select a preset using the Pianoteq command line. To take it a bit further requires a programatic approach. The idea is to midimap your required presets and select a new preset by sending a midi message using a virtual controller. </p><br /><p>In Linux</p><p>-start Pianoteq with selected fxp/preset using the command line</p><p>-create virtual midi ports*:<br /> code: sudo modprobe snd-virmidi</p><p>-if needed list virtual ports with code: amidi -l</p><p>-send program change (0xC0) mapped to fxp 0x77 to Pianoteq using one of the created ports hw:2,0:<br /> code: amidi -p hw:2,0 -S &#039;C0 77&#039;</p><p>Note: The virtual controller can be used to create the initial preset mapping.<br />Is there a way to map the A/B switch? Don&#039;t know, <i class="far fa-smile smiley"></i> but it is possible to send virtual key-presses to a program.</p><p>Once you get it working, if desired, put the required commands in a shell file <i class="far fa-smile smiley"></i></p><br /><p>For windows find a program that sends midi messages but the same idea should work</p><br /><p>*<br /><a href="https://unix.stackexchange.com/questions/759660/how-to-write-raw-midi-bytes-to-linux-midi-through-client">https://unix.stackexchange.com/question...ugh-client</a></p><p>edit: <br />Oops, still will only change A or B. We need a midi mapping for selecting A or B, but I still think it can be made to work by sending virtual key-presses. That will probably be best done with Python and I will probably work on it or find something that already does it. But it might not be needed here, by only sending mapped presets via midi messages instead of clicking &quot;A/B&quot; comparisons could be done. Indeed, even now its possible to do on the fly A/B/C... comparisons via the midimapping approach.</p></blockquote></div><p> Thank you Levinite . It seems indeed the right approach to make it work. I will investigate further. As you suggest , maybe some functions/utilities for virtually simulating key press input exist already in GitHub.</p>]]></content>
			<author>
				<name><![CDATA[Pianistically]]></name>
				<uri>https://forum.modartt.com/profile.php?id=9183</uri>
			</author>
			<updated>2024-04-18T07:02:51Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996541#p996541</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996536#p996536"/>
			<content type="html"><![CDATA[<p>I take it you already know Pianoteq will restore your old session including your A/B selections and that you can select a preset using the Pianoteq command line. To take it a bit further requires a programatic approach. The idea is to midimap your required presets and select a new preset by sending a midi message using a virtual controller. </p><br /><p>In Linux</p><p>-start Pianoteq with selected fxp/preset using the command line</p><p>-create virtual midi ports*:<br /> code: sudo modprobe snd-virmidi</p><p>-if needed list virtual ports with code: amidi -l</p><p>-send program change (0xC0) mapped to fxp 0x77 to Pianoteq using one of the created ports hw:2,0:<br /> code: amidi -p hw:2,0 -S &#039;C0 77&#039;</p><p>Note: The virtual controller can be used to create the initial preset mapping.<br />Is there a way to map the A/B switch? Don&#039;t know, <i class="far fa-smile smiley"></i> but it is possible to send virtual key-presses to a program.</p><p>Once you get it working, if desired, put the required commands in a shell file <i class="far fa-smile smiley"></i></p><br /><p>For windows find a program that sends midi messages but the same idea should work</p><br /><p>*<br /><a href="https://unix.stackexchange.com/questions/759660/how-to-write-raw-midi-bytes-to-linux-midi-through-client">https://unix.stackexchange.com/question...ugh-client</a></p><p>edit: <br />Oops, still will only change A or B. We need a midi mapping for selecting A or B, but I still think it can be made to work by sending virtual key-presses. That will probably be best done with Python and I will probably work on it or find something that already does it. But it might not be needed here, by only sending mapped presets via midi messages instead of clicking &quot;A/B&quot; comparisons could be done. Indeed, even now its possible to do on the fly A/B/C... comparisons via the midimapping approach.</p>]]></content>
			<author>
				<name><![CDATA[levinite]]></name>
				<uri>https://forum.modartt.com/profile.php?id=7208</uri>
			</author>
			<updated>2024-04-17T21:14:38Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996536#p996536</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to launch  two different presets A/B at startup]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=996393#p996393"/>
			<content type="html"><![CDATA[<p>Is there a way too launch automatically&nbsp; 2 different FXP user presets in A and B at startup ?</p>]]></content>
			<author>
				<name><![CDATA[Pianistically]]></name>
				<uri>https://forum.modartt.com/profile.php?id=9183</uri>
			</author>
			<updated>2024-04-06T08:09:25Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=996393#p996393</id>
		</entry>
</feed>
