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.

Markov Composer – Using machine learning and a Markov chain to compose music

68 pointsby vsakosabout 10 years ago

11 comments

spankaleeabout 10 years ago
I got really into Markov chains a while back and started analyzing Jazz solos, but using the current harmony, beat, and note durations as part of the state I tracked.<p>The results were promising I thought. Though I wouldn&#x27;t call them great (they tend towards long, fast runs that are statistically possible, but unrealistic), they do have a touch of musicality that simpler analysis often lack.<p>It&#x27;s all old Lisp code that I need to resurrect, but I found an .mp3 of generated blues solo from an analysis of Coltrane&#x27;s Blue Train: <a href="https:&#x2F;&#x2F;soundcloud.com&#x2F;spankalee&#x2F;markov-blue-train" rel="nofollow">https:&#x2F;&#x2F;soundcloud.com&#x2F;spankalee&#x2F;markov-blue-train</a>
评论 #9439667 未加载
评论 #9439627 未加载
joeyspnabout 10 years ago
It would be better to feed this tool with hooktheory&#x27;s API containing common chord progressions...<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9394176" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9394176</a>
317070about 10 years ago
Well, another clear argument that &#x27;composing music&#x27; is far more complicated than sequencing notes.
评论 #9437985 未加载
评论 #9439248 未加载
评论 #9438856 未加载
rcptabout 10 years ago
Algorithmic composition is a decently-sized field. Here&#x27;s a textbook:<p><a href="http:&#x2F;&#x2F;www.amazon.com&#x2F;Algorithmic-Composition-Paradigms-Automated-Generation&#x2F;dp&#x2F;321175539X" rel="nofollow">http:&#x2F;&#x2F;www.amazon.com&#x2F;Algorithmic-Composition-Paradigms-Auto...</a><p>And some more examples:<p><a href="http:&#x2F;&#x2F;algorithmiccomposition.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;algorithmiccomposition.org&#x2F;</a>
hliyanabout 10 years ago
Will it be possible to write a filter on top of this to eliminate invalid&#x2F;dissonant outputs based on music theory -- e.g. key signature, beat, harmonics etc?<p>Edit: Try listening to only the first bar of each sample at the bottom of the page. It almost sounds like the beginning of a proper composition. The only problem is that subsequent bars don&#x27;t match. Fix that and I think there&#x27;s something great here.
alok-gabout 10 years ago
Does someone know of a source of MIDI files that could be used for training music composition algorithms (without violating copyrights)?
评论 #9439411 未加载
评论 #9439268 未加载
robhackabout 10 years ago
Cool, it reminds me of one of my very old project : <a href="http:&#x2F;&#x2F;robhub.github.io&#x2F;melogen&#x2F;@auto.swf" rel="nofollow">http:&#x2F;&#x2F;robhub.github.io&#x2F;melogen&#x2F;@auto.swf</a> (sorry, Flash, I know..) However, it would require tons more work to make something interesting.
DanBCabout 10 years ago
It&#x27;s a shame that DarwinTunes didn&#x27;t become more popular.<p><a href="http:&#x2F;&#x2F;darwintunes.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;darwintunes.org&#x2F;</a><p>I&#x27;d like to see something that combines user-guided evolution and markov chains.
kyberiasabout 10 years ago
Comment to the maintainer of that page: Don&#x27;t put dark blue on black background. It&#x27;s very hard to see and read.
评论 #9438222 未加载
musicalentropyabout 10 years ago
What about rhythm ?
krickabout 10 years ago
Nothing really new here, I&#x27;ve seen multiple blog posts about how to do exactly that thing using exactly the same methods. But everything I&#x27;ve seen so far is pretty primitive, as it constructs a sequence of tones completely disregarding the rhythmic part, and I&#x27;m not sure if treating them as separate things is actually good idea: at least it deserves another blog post exploring if there should be some relationship between tone and rhythm in order to produce good results.
评论 #9438253 未加载