News for hackers. Stuff that matters.
Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by wolfgang42 on Wednesday January 01, 2020 @04:37PM (#21930852)
Yes, a MIDI synthesizer can take the score and convert it to audio. (The discerning ear—or even an untrained one, if it's a poor quality sythesizer—could tell the difference between that and a live orchestra, of course, but that may not be a concern for you.)

However, unless you transcribed the original sheet music to MIDI yourself, the file may constitute an “original work” for which there is a separate copyright[0], in which case you'd still need an appropriate license for that. You'd also want to make sure that the sound fonts the synthesizer is using are OK as well.

Now that the original work is in the public domain, though, I would expect that sooner or later there will be a CC-licensed version of it on Wikimedia Commons or the YouTube Audio Library, and you may want to just wait for that.

[0]: https://meta.wikimedia.org/wiki/Wikilegal/MIDI_Files

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by crazygringo on Wednesday January 01, 2020 @04:50PM (#21930960)
Indeed -- transcribing sheet music into MIDI is generally not going to be 100% automatic, whoever is doing it is going to have necessary artistic choices to make -- what metronome speeds do tempo descriptions convert to, how much longer will a fermata hold, what levels of volume the different dynamic markings will hold.

You could take a "pure" mapping of just the notes and relative durations... but then you'd wind up with what would essentially sound like a weird robotic "player piano" version of the music at strange speeds that would be, well... pretty bad.

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by Eric_WVGG on Wednesday January 01, 2020 @05:39PM (#21931233)
A player piano doesn’t necessarily have to sound bad.

Back in 1993 Yamaha built a device that could read piano rolls personally “recorded” by Gershwin by hand (he would hammer them out for money in his spare time), and then played back on a modern player piano. The resulting album is one of my all-time favorite albums.

Yamaha still sells these “scans” (on 3.5” floppy!) for their player pianos, and they could certainly be reverse engineered, but I imagine they are considered derivative works and covered by their own copyright.

https://apnews.com/fb3f8c3bc3305506f57120df0755f9d8 https://youtu.be/_kIpr6nSvjI

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by crazygringo on Wednesday January 01, 2020 @06:24PM (#21931512)
Interesting! Well, if you perform intentionally without dynamics, the player piano is certainly a valuable artistic choice in its own right. More like a harpsichord, in a way.

But I'll point out that the YouTube performance you linked to isn't a player piano at all -- it's an actual recording, which Gershwin overdubbed to be two pianos.

While player pianos that could incorporate dynamics existed, I'm not sure they were common, and I'm also not clear if there were any that incorporated playtime "per note" dynamics as opposed to generally "overall" dynamics that were added in via a separate mechanism.

But nevertheless yes -- there did exist some player pianos that had the capability of being more expressive than the normal single-volume ones!

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by yesenadam on Wednesday January 01, 2020 @06:58PM (#21931732)
>I'm also not clear if there were any that incorporated playtime "per note" dynamics

This[0] is a reproducing piano recording Ravel made in the 20s and was recorded from a Duo-Art piano in the 60s. Hearing Ravel play his own stuff a few years ago radically changed my idea of how Ravel's music should sound. (Pianist, I'd been playing Ravel for a couple of decades before that) This[2] has Prokofiev playing his own music.

"Many famous composers from around the world played their own works for the reproducing piano: Edvard Grieg, 1906 in Leipzig; Alexander Scriabin, 1910 in Moscow; Gabriel Fauré, c. 1913 in Paris; Nikolai Medtner, c. 1925 in New York."[1]

"This video is a practical demonstration and overview of how the Aeolian Duo-Art pneumatic reproducing player piano works, including how the system plays expressively by controlling the loudness of notes played with perforations on the roll."[3]

[0] https://archive.org/details/RavelPlaysRavel

[1] https://www.allclassical.org/player-piano-rolls-listening-to...

[2] https://www.youtube.com/watch?v=9uMRD2o6dJo

[3] https://www.youtube.com/watch?v=w-XrDw04P2M

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by Eric_WVGG on Wednesday January 01, 2020 @08:13PM (#21932123)
I’m pretty sure “overdubbed” in this case meant “playing over the piano roll a second time.” Not an actual recording.

This YouTube rip sounds a little crummy to me, though, I’d suggest finding Gershwin Plays Gershwin on Spotify or your streaming service of choice...

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by crazygringo on Wednesday January 01, 2020 @08:41PM (#21932259)
They're drastically different, though.

The YouTube link you referenced is an actual recording -- the notes are all distinctly different dynamics, and there's plenty of background hiss. It's a real recording, full of life, on a real piano, and genuinely overdubbed. It's not "a little crummy" -- to the contrary, it's an invaluable historical record.

On the other hand, the "Gershwin Plays Gershwin" album is a genuine player piano, but the Rhapsody in Blue is totally different -- it has zero dynamics, everything is exactly the same volume. [1] It's interesting to hear, for sure -- but more as a historical curiosity, since no pianist would ever perform everything at the same volume unless limited technologically. Your original link is Gershwin's full interpretation. In contrast, his player piano version is nothing like what he would have performed live, but rather adapted to the technological limitations.

[1] https://open.spotify.com/track/2XSBXz4uDvx1PQPYJWQpcK?si=EO3...

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by andrewaylett on Thursday January 02, 2020 @08:16AM (#21935087)
Telarc have a number of albums of music reproduced from piano rolls -- this https://smile.amazon.co.uk/gp/product/B000009RCS/ is one of my favourite collections of classical works.

The sleeve notes tell of how modern scanning allowed a more complete reproduction of the notes played than contemporary players allowed, which by all accounts were already pretty good.

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by eitally on Wednesday January 01, 2020 @11:23PM (#21933025)
And here's the researcher discussing the project: https://www.youtube.com/watch?v=WqOtLSuPCJY
Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by lonelappde on Wednesday January 01, 2020 @07:40PM (#21931940)
What if I write a program that does that translation agnostically of the specific work being translated?

And what if my program is parametrized by an ML model of unknown training data?

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by lmm on Wednesday January 01, 2020 @10:46PM (#21932867)
> What if I write a program that does that translation agnostically of the specific work being translated?

Then that program will likely produce non-copyrighted output for non-copyrighted input. But it's also likely going to sound pretty bad.

> And what if my program is parametrized by an ML model of unknown training data?

Then its output could be considered a derivative work of every work in that training corpus, and anyone whose creative work went into that training data will have a copyright claim on the results.

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by mantap on Thursday January 02, 2020 @02:00AM (#21933512)
> Then its output could be considered a derivative work of every work in that training corpus, and anyone whose creative work went into that training data will have a copyright claim on the results.

Depends how tech savvy the judge is. An ML model is not really like a copy or reproduction, it's much more like a person's brain in that it aims to take general patterns from various sources.

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by daniel_iversen on Wednesday January 01, 2020 @04:42PM (#21930893)
You can apparently use real recorded instrument sounds with midi and music software, it’s used for professional artists too and some of the “instruments” are many GBs in size - don’t think a living soul could tell the difference.
Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by squeaky-clean on Wednesday January 01, 2020 @06:32PM (#21931563)
It depends on how much effort you put into the midi transcription, but a trained musician could probably still tell the difference, especially during the transitions in between notes, and certain dynamics. Some sample libraries go as far as to record entire phrases played by a musician but then you're limited to what musical phrases those recordings include and how they were played (pitch shifting has gotten very good, but let's say you want a violin melody to sound softer, or plucked instead of bowed).

Instruments where notes/hits are isolated from other notes/hits like a piano or drumkit work wonderfully with sample libraries. But things like a guitar, violin, or trombone are still challenges. Even the orchestral libraries that are hundreds of gigs and thousands of dollars don't get it perfectly on their own. You definitely can make recordings that trick a trained musician, but not without tons of effort customizing your midi transcription to that specific sample library and you may have to compromise and avoid certain techniques that still don't translate to sampling well.

This is just talking about trained musicians though. Taking a midi transcription of something, spending 10 minutes adjusting velocity, and then loading up some EastWest samples would probably fool the average person.

Also quick edit but many people would consider something using samples of recorded instruments to still be a midi synthesizer because you're synthesizing a performance from samples, as opposed to recording entire phrases or even longer sections with a real musician and then arranging samples to create a recording. Not everyone would agree, but I'd guess the original commenter also had sample software in mind along with more traditional electronic synthesizers.

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by derekp7 on Wednesday January 01, 2020 @07:46PM (#21931986)
Even on a piano, two notes that are played independently, then later mixed, sound different than if those same two notes are played together on the piano. Something to do with the sound from one note affecting the string vibrations on the second note, and vice versa.
Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by squeaky-clean on Wednesday January 01, 2020 @08:59PM (#21932359)
Very true, me saying they're totally isolated isn't 100% correct. That's sympathetic resonance, and other details like the pedals also slightly affects the resonance and pressing the pedals may be audible in a quiet/intimate recording. It's very subtle though and probably not noticeable by anyone who doesn't have lots of experience with a real piano. Many modern piano libraries actually do model/sample those properties though (I have no idea how).

While we're on it, drums aren't totally isolated either, they affect themselves. A snare roll is slightly different than just playing many snare samples rapidly because of the chains on the drum, and heavy cymbals also take some time to build up momentum so the first hit and tenth hit will sound different if it has not settled. These are all very subtle though compared to something like a guitar or violin or trombone where transitioning from one note sample to another sample digitally can be very obvious.

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by filoleg on Thursday January 02, 2020 @01:02PM (#21937883)
On the topic of how those modern libraries manage to reproduce those effects, couldn’t they have used either pure bruteforce (i.e., recording and sampling every combination of notes hit together) or some advanced modeling of physical properties of pianos to recreate how the sounds coming from piano strings would interact simultaneously? Or even better, some combination of those two approaches (modeling and extensive sampling)?

Disclaimer: i by no means have any expertise on the topic and am just as curious about figuring out how it actually works as the parent comment.

Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by lifeisstillgood on Wednesday January 01, 2020 @04:47PM (#21930934)
On a fairly serious note, how would I find out more of "how to" nature - if for example I wanted to have a project with my kids RaspberryPis and making music ?
Re:Happy Public Domain Day: Gershwin’s “Rhapsody in Blue” Is... by wolfgang42 on Wednesday January 01, 2020 @05:07PM (#21931071)
Depends on what you're trying to do. If all you want is to play back MIDI files adequately, Firefox or VLC can do that just fine (I'm sure there are better dedicated software synths as well). For making music on the computer, I know there's a lot of software with different interfaces like virtual keyboards, trackers, and programs where you can drag-and-drop notes on a staff.

Since you're talking about the Raspberry Pi, maybe you're looking for a hardware. In this case, you can get MIDI piano keyboards that plug into the computer over USB (or can be used standalone). These can both send MIDI data to the computer and also receive it and play it with their internal synthesizer. (If you go really expensive, you can get actual grand pianos with sensors and actuators under each key, along with a subscription service that gives you access to recordings by professional piano players, replayable at your whim with exact dynamics so it's like they're in your living room.)

You can also build your own hardware and hook it up with a microcontroller; I've had good experiences with the Teensy, which is similar to an Arduino but can present itself to the computer as a USB MIDI device so you can build whatever creative/crazy instruments you want.

Should you come across a device with an actual MIDI port (a big round DIN socket with 5 pins), it's just a serial connection; you can get adaptors to convert them to USB.