PianoToLife 11.1.0: stems.... piano.. and others
PASHKULI
How it is done correctly for UI of MIDI roll piano:
- 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)
- 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 - 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
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
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
OlivierW
Nyoooooom just speed difference depend on computer.
OlivierW
PASHKULI subject closed
PASHKULI
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.
OlivierW
OlivierW
OlivierW
Khuja Wangtishvili
Lol waiting for PTL to be piano tuning app too 🙃
I do not tune my piano by myself, and not going to, but many people here do
_sem_
Khuja Wangtishvili Lol waiting for PTL to be piano tuning app too 🙃
Klavierpiano does that...
OlivierW
pipAT
Great! We‘ll have a "Carrier Strike Group"!!
OlivierW
upcoming in 11.3.0
autotune bad sampled piano: (sampler mode)
What TEMPERAMENT already does. It measures the pitch of every key on the samples and finds two things: the piano's own stretch (a smooth curve over the keyboard) and the temperament it was recorded in (the average offset of each of the 12 notes). Choosing Equal replaces that recorded temperament, and the Stretch slider keeps (100 %), removes (0 %) or widens the stretch.
What it does not correct is exactly your case: the error of each key on its own, a C4 8 cents sharp while all the other Cs are fine. Even with Equal and Stretch 0 %, those individual errors stay.
So here is what we are working on, rather than an AUTO on Tune: FIX KEYS, in the TEMPERAMENT section.
It computes, for each key, how far it is from the piano's own curve and temperament, and stores the correction apart: your Tune values are not touched.
The corrections apply with every temperament except "Original (as recorded)". One click on Original lets you hear the real piano as recorded, one click on Equal (or any other temperament) the corrected one. A direct A/B by ear.
On top of it, any temperament works cleanly: Equal + Stretch 0 % = the exact equal temperament at 440 Hz you are asking for, Equal + Stretch 100 % = a well-tuned piano with a smooth natural stretch, or a historical temperament, a Scala file or your own.
In EDIT, each key shows its correction beside its Tune (e.g. Tune 0.0 ct · fix −8.2 ct), so you see all 88 values; CLEAR FIX removes them, and everything is undoable. Tune stays for the special cases (a key you want to set by ear).
Safety: corrections are limited, a key whose pitch cannot be measured reliably (extreme bass or treble) is left alone, and a summary lists the keys corrected. You can then check them with Check by ear.
Why this rather than writing into Tune: the original stays one click away, nothing is lost, and the temperament and stretch you choose are applied on clean keys instead of on top of the recording's errors.
It is planned for the next version. Thanks again for the idea, and for explaining your workflow.
dikrek
OlivierW so you're like a superhero



