Topic: Pianoteq Pro sample rate up to 192kHz

Dear Pianoteq user,

I am considering buying the Pro Version of Pianoteq. I read that the sampling rate is up to 192kHz. Unfortunately, I don't know what this means. Does it result in an even better sound experience? Is it recommended to use a more powerful processor with the Pro Version?

Concerning the processor to be used I am honestly a bit confused. One can find the information that even a raspberry should be fine. On the other hand side, one can read the information: "memory doesn't matter but get as much processer power as you can".  That's quite a range starting from raspberry and ending with an i9 e.g.

Thank you for your help.

With kind regards
Stephan

Re: Pianoteq Pro sample rate up to 192kHz

Hey,

in simple terms, 192kHz means your density of data is way higher.
Image it, like putting more steps into the same amount of time.

A nice graphic illustrating this:
https://www.headphonesty.com/wp-content/uploads/2019/07/SAMPLES-1100x523.jpg

This means you get more precise information of the actual real frequency at a given time,
because frankly we dont get the real sine wave as pictures, but the value of it OVER TIME, looking more like this:

https://www.headphonesty.com/wp-content/uploads/2019/07/Digital-Wave-1100x705.jpg
https://www.headphonesty.com/wp-content/uploads/2019/07/High-Sample-Rate-Digital-Wave-1100x770.jpg

So clearly, more is better.
48 vs 192 kHz obviously needs 4x more computer power.
But as with every mathematical equation, multiplying values gets out of hand quick: So as soon as you try to calculate 4x more data into another set of 4x more data... you see where this is going.

In real world applications, that matters if you want to produce sounds on a professional scale, because you get less artifacts:
You can understand artifacts as mathematical "round up error". Take your 48kHz sample of a piano, and a 48kHz sample of a another sound like a drum. Your result still got 48kHz, so you need to calculate for every Hz how high the interference of this amplitude is. Because the grid is more course, every Hz has a longer timer span it actually covers, your result gets less precise. Your result therefor is off a little bit compared to the real world one would had.

As you can see in the graphs, the typical issue of arc angles in "squaring a circle" is more present the further you get to the "sides" of it - causing less and less precise values with these tones. Imagine it like a spinning wheel that you mark on some point and lay flat: You can see how quick it rotates in the middle when the mark passes by, but it looks close to standing still at the sides while the mark actually travels at the same speed and covers the same distance.

If we do the same with the finer 192kHz grid, your are more close to the actual value that a physical world would have been able to generate by real acoustic waves hitting each other and changing their pattern by interference.
Remember back from physics in school the Avogadro constant? It says smth. like 6.02×10^23 particles in one mol of mass. We could now calculate with the speed of sound in air, and the density of air, how much space this really means and how many particles are in one second of acoustic wave, but to skip all this it roughly means a 23 digit number of "bars" within just once second, where as 192.000 is a 6 digit number.

So you see, real world acoustics got an impressive higher resolution and therefor our course estimation of these can be off.
This is what you hear as artifacts: Sounds that are calculated wrong.

Another thing would be the bit depth, so how many steps are available in each of these "bars" (the amplitude height) above.
These can cause clipping: Again mathematical rounding errors because some theoretical calculated value needed to be cutted off because it would have been between 2 different amplitude heights that your bit depth can represent.

So increasing this depth resolution is again some multiplier, f.e. increasing this by the factor of 2x (depth), together with your previous factor of 4x (sampling rate), and you already require 8x more computer power ... you see again where this is going.

Now imagine both these "height and wide" values are already just course estimations of the real world value, and that you calculate other course values into it. The result getting off more and more... generating sounds that are just wrong.

Can you hear it with Polyphones of just a single Piano: In theory sure.
Does it matter: I boldly claim not so much. 48kHz is good for every usual human, except if you are pretty young and have a really good/trained hearing AND got some real precise playback system. Headphones wont be enough: It requires biiiiig speakers.
When I visit friends in their studios, where they have no sound reflection due do room design, and got 10.000-100.000€ speaker systems, and proper hardware, I can hear artifacts while they master some sounds and it actually is pretty easy to spot them.
But with some regular system at home, suffering already a lot from sound reflections, you will have issues making out the same exact artifacts that you already know.

In my opinion:
If you can afford the Pro version easily, you can for sure just go with it and forget about this issue and know the bottleneck aint the software but your audio setup or your hearing. But its unlikely that you will even notice it without the proper hardware, exp. if you never tasted 192kHz from a really professional setup.

Until 384kHz will be released, and this little voice in our head that always wants the best raises up again telling you to upgrade

But again: All these doubling of resolutions in amplitude height or width is again nothing compared to the power of physics and the Avogadro constant. You will not achieve this kind of precision within the next decades and always be better of buying an acoustic instrument if you want maximum precision than wasting tons of money into digital processing, but you will suffer the issues of real acoustics (instrument design, spatial sound, tuning, space, room design, environmental parameters...) and the costs that come with it.

Make some trade off at some point. Good thing is:
Upgrading PTQ is charging just the exact difference to the next version, so you always spend the same amount.


Greetings from Berlin

Last edited by Vepece (05-02-2023 15:31)
Ubuntu 22 + Kernel lowlatency + 1000Hz + PipeWire + WirePlumber | i5-8265U + taskset Limit 4 Cores + CPUPower-GUI fixed clock freq | PTQ8Stage @ 32bit/48kHz/128Buffer/256Polyphony = Perf. Index ~60-90

Re: Pianoteq Pro sample rate up to 192kHz

Dear Vepece,

wow, this is a real answer. Thank you 100 times!! Since you got so deep into detail let me add the reason for my question (I'll post it in two weeks anyway):

I've got a very old small "Grand Piano" but too old the refurbish. Together with a piano carpenter (Klavierbauer) we will restore the mechanics, remove the steel frame and remove the piano wire. The soundboard will remain inside. We integrate a midi adaptor. I want to build a "Pianoteq" Grand Piano with the best computer inside possible and the best sound system I can get. At the end of the day the piano will get new paint. Don't ask for the price :-)

Somehow this is complete nonsense. But I love to play the piano and I love Pianoteq and I simply want the feeling to sit on a real Grand Piano. I also have a real piano. But it is too loud to play on every day. Up to a certain extent I want the best components that money can buy. Yes, I can buy exactly this from Yamaha, Kawai whoever. But what can I tell my grandson: "Hey Peter, found this in a catalogue and bought it". Great story :-(

This sounds much better: "Once upon a time, there was an old piano carpenter and an even much older Grand Piano...."

Thanks a lot and all the best to you.
Stephan

Re: Pianoteq Pro sample rate up to 192kHz

stephan wrote:

Dear Vepece,

wow, this is a real answer. Thank you 100 times!! Since you got so deep into detail let me add the reason for my question (I'll post it in two weeks anyway):

I've got a very old small "Grand Piano" but too old the refurbish. Together with a piano carpenter (Klavierbauer) we will restore the mechanics, remove the steel frame and remove the piano wire. The soundboard will remain inside. We integrate a midi adaptor. I want to build a "Pianoteq" Grand Piano with the best computer inside possible and the best sound system I can get. At the end of the day the piano will get new paint. Don't ask for the price :-)

Somehow this is complete nonsense. But I love to play the piano and I love Pianoteq and I simply want the feeling to sit on a real Grand Piano. I also have a real piano. But it is too loud to play on every day. Up to a certain extent I want the best components that money can buy. Yes, I can buy exactly this from Yamaha, Kawai whoever. But what can I tell my grandson: "Hey Peter, found this in a catalogue and bought it". Great story :-(

This sounds much better: "Once upon a time, there was an old piano carpenter and an even much older Grand Piano...."

Thanks a lot and all the best to you.
Stephan

https://productionadvice.co.uk/no-stair...tal-audio/

Re: Pianoteq Pro sample rate up to 192kHz

May be this is an unpopular opinion, but for home users, 192 kHz doesn't make any sense. As humans can hear up to 20 kHz (and only during childhood), according to Nyquist theorem with 40 kHz is enough. Even though Vepece explanation is excellent, the plots could be misleading. I'ts kind of magic, but the theorem says "If a function x(t) contains no frequencies higher than B hertz, it is completely determined by giving its ordinates at a series of points spaced1/2B seconds apart". This is because the DAC doesn´t send the amplitudes (shown with bars in Vepece's plots.) directly to the output, it does some maths which reconstructs the signal before.
We use 44 or  48 kHz because of the finite slope of the low pass filters used in recording.
If you have the money, go for the pro version, but not because of the frequency, but because of other features.

Re: Pianoteq Pro sample rate up to 192kHz

If there’s nothing else the computer in your project will be running, then sure, go crazy with quality settings.

Make sure you get an ultra low latency audio interface like RME so you can actually play at that rate and have low latency without the sound crackling.

One more thing to add though:

Audio quality in the digital domain is a few main things.

Sample rate is one.

Resolution is the other. For example 24 bits means each sample has 2 to the power of 24 possible intensity levels.

Some DAWs process internally at 64 bits to provide huge headroom.

D/A conversion is the third. How the filters and interpolation are done plays a huge role.

24 bits, 96KHz and a good audio interface will provide audio that will satisfy almost any application (there are some unusual applications like audio forensics that benefit from crazy sample rates but for playing back music, 48KHz is more than enough).

And let’s not forget CDs are 16 bit/44KHz, and they sound just fine (D/A conversion is where it’s at for playing back CDs).

I’m stating all this to make clear that you need a pristine chain beginning to end.

Re: Pianoteq Pro sample rate up to 192kHz

marcos daniel wrote:

..If you have the money, go for the pro version, but not because of the frequency, but because of other features.

+1 to this

If you aren't heavily editing the sounds in a top professional environment then this is the silliest reason to go for Pro.

Pro could be worth going for if you wish to heavily edit the sound per key; Standard doesn't allow for this level of control over multiple parameters per individual key.

Re: Pianoteq Pro sample rate up to 192kHz

stephan wrote:

Dear Vepece,

wow, this is a real answer. Thank you 100 times!! Since you got so deep into detail let me add the reason for my question (I'll post it in two weeks anyway):

I've got a very old small "Grand Piano" but too old the refurbish. Together with a piano carpenter (Klavierbauer) we will restore the mechanics, remove the steel frame and remove the piano wire. The soundboard will remain inside. We integrate a midi adaptor. I want to build a "Pianoteq" Grand Piano with the best computer inside possible and the best sound system I can get. At the end of the day the piano will get new paint. Don't ask for the price :-)

Somehow this is complete nonsense. But I love to play the piano and I love Pianoteq and I simply want the feeling to sit on a real Grand Piano. I also have a real piano. But it is too loud to play on every day. Up to a certain extent I want the best components that money can buy. Yes, I can buy exactly this from Yamaha, Kawai whoever. But what can I tell my grandson: "Hey Peter, found this in a catalogue and bought it". Great story :-(

This sounds much better: "Once upon a time, there was an old piano carpenter and an even much older Grand Piano...."

Thanks a lot and all the best to you.
Stephan

Doh, right yesterday I linked this one about folks who are doing what you are doing. Are you one of them?

https://pianoclack.com/forum/d/745-summ...y-projects

Where do I find a list of all posts I upvoted? :(

Re: Pianoteq Pro sample rate up to 192kHz

One theoretical advantage of 192 kHz is you can keep the latency inside Pianoteq insanely low.
Given you are having a very powerful PC the calculation of a 64 sample buffer just needs ...

64 / 192000Hz = 0.33 ms

If that latency feels "too short" :-) together with the tactile feedback of the keys, you can increase the latency very fine-grained with 192 kHz by increasing the buffer in multiples of 64 to your personal optimum:

samplebuffer    [ms]
64    0,33
128    0,67
192    1,00
256    1,33
320    1,67
384    2,00
448    2,33
512    2,67
576    3,00
640    3,33
704    3,67
768    4,00
832    4,33
896    4,67
960    5,00
1024    5,33
1088    5,67
1152    6,00
1216    6,33
1280    6,67
1344    7,00
1408    7,33
1472    7,67
1536    8,00
1600    8,33
1664    8,67
1728    9,00
1792    9,33
1856    9,67
1920    10,00
1984    10,33
2048    10,67

Re: Pianoteq Pro sample rate up to 192kHz

groovy wrote:

One theoretical advantage of 192 kHz is you can keep the latency inside Pianoteq insanely low.
Given you are having a very powerful PC the calculation of a 64 sample buffer just needs ...

64 / 192000Hz = 0.33 ms

If that latency feels "too short" :-) together with the tactile feedback of the keys, you can increase the latency very fine-grained with 192 kHz by increasing the buffer in multiples of 64 to your personal optimum:

samplebuffer    [ms]
64    0,33
128    0,67
192    1,00
256    1,33
320    1,67
384    2,00
448    2,33
512    2,67
576    3,00
640    3,33
704    3,67
768    4,00
832    4,33
896    4,67
960    5,00
1024    5,33
1088    5,67
1152    6,00
1216    6,33
1280    6,67
1344    7,00
1408    7,33
1472    7,67
1536    8,00
1600    8,33
1664    8,67
1728    9,00
1792    9,33
1856    9,67
1920    10,00
1984    10,33
2048    10,67

Yes, assuming the audio interface is able to keep up.

Re: Pianoteq Pro sample rate up to 192kHz

The explanation above about 192kHz being a better approximation of a sine wave is not a correct understanding of how digital audio works.
The 48kHz or 192kHz is the rate that samples are taken.  However we do not listen to digital signal but rather analog signals which have been made by sending the digital signal through a digital to analog converter (DAC) which outputs a sine wave (or combination of many sine waves) which is sent to a loudspeaker for playback.   The rate of samples sets the highest frequency that can be reproduced by the digital signal - the highest frequency is the half the sample rate.   Even "CD" audio of 44.1kHz can reproduce up to 22.05 kHz which is higher the human can hear (human range 20-20kHz for a baby, high end drops as you age).   So 192kHz can reproduce up to 96kHz which no human can hear and most likely not reproducible by any speaker.   Most important to sound quality is the quality of your DAC and speakers.   This video has a good explanation of digital audio: https://www.youtube.com/watch?v=BNVVq-iVPy8

Re: Pianoteq Pro sample rate up to 192kHz

varpa wrote:

The explanation above about 192kHz being a better approximation of a sine wave is not a correct understanding of how digital audio works.
The 48kHz or 192kHz is the rate that samples are taken.  However we do not listen to digital signal but rather analog signals which have been made by sending the digital signal through a digital to analog converter (DAC) which outputs a sine wave (or combination of many sine waves) which is sent to a loudspeaker for playback.   The rate of samples sets the highest frequency that can be reproduced by the digital signal - the highest frequency is the half the sample rate.   Even "CD" audio of 44.1kHz can reproduce up to 22.05 kHz which is higher the human can hear (human range 20-20kHz for a baby, high end drops as you age).   So 192kHz can reproduce up to 96kHz which no human can hear and most likely not reproducible by any speaker.   Most important to sound quality is the quality of your DAC and speakers.   This video has a good explanation of digital audio: https://www.youtube.com/watch?v=BNVVq-iVPy8


marcos daniel wrote:

May be this is an unpopular opinion, but for home users, 192 kHz doesn't make any sense. As humans can hear up to 20 kHz (and only during childhood), according to Nyquist theorem with 40 kHz is enough. Even though Vepece explanation is excellent, the plots could be misleading. I'ts kind of magic, but the theorem says "If a function x(t) contains no frequencies higher than B hertz, it is completely determined by giving its ordinates at a series of points spaced1/2B seconds apart". This is because the DAC doesn´t send the amplitudes (shown with bars in Vepece's plots.) directly to the output, it does some maths which reconstructs the signal before.
We use 44 or  48 kHz because of the finite slope of the low pass filters used in recording.
If you have the money, go for the pro version, but not because of the frequency, but because of other features.

You are mixing 2 different things together.
The 20kHz cap of the human hearing describes the frequency of a tone we are capable of hearing which is determent that we hear something "higher" in pitch when our "Analog-Electric Converter aka Eardrum" oscillates 20.000 periods a second.
192k/Hz sample rate describes how many samples a second consists of, but does not translate to 192.000 oscillations in your ear when this sample rate is played - you still can playback just 1.000 periods causing 1.000 oscillations in your ear within this 192k resolution.
You see where this is going?

So, repeating again and again the wrong mixup you supposly picked up reading an article aint make it any more true.


I am more than happy to admit that I wont know everything about this topic yet and learned something new while watching exp. the video in your link,
but to the same I feel like your link is mixing two things together as well and draws wrong conclusions by that.

The first part is again the sample rate and bit depth of the computer system. There is no way around that the computer works binary, and therefor got some resolution in both axis causing quantization distortion to occur.
This gets worse the greater distorted the amplitude heights (bit depth) are and the lower the time resolution (time/width between sample points) are which are getting calculated against each other, while the amplitude height values are getting worse distorted again due to the the arc angle at closer approximations to the x-axis/middle line which is why it at least needs a high resolution of sample points there.

So artifacts do occur - periods are calculated against each other, causing periods in the oscillation range that are audible to us being altered.

To represent all this with bars does still make sense, in the world of binary, even while these are points they do have an effect over time: The binary system will play value Y of amplitude for value X of "time" (rates/periods).


The second story is the Digital-Analog Converter and seperated from the first.
The fundamental claim there is, that dithering "magicly" enables that the converter will find the proper wave function because you can only have one specific wave function that passes threw all sample points which was impressively shown in the video of your article being in so low dB ranges, that we can not hear these imperfections.

But we do not generate simple wave functions, we do not even generate complex wave functions.
We generate periods how ever we like thhem, and there is not necessarily a wave function that can pass threw all our amplitudes, because we use "super-complexity". You can have a single 20kHz period next to a any other longer period (longer period = lower kHz) next to any other period again creating the most bizarre wave.

Even with cool approaches of algorithms and the speed of light you end up in a finite amount of possibilities this function can render, but we have an infinity amount of possible wave functions because of our super-complex output that sure can be translated as wave function but not started as that ..., and therefor the algorithm will never find the 100% perfect pass threw to our sample points of amplitude heights. It will come close, maybe even to many Logs, but it will never be perfect again - which is what actually can be seen by the really low dB values, but not -999dB. There still is some noise.

He even mentions in the video at the end that phenomena likes Gibbs do not effect audibility and therefor can be neglected because his wave function was reconstructed properly again - but again, starting from a wave function, which we dont.

I am no professional to the in depth theory and math behind the involved scientific fields (heck, I wouldnt even know where to start to grasp the actual math behind it) and would appreciate if someone who knows this 100% right would explain it to me and correct my understanding, or can refer for the proper papers to read,
but right now,
just looking up how Gibbs effects, and other phenomena, as well as Dithering is still causing impacts that can not be recovered in imaging systems (check Wikipedia and see the examples in MRI scans), indicates to me that we have to suffer these impacts too: A 2D Image is kind of "enhancing" the errors due to its 2 axis multiplying distortions by a power of 4 (doubling each axis = 4x more area),
while I would understand sound is effected only like a one axis system and therefor by a power of 2 (yes, we got 2 axis with amplitude and periods, but it translates to only the periods with different values (amplitudes, which you could choose a number, or a color, or what ever to represent) while the image translates to 2 axis of periods with different values (colors in this case, which could be numbers as well like in a binary system).
Because the multiplication of distortions, its easier to make out the imperfections in an image system, while the phenoma and effects should be the same in our system?

Let me see if I can ask some one at my university and get a better explanation considering my fundamental claim: That we have the calculation of binary values, that only have a limited range/resolution/density causing these quantization to be distorted causing audible effects,

and secondly, disconnected from the first concept, that we have an infinite possibility of wave functions by our computer system, maybe even sequences that can not be represented by any wave function that is not absurdly complex and unrealistic to reconstruct, while a DAC can only find a finite number of functions in a given time and therefor is flawed to not be able to "restore" the information which causes slight imperfection - which may not be audible at all but still measurable.


Greetings.

Last edited by Vepece (07-02-2023 19:50)
Ubuntu 22 + Kernel lowlatency + 1000Hz + PipeWire + WirePlumber | i5-8265U + taskset Limit 4 Cores + CPUPower-GUI fixed clock freq | PTQ8Stage @ 32bit/48kHz/128Buffer/256Polyphony = Perf. Index ~60-90