# Writing Out My Tunes

I play by ear, and when I write tunes I normally save them by making a recording. This isn't ideal for sharing, though, especially with people who are more comfortable learning tunes from dots. I last had a go at this [ten years ago](https://www.jefftk.com/p/written-music-corriente), and decided to give it another try.

I was first curious whether AI advancements meant I didn't need to learn how to do this at all: could I just give my recording to a program and have it figure it out? I tried several things without success (each in Claude Opus 4.1, Gemini Pro 2.5, and GPT-5):

*   Uploading an mp3 and asking for sheet music.
*   Running `[basic-pitch](https://github.com/spotify/basic-pitch)` (open source pitch to midi converter), uploading the midi, and asking for sheet music.
*   Running `basic-pitch`, then `[midi2ly](https://github.com/gin66/midi2ly)` to convert to LilyPond score format, uploading that, and asking it to clean it up

I ran these all on the tune I used [last time](https://www.jefftk.com/p/written-music-corriente) since I had "ground truth" there. The one that came closest was the last in Claude, which got the melody mostly right but the rhythm way off:

[![](https://www.jefftk.com/corriente-opus-4-quite-bad.png)](https://www.jefftk.com/corriente-opus-4-quite-bad-big.png)

It ought to look something like this:

[![](https://www.jefftk.com/contras/tunes/corriente-sm.png)](https://www.jefftk.com/contras/tunes/corriente.png)

**The Duck Pond**

Seems like automation isn't there yet, at least not the tools I tried. I decided to go ahead manually.

I started with a tune I wrote on vacation this summer, after Nora had a [close call](https://www.jefftk.com/p/shallow-water-is-dangerous-too) in a duck pond. I was still pretty shaken up, playing was helpful emotionally, and this tune came out. It only has four notes (she's four) and with the combination of range and specific notes I think it would land correctly for (Scottish) bagpipes. I started on paper:

[![](https://www.jefftk.com/the-duck-pond-paper.jpg)](https://www.jefftk.com/the-duck-pond-paper-big.jpg)

Then I typed it into [MuseScore](https://musescore.org/en):

[![](https://www.jefftk.com/TheDuckPond.png)](https://www.jefftk.com/TheDuckPond-big.png)

*[MuseScore file](https://www.jefftk.com/TheDuckPond.mscz)*

Initially (as you can see on paper) I had the rhythm wrong, but it was hard for me to tell. The issue is that hearing a fiddle tune played robotically by the computer always sounds some amount of wrong, and the tricky thing is telling whether the issue is the quantization vs having written the wrong thing. A friend (hi Charlie!) and I played some tunes at a party and I got him to take a look, and after he said the issue was definitely in the writing I came back, gave this another chance, and am decently happy now.

Here's some playing it slowly, on mandolin (electric but not plugged in) and piano, to give a sense of how I'm imagining it:  
([mandolin, mp3](https://www.jefftk.com/contras/tunes/the-duck-pond-mando.mp3))  
([piano, mp3](https://www.jefftk.com/contras/tunes/the-duck-pond-piano.mp3))

**Truncated Piano**

I had another go, on a tune I wrote about a year ago. I'd just gotten my new [73-key piano](https://www.jefftk.com/p/switching-to-a-yamaha-p-121-keyboard) for gigs, and was excited to play it a lot. Again I started on paper:

[![](https://www.jefftk.com/truncated-piano-paper-rough.jpg)](https://www.jefftk.com/truncated-piano-paper-rough-big.jpg)

This one has several mistakes, including that I wrote out twice as fast as it actually goes, and it doesn't actually use triplets. But overall it was much easier to get down than the previous one. Getting it into MuseScore went smoothly, partly because this one is simpler and partly because I'm starting to get the hang of the tool. Here are the dots:

[![](https://www.jefftk.com/truncated-piano.png)](https://www.jefftk.com/truncated-piano-big.png)

*[MuseScore file](https://www.jefftk.com/TruncatedPiano.mscz)*

Here's what it sounds like:  
([mp3](https://www.jefftk.com/contras/tunes/truncated-piano.mp3))

**Polka No Bears**

This was starting to get fun, so I did another. This is a tune I wrote last summer on vacation with my family in the Poconos. We saw a lot of bears, and even more evidence of bears, mostly of interactions with insufficiently secure trash containers. Again starting on paper:

[![](https://www.jefftk.com/polka-no-bears-rough-paper.jpg)](https://www.jefftk.com/polka-no-bears-rough-paper-big.jpg)

I realized after writing it down that it felt too repetitive, and in fact I had often been playing it AAB without thinking about it. So this afternoon I added a third part to go in between the two parts I wrote before. This has had much less time to gel, and I'm not sure whether I'll still be happy with it in a few days.

[![](https://www.jefftk.com/PolkaNoBears.png)](https://www.jefftk.com/PolkaNoBears-big.png)

*[MuseScore file](https://www.jefftk.com/PolkaNoBears.mscz)*

And an audio version:

  
([mp3](https://www.jefftk.com/contras/tunes/polka-no-bears.mp3))

**Highland Rd**

In late Summer 2019 a marchy Englishy tune was bouncing around my head. I didn't end up doing anything with it other than whistling it into my phone, but now that I can write things up it seemed like a good time to get it out. Named after a Somerville street that is an unusually nice place for a walk.

No paper this time: I tried starting right in with the computer since this one seemed like it would be easy enough.

[![](https://www.jefftk.com/highland-rd-tune.png)](https://www.jefftk.com/highland-rd-tune-big.png)

*[MuseScore file](https://www.jefftk.com/HighlandRd.mscz)*

And an audio version:

  
([mp3](https://www.jefftk.com/contras/tunes/highland-rd.mp3))

I'm excited to share these; while a more prudent approach would be to hang onto ideas and save them up for Kickstarter commissions and gifts, most likely if I tried that they'd never get out.

Other tunes I'd like to transcribe at some point: [Nora's Waltz](https://www.jefftk.com/contras/tunes/noras-waltz.mp3), [Julia's Waltz](https://www.jefftk.com/contras/tunes/julias_waltz.mp3), [Turkey Strumstick](https://www.jefftk.com/contras/tunes/turkey_strumstick.mp3).

*Comment via: [facebook](https://www.facebook.com/jefftk/posts/pfbid0EEbez2Zqmm7FB2o5o9SSdzYY9RRW9mZyZk728mc8YXG5jGW74889UgxjnMRkwauTl), [lesswrong](https://lesswrong.com/posts/zMLQonKrg2rGztgZr), [mastodon](https://mastodon.mit.edu/@jefftk/115045149746604436), [bluesky](https://bsky.app/profile/jefftk.com/post/3lwmdxjvl6s2w)*