<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Modartt user forum - Python script for Yamaha P-525 variable Note-Off velocity (Linux)]]></title>
		<link>https://forum.modartt.com/viewtopic.php?id=13615</link>
		<description><![CDATA[The most recent posts in Python script for Yamaha P-525 variable Note-Off velocity (Linux).]]></description>
		<lastBuildDate>Sun, 22 Nov 2026 19:18:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Python script for Yamaha P-525 variable Note-Off velocity (Linux)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=1010636#p1010636</link>
			<description><![CDATA[<p>Hi folks, about 3 months ago, I was given a new Yamaha P-525 digital piano as a gift and have been using it happily with Pianoteq. Like many others, I noticed that the P-525 outputs a fixed note-off velocity of 64.&nbsp; I wondered if it might be possible to improve this with a Python script.</p><p>For several years now, I have been using Arch Linux, and more recently, I have been making use of AI capabilities for a variety of tasks. So, over a few months, I worked and iterated on a Python script (with significant AI assistance) to estimate note-off velocity based on the MIDI output from the P-525. My goal was to improve the realism of my Pianoteq setup a little more compared to an acoustic piano.</p><p>The code is posted along with some testing-related scripts and a random MIDI file of me practicing at: <a href="https://github.com/HeftyNumber/p525_pianoteq_bridge">https://github.com/HeftyNumber/p525_pianoteq_bridge</a>. The MIDI file is raw output from the P-525, which I used early on when iterating on the code without having my piano directly connected.</p><p>I have been using the p525_pianoteq_bridge.py script for about a month now. It has been very stable and seems to work well, at least in my setup. As written, this code works on Linux, and I have only tested it on my Arch Linux computer running KDE as a desktop environment. It could likely be adapted for other operating systems such as Windows or macOS, though I have not investigated this.</p><p>I use a program called RaySession to run the Python script, launch Pianoteq, and make the necessary MIDI and audio connections. I also worked with AI to thoroughly document the code, explain how I run it, and create an architecture guide detailing how everything works.</p><p>I don&#039;t know if anyone else will find this useful, but if so, please feel free to use it!</p>]]></description>
			<author><![CDATA[null@example.com (mwinthrop)]]></author>
			<pubDate>Sun, 22 Nov 2026 19:18:19 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=1010636#p1010636</guid>
		</item>
	</channel>
</rss>
