# XRuns Pianoteq High Resolution Velocity MIDI signal -Solved-

**URL:** <https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919>\
**Category:** Software\
**Tags:** pianoteq, midi\
**Created:** [January 25, 2025, 9:22am UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919 "2025-01-25T09:22:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 9:22am UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/1 "2025-01-25T09:22:14Z")

</div>

[EDIT]  
Case solved. The keyboard was sending high resolution CC Midi in addition to the normal note on/off. When i switched that off in my kbd settings, everything was fine!  
Thx to the rescue team here at Dicourse Planet Z

Removed the ORAM referance from the subject as it seems unrelated to the case.  
Case update: On my machine (V5.1 kit) i have more XRuns running Pianoteq (PT) than one should expect. On maximum overclock and these PT settings:

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/7/7f4259d2475e27a9b6f3867a179d69576085978f.png)  
I have around 8 XRuns pr minute of hard playing.  
Higher settings on PT and lower or no overclocking results in higher amount of XRuns  
This performance is sub par compared to other users experiences  
[/EDIT]

Hi all

I have switched from Vangelis to the latest Oram staging. And have lots of XRuns when playing Pianoteq. XRuns before on Vangelis was only there when i was not running RPI5 at maximum overclocking. I have done some testing but will report on that when i can sum it up a little more. Now i would just like to hear if i’m alone in this or if there are others?

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [January 25, 2025, 9:49am UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/2 "2025-01-25T09:49:31Z")

</div>

That is strange. Oram and Vangelis are currently identical. We await your further testing and detail of your setup.

---

<div class="post-metadata">

**Author:** ![tunagenes](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/tunagenes/32/7279_2.png) [@tunagenes](https://discourse.zynthian.org/u/tunagenes)\
**Post date:** [January 25, 2025, 11:25am UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/3 "2025-01-25T11:25:22Z")

</div>

> [@core.east](#):
>
> Now i would just like to hear if i’m alone in this or if there are others?

I can’t help with the answer to that because I don’t use Pianoteq. But I wonder if this could be connected-related to the earlier version which used maximum overclocking by default and the later, but still several updates back, when we discovered that not all RPis could handle that and changed to less overclocking by default. Sorry about the lack of detail - I just have a vague memory of a problem with this somewhat recently, like in the last year.

---

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 11:32am UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/4 "2025-01-25T11:32:01Z")

</div>

Yes, i remember this about rpi5 and overclocking. But mine has been overclocking fine since i’ve got it.

I’m working on my report right now. I’ll be back (Austrian accent)

---

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 12:06pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/5 "2025-01-25T12:06:32Z")

</div>

This is more or less what things looked like before i stertet to try and fix the XRuns:  
Audio:

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/4/425e2290049dc00c3f0b35fa315690b9c92a25e9.png)  
[Snap: 004-tmpl.zss](https://discourse.zynthian.org/uploads/short-url/xn54d0yyQJ71i3St5ESQJ4IMclM.zss) (24.7 KB)  
Pianoteq settings:  
 ![image](https://discourse.zynthian.org/uploads/default/original/2X/0/05e159ae68057c7c91224eb2c1f32bcb944de152.jpeg)  
 ![image](https://discourse.zynthian.org/uploads/default/original/2X/1/1c36438e76cc78c29757710b562ad121091ee1bc.png)

I then removed other chains (2-4), but no help there.  
I checked that i was overclocking, and i was:  
 ![image](https://discourse.zynthian.org/uploads/default/original/2X/a/a283249632194614f72933c02dd6c7340be1f0ea.png)  
I then tried to find solutions on Discourse, and tried the following (maybe in correct order)  
Lowering the sample rate of Pianoteq. I lowered it to 16k, and this might decrease the amount of XRuns with 5%? But not solving in any way.  
I changed the buffer size in audio settings to 512, this helps, and the XRuns are gone. But the if i reload my snap (se above) XRuns are quite seldom but the Zynthians heart is often orange and read.  
I the read the Jofemodo had succesfully run Pianoteq with full settings on Pianoteq

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/0/06462d49846a840e9a8cc571b4cb65c80218f80a.png)  
and a 128 buffer (i think), so i tried that - first with a 512 buffer. Extremely many XRuns resulting in long breaks in sound.  
Then i tried, just for the curiosity, to run the same pianoteq settings with 128 buffer, and of course everything was horrible about that 🙂  
Then i went to my workshop and assembled some plywood for something complety different for a while, came back here and wrote this 😛

---

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 12:34pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/6 "2025-01-25T12:34:22Z")

</div>

I’ve just tested disconnecting the Tascam US and running on the onboard sound. But same.

---

<div class="post-metadata">

**Author:** ![tunagenes](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/tunagenes/32/7279_2.png) [@tunagenes](https://discourse.zynthian.org/u/tunagenes)\
**Post date:** [January 25, 2025, 12:52pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/7 "2025-01-25T12:52:38Z")

</div>

Perhaps going back to Vangelis and seeing if the problem actually goes away? And if so, does returning to Oram staging bring the problem back - since they’re supposed to be identical…

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [January 25, 2025, 12:55pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/8 "2025-01-25T12:55:47Z")

</div>

I am (mostly) on vangelis (with some zynmixer changes thrown in for good luck) and do not experience xruns when playing lots of notes with sustain on PT configured with all features enabled. Is it just PT or do you have other processors / engines?

[Edit] I am using RPi5 with no hardware, US-16x08 at 48000/128 and no overclocking

---

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 2:03pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/9 "2025-01-25T14:03:43Z")

</div>

Its afaik just PT. I will test if its different going back to Vangelis.

Is there any place where i can monitor which processes are using how much CPU. Maybe something is competing with PT, though i do not know what it should be!

Back to Vangelis first…

---

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 2:08pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/10 "2025-01-25T14:08:28Z")

</div>

Now i’m not fooling around with any settings, so im still on this:

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/1/1c36438e76cc78c29757710b562ad121091ee1bc.png)  
On Vangelis i have one XRun first time i hit the key’s, else nothing.  
Back to staging to test there…

---

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 2:14pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/11 "2025-01-25T14:14:14Z")

</div>

On staging some more XRuns. Sustain pedal on, hitting many keys fast for 2 minutes gave me this:  
Jan 25 14:11:26 zynthian startx[5881]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 5, delay: 4265.0us  
Jan 25 14:11:35 zynthian startx[5881]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 6, delay: 1081.0us  
Jan 25 14:11:47 zynthian startx[5881]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 7, delay: 51.0us  
Jan 25 14:11:47 zynthian startx[5881]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 8, delay: 24.0us  
Jan 25 14:12:06 zynthian startx[5881]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 9, delay: 30.0us  
Jan 25 14:12:13 zynthian startx[5881]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 10, delay: 231.0us  
Jan 25 14:12:20 zynthian startx[5881]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 11, delay: 332.0us  
Jan 25 14:12:22 zynthian startx[5881]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 12, delay: 85.0us  
Jan 25 14:12:30 zynthian startx[5881]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 13, delay: 182.0us  
Jan 25 14:12:45 zynthian startx[5881]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 14, delay: 38.0us

Back to Vangelis to do a similar test 🙂

---

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 2:16pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/12 "2025-01-25T14:16:50Z")

</div>

Here is the dubug log after updating to Vangelis:  
Jan 25 14:15:12 zynthian startx[8569]: Building XImage…done  
Jan 25 14:15:12 zynthian startx[8571]: ZynCore: Setting-up 20+4 x Zynswitches…  
Jan 25 14:15:12 zynthian startx[8571]: ZynCore: Setting-up 2 x Zynswitches in RBPi GPIO…  
Jan 25 14:15:12 zynthian startx[8571]: ZynCore: Setting-up Zynpots =\> 4 x PEC11 …  
Jan 25 14:15:12 zynthian startx[8571]: ZynCore-\>gpiod\_start\_callbacks: Callback thread created successfully  
Jan 25 14:15:12 zynthian startx[8571]: Started libzynaudioplayer using libsndfile-1.2.0  
Jan 25 14:15:13 zynthian startx[8571]: Started libzynmixer  
Jan 25 14:15:13 zynthian startx[8571]: Started libzynseq  
Jan 25 14:15:13 zynthian startx[8571]: Started libzynsmf  
Jan 25 14:15:17 zynthian startx[8571]: WARNING:zynthian\_engine\_pianoteq.fix\_pianoteq\_config: Pianoteq detected previous crash (1)

The last line was also there when updating to staging. I do not know if this is significant!

---

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 2:20pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/13 "2025-01-25T14:20:11Z")

</div>

More or less same number of XRuns i must admit:  
Jan 25 14:17:29 zynthian startx[8571]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 1, delay: 372.0us  
Jan 25 14:17:34 zynthian startx[8571]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 2, delay: 348.0us  
Jan 25 14:17:37 zynthian startx[8571]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 3, delay: 333.0us  
Jan 25 14:17:41 zynthian startx[8571]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 4, delay: 61.0us  
Jan 25 14:18:03 zynthian startx[8571]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 5, delay: 94.0us  
Jan 25 14:18:27 zynthian startx[8571]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 6, delay: 72.0us  
Jan 25 14:18:36 zynthian startx[8571]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 7, delay: 54.0us  
Jan 25 14:18:37 zynthian startx[8571]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 8, delay: 76.0us  
Jan 25 14:18:37 zynthian startx[8571]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 9, delay: 131.0us  
Jan 25 14:18:41 zynthian startx[8571]: WARNING:zynthian\_autoconnect.cb\_jack\_xrun: Jack Audio XRUN! =\>count: 10, delay: 75.0us

But it was not that bad couple of days ago, and i’m on low settings. So i should like to think that my machine could do better?

---

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 2:22pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/14 "2025-01-25T14:22:59Z")

</div>

just tried this config of PT

 ![image](https://discourse.zynthian.org/uploads/default/original/2X/0/06462d49846a840e9a8cc571b4cb65c80218f80a.png)  
Then i logged 13 Xruns in one second 🙂

---

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 2:25pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/15 "2025-01-25T14:25:49Z")

</div>

I really appreciate all the help i’ve got and will get, but i’m doing some woodwork for some time now, and then there is some family stuff later, so i’m not in a hurry

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [January 25, 2025, 2:35pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/16 "2025-01-25T14:35:40Z")

</div>

Try disabling CPU overclocking. I have it disabled with no xruns.

---

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 3:29pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/17 "2025-01-25T15:29:57Z")

</div>

Tried it now. It gets worse. I’m out the door, but io can do quantification later. Now i would just say betwinn 200-300% worse ☹

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [January 25, 2025, 4:02pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/18 "2025-01-25T16:02:22Z")

</div>

What PSU are you using? When you are back, check the output of `dmesg` for any warnings or errors.

---

<div class="post-metadata">

**Author:** ![core.east](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/core.east/32/13283_2.png) [@core.east](https://discourse.zynthian.org/u/core.east)\
**Post date:** [January 25, 2025, 5:32pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/19 "2025-01-25T17:32:13Z")

</div>

I’m using the original PSU.

Here are the parts that was formatted red in the output from dmesg:

[0.206922] bcm2708\_fb soc:fb: Unable to determine number of FBs. Disabling d  
river.

[3.213808] snd-rpi-hifiberry-dacplusadcpro soc:sound: ASoC: driver name too  
long ‘HifiberryDacpAdcPro’ → ‘HifiberryDacpAd’

---

<div class="post-metadata">

**Author:** ![riban](https://discourse.zynthian.org/user_avatar/discourse.zynthian.org/riban/32/2331_2.png) [@riban](https://discourse.zynthian.org/u/riban)\
**Post date:** [January 25, 2025, 6:10pm UTC](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919/20 "2025-01-25T18:10:27Z")

</div>

Do you have much plugged into USB? Try reducing the load.

Check temperature and that your heat management is working.

Your machine is behaving badly compared to mine.

[Next page](https://discourse.zynthian.org/t/xruns-pianoteq-high-resolution-velocity-midi-signal-solved/10919.md?page=2)
