Skip to content

PianoToLife 11.1.0: stems.... piano.. and others

PASHKULI

OlivierW but then it is no longer a piano's geometry.

The real piano geometry is incorrect.
For a UI and MIDI roll falling notes you start with everything note's lane equal in width → this is where the tails of the keys touch those lanes. The sacrifice is that the widths of the heads for the notes C, D, E will be ever so slightly narrower. Not the tails, but the heads. For a true and complete equal widths the design is a bit more involved as a geometry and it is not needed for UI. It is a must though for real pianos.
You can see it for yourself in the provided .svg file I gave\showed you above (also in the Handthasia thread in this forum).

This is also how the Osmose keyboard synth controller's keys have been designed (to keep tails equal ever so slightly narrowing C, D, E's heads).


OlivierW

PASHKULI in a near future, perhaps in 11.1.5 or in a year lol, or a lock option ?


OlivierW

soon in 11.1.5 auto EQ in sampler mode 'usefull forthe Gigasampler Steinway B for example):

very cool feature for boom proximity mics effects bad recording


PASHKULI

OlivierW or a lock option?

Not sure what that 'lock' is. The design described is much, much simpler than what similar apps use. Reaper's MIDI editor has it the same way as described… sort of (so, not really).

Here is Reaper's (keep in mind their MIDI roll keys are closer to how Osmose is → blacks are a bit wider than the tails of white keys). Why? I have no idea why because it is much more easier to make it perfect than to get it disproportional for whatever reason. It is just bonkers.

• Reaper's MIDI notes (blocks look so bad as if "glued" together, flush touch)


OlivierW

PASHKULI stop it's fixed in upcoming update 11.1.5.


PASHKULI

OlivierW

OK, that is great but such things are under my microscope. Most DAWs and related apps are so bad at this.


PASHKULI

And for the sake of comprehensiveness, here is how Cubase does it. It's been 20 years of cringe at this and… I mean, once you see it, it can not be unseen.

• that G♭ is like a crooked tooth


PASHKULI

Simplicity wins every time. What is wrong with 'the industry' is beyond me.


PASHKULI

How it is done correctly for UI of MIDI roll piano:

  1. draw equally spaced lines (they are the gaps), at least 1px tall (for 4K and higher PPI display monitors that gap may need to be 2px)
  2. between those lines draw lanes for the midi notes (in the example they are 15px tall, odd number 7+1px+7)
    • those lanes will correspond to the tails and black keys widths
    • the lanes of the 'white' keys' tails are the background colour (can be other but it is simpler this way, because they are 7)
    • darken the lanes for the 'black' keys accordingly (darker than the background colour)
    • the lines (gaps) can be the same colour as the background (easier) or slightly darker (than the 'black' lanes) → see right portion of the .svg file below
  3. the 'main gaps' between keys known as B_C and E_F must be emphasized with such darker tint (than the 'black' lanes), always

To draw the heads of the 'white' keys you have to divide the space between the 'main gaps' into 3 on one side and then into 4. The one into 4 has a line (1px) right in the middle of the 'black' lane (which is corresponding for the key known as A♭ or G♯). Yes, the widths of the C, D, E will get just over 1px narrower but for UI it is ok with anti‑aliasing (also the hardware controller Osmose uses those proportions). The can be set equal to F, G, A, B but that is not so suitable for UI screen (with anti‑aliasing it is ok but here we need it for MIDI piano roll).


DavisB

Bikeshedding (formally known as the Law of Triviality) is the human tendency to spend a disproportionate amount of time and energy on minor, trivial details while neglecting important, complex problems

If ability to write your own software, or any technical skills are absent, solving complex problems or making stuff is impossible -> so bikeshedding it is.


PASHKULI

DavisB

I disagree. We do not have to be proficient at everything. That is why we work together.
This is not a rocket science: Geometry
Yes, it is not easy either. Tracing guitar frets are also geometry — a fraction of a mm off, and your intonation is compromised, saddles to high\deep — you have to replace them.
Every musical instruments (incl. virtual, UI) has its quirks and it is more than obvious that not everyone professionally working in those subjects have done it correctly.

From the list you have shown I am proficient in "Mech. eng. and CAD + more than a beginner level" and the last one but that last one should not be a problem to anyone, yet… it somehow is. Trust me, I do not get how is this such a problem either.
I also would love to learn the piano but it has to be "my piano (klaviped)" → by my design and specifications.


OlivierW

PianoToLife 11.1.6 is out (it also brings 11.1.4 and 11.1.5), with many thanks to everyone who reported and suggested:

  • EQ1 AUTO: one click balances your piano like the default model, especially the bass boom of close microphones. The resonance follows the bass excess, so this changes a lot: on my Steinway B, everything blooms cleanly now.
  • EQ1 SHOW: the notes you play appear on the EQ curve, so you see where to cut.
  • Captures right at any A4 (432, 409 Hz...), and the diapason is now explained at the end of a capture.
  • MAGIC VIEW with equal lanes, as suggested here.
  • Stems FAST / QUALITY: separation twice as fast, and a CLEAN PIANO strength slider.
  • Fixes: no more freeze on Capture / Check by ear on Windows, PANIC in the compact view, takes named by their date.

Download: https://github.com/owfrappier/PianoToLife/releases


PASHKULI

OlivierW

In View mode the stutter is quite big (compared to Synthasia\Hand‑thasia). Also the gap bitween B_C is a bit odd (washed out).

Some hand notes unfortunately do not get shown for the correct corresponding hand (Chopin, Waterfall etude Op10 n1):

• black keys seem shifted a bit to the right
• gap between E_F should move to the right a bit

Damn AI, you ca not divide a rectangle into 12 too. That is primary school math.


Nyoooooom

@OlivierW Hello! I would like to ask if there's any significant difference between the four options or if its best to leave it on 1x?

Thanks again.


Nyoooooom

(Forgot to add the image lol)


OlivierW

Nyoooooom just speed difference depend on computer.



PASHKULI

OlivierW

I told you, by implementing too many visuals, the performance will suffer. The MIDI roll\fall stutters, freezes in intervals for half a second badly.




« Previous Page Next Page »