TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: AI that produces sheet music for practice?

44 pointsby unionemployeealmost 2 years ago
I’m seeing some products that transcribe songs, but I want to tell an AI to write the exercises I describe for practice purposes. For example: “Write the chromatic 7th intervals from C to B in eighth notes”

13 comments

scarecrowbobalmost 2 years ago
Not a criticism of reality or the question, but an unrelated observation:<p>I find it super interesting that were at a point in time where we would find it faster to ask a computer to randomly generate a short sequence of notes rather than just, like, writing them out.<p>This is a good example of a class of problem where it would be so much easier for me to describe any of several workflows:<p>punch it into Dorico directly, write it on some staff paper, put it in logic and have it output notes,<p>or just stick with Arban&#x2F;Rabath&#x2F;Rubank&#x2F;Dotzaur&#x2F;et al because, functionally, most useful possible permutations of exercises have been written out somewhere by some one (with the added benefit that they were probably written out by people thinking about speicfic issues like string crossings or the break on a clarinet)<p>Any of those seems infinitely faster it would be to figure out how to get a LLM to randomly stumble on the exercise based on its training data.<p>Even if I am a just a musician and not a tech bro, I&#x27;m happy that we live in a world where that seems like an easier route to randomly generate that material than to just write it out.
评论 #37022417 未加载
评论 #37035721 未加载
评论 #37023328 未加载
singhracalmost 2 years ago
You can ask ChatGPT to output in Lilypond format, and use <a href="https:&#x2F;&#x2F;github.com&#x2F;matthunz&#x2F;staff">https:&#x2F;&#x2F;github.com&#x2F;matthunz&#x2F;staff</a> to render it; this worked for me on your above example.
joeld42almost 2 years ago
I use an app called SightReading factory for this <a href="https:&#x2F;&#x2F;www.sightreadingfactory.com&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.sightreadingfactory.com&#x2F;</a> . It&#x27;s not exactly as you describe as it generates short, random but musical passages for sight reading, but it has a lot of options. It&#x27;s good when you want to generate random passages to play through once and then discard.
brusselssproutsalmost 2 years ago
I think you might have more luck asking it to write a script to do what you&#x27;d like. I gave ChatGPT 4 the following input:<p>&quot;Please give me a python script that writes the chromatic 7th intervals from C to B in eighth notes in a convenient output format like lilypond or musicxml.&quot;<p>The script it gave me worked perfectly, outputting lilypond to stdout and a musicxml file that imported into musescore with no issues.
charred_patinaalmost 2 years ago
Everyone is recommending MusicXML which works very well, but for training&#x2F;generative purposes the issue is that MusicXML has a lot of tags and a recursive structure that severely limits the output length. I have had success with getting ChatGPT to output .ABC files, and even luck training small transformers to output syntactically correct .ABC files. .ABC files also have some data in the header section like the key signature, tempo, and time signature, so you could add that to your prompt as well.<p>This blog post has some .ABC files you can see as an example:<p><a href="https:&#x2F;&#x2F;gwern.net&#x2F;gpt-2-music" rel="nofollow noreferrer">https:&#x2F;&#x2F;gwern.net&#x2F;gpt-2-music</a>
unionemployeealmost 2 years ago
Thanks all. Wasn&#x27;t aware of MusicXML or musescore. I do write out exercises on manuscript paper and find that the time it takes and contemplation is helpful. They&#x27;re legible bug generally pretty ugly, and I don&#x27;t always want my notebooks to take up space when traveling. Even when I do use tools to generate certain things, I often still write them out as a way to contemplate the music without my instrument. Also having a bunch of handwritten manuscript paper makes me feel more accomplished than I am.
zeckalphaalmost 2 years ago
ChatGPT can generate Lilypond syntax. There&#x27;s some wrinkles, but the basics like this can be done.
gus_massaalmost 2 years ago
Looks like an interesting idea, but I have no cue about music to help you.<p>Anyway, anecdote time: My wife used to play random chords in the guitar. She explained me that if you follow some rules it would sound good. I don&#x27;t remember the details, something like<p>X -&gt; Y or Z<p>Y -&gt; X or W<p>Z -&gt; X<p>W -&gt; X or Y<p>where X, Y, Z, W are actually A, B, C, D, E, F or G, but I can&#x27;t remember which ones. (Did I mention I don&#x27;t play the guitar?)<p>So I made a program that played in the speaker 4 notes per chord, and followed those rules to select the next chord. It was surprisingly good for the low effort I made. It was not fantastic or groundbreaking, but not horrible at least.
评论 #37022458 未加载
iancmceachernalmost 2 years ago
Why? Can&#x27;t you just look those things up? Wouldn&#x27;t this just be a sheet music search engine? Surely all of these exercises have been written down at some point
Finnucanealmost 2 years ago
There are already practice books filled with that kind of thing.
im3w1lalmost 2 years ago
MusicXML is a fairly simple textual format that can be rendered to sheet music for printing by standard tools like say Musescore. Maybe try targetting that.
brandoniscoolalmost 2 years ago
www.nevertwenty.live is will give you the chords to any song want.
ioisaralmost 2 years ago
Imslp.org