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.

Cantable Diffuguesion: Bach chorale generation and harmonization

68 pointsby fagerhultover 2 years ago

7 comments

q845712over 2 years ago
Thanks for sharing - I&#x27;ve been wondering how the newer generation of AI-stuff would do on chorales.<p>I don&#x27;t think this would have gotten great marks in my collegiate music theory IV class (iirc covered special cases of voice leading and rarer harmonic progressions like the augmented 6th and neapolitan chords), but honestly neither did I. In my highschool classes this probably would&#x27;ve gotten passing grades, at least on short exercises.<p>Is there an easy way to get it to &quot;true up&quot; the intonation on the longer chords? IMO part of the magic of this style of music is that a capella performances aren&#x27;t constrained to equal temperament, and get really nice resonances on anything they hold.
bibanezover 2 years ago
It seems it gets the best results when you give it a melody. Pretty impressive nonetheless. I wrote a terrible script [1] a few years ago to do similar chorale harmonizations. I guess this is the year when most of my old projects get an AI version that completely outclass them ;-(<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;bibanez&#x2F;harmonizer">https:&#x2F;&#x2F;github.com&#x2F;bibanez&#x2F;harmonizer</a>
评论 #34345876 未加载
agalunarover 2 years ago
Listening for any span of a few seconds, it sounds quite nice! but beyond the length of a phrase or so, it just does not make any sense.<p>It reminds me a bit of that project to &quot;create Beethoven&#x27;s tenth&quot; using an AI that I heard about a year ago. It was amazing in many ways, but the music didn&#x27;t go anywhere and wasn&#x27;t saying anything. I know that description is nebulous, the sort of feeling you might imagine or trick yourself into having, or a perception you invent perhaps out of defensiveness or say you have just to seem cultured.<p>And perhaps in a &quot;blind&quot; comparison, cantable diffuguesion wouldn&#x27;t stand out as much. But with all that said, it definitively sounds not quite human after a moment.<p>I wonder how we can teach machines the larger-scale structures of (common practice) music. At the scale of an entire movement, structures can be merely formulaic and the music still turns out alright. At the level of phrases and themes, though, it&#x27;s harder to articulate, and requires good taste. But it&#x27;s the sort of &quot;intuitive&quot; thing that I&#x27;d expect AI to be good at, so I&#x27;m always surprised that it seems to be the thing AIs are <i>worst</i> at.<p>(My background: although I&#x27;ve not studied Bach&#x27;s chorales in any depth, I&#x27;ve studied a few years of composition and used to be a church organist.)
prvcover 2 years ago
&gt;Four-part chorales are presented to the network as 4-channel images. As in Stable Diffusion, a U-Net is trained to predict the noise residual.<p>&gt;After training the generative model we add 12 channels to the inputs, with the middle four channels representing a mask, and the last four channels are masked chorales. We mask the four channels individually, as opposed to Stable Diffusion Inpainting that use a one-channel mask.<p>How were they encoded, specifically? Anyway, it&#x27;s fairly easy to break, say, try with &quot;c&#x27;4 c&#x27;#4 d&#x27;4 d&#x27;#4 e&#x27;4 f&#x27;4 f&#x27;#4&quot; as the melody.
评论 #34351680 未加载
Photogrammatonover 2 years ago
My not very substantive response is that I like the project name. Maybe lots of text generators can come up with wordplay involving Subject ! and Subject 2, but I think you&#x27;ve already got one running.
mkw2000over 2 years ago
This is awesome !
TheOtherHobbesover 2 years ago
This is terrible. It&#x27;s making a lot of very obvious mistakes and is nowhere close to being a credible chorale harmoniser&#x2F;generator.
评论 #34347504 未加载