←back to thread

109 points bcowde | 2 comments | | HN request time: 0s | source

I made a software library for displaying piano music 7 years back, and recently ported it to the web (which is now easier than even ever).

It displays sheet music as you play, and let's you take snapshots of specific chords, then keeps a running list of chords as keyboard visuals (instead of just displaying sheet music).

Just a simple tool for songwriting/ figuring out songs by ear, or just understanding music key theory (which I'm admittedly a still a beginner at).

Show context
earlyriser ◴[] No.43515245[source]
Not sure if you can help me here or someone reading this.

I'm trying to find something to programatically make piano sounds (and record an mp3) based on 2 params midi note and velocity. I'm making a videogame and I need the mp3 piano notes.

I got a free piano sample library, but the sounds start not always at the same microsecond, so I think I need to produce the samples by myself.

replies(4): >>43515418 #>>43515859 #>>43516408 #>>43516490 #
1. jstrom ◴[] No.43515418[source]
This paper produces a good result: http://large.stanford.edu/courses/2007/ph210/otey2/. If you game is OK sounding synthetic, I've had good results simulating a string plucked off center, decay each harmonic proportional to the frequency, then adding reverb.

A sound font or VST plug-in with appropriate licenses may be another route, but I can't speak to how difficult that would be to work with. It's on my to-do list.

replies(1): >>43515720 #
2. earlyriser ◴[] No.43515720[source]
Yes this looks perfect for what I'm trying to do. Thanks!