TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Deriving Keys from Chords in Music

83 点作者 dizzystar大约 4 年前

12 条评论

om2大约 4 年前
This post shows that some very simplistic algorithms can’t unambiguously determine a key. But I don’t think it establishes that a more sophisticated algorithm could not. Key center is not just based on chords and notes in a scale. It’s based on the note&#x2F;chord that seems like the place where the music is at rest, or at home. Many songs have non-diatonic chords, but it’s still fairly obvious what key they are in.<p>That said, there are examples where they key is ambiguous even to humans (e.g. Hey Joe [C G D A E], or Sweet Home Alabama [D C G] but disputed whether it’s in G or in D).
评论 #26616414 未加载
评论 #26616168 未加载
评论 #26616303 未加载
stevehiehn大约 4 年前
Related: When I was off work in December I used graph theory to find chord paths through keys:<p><a href="http:&#x2F;&#x2F;signalsandsorcery.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;signalsandsorcery.com&#x2F;</a><p>You can see from the graph that chords exist in multiple keys and you can move from one key to another via these shared chords known as &#x27;pivot chords&#x27;
评论 #26633767 未加载
yesenadam大约 4 年前
Talking about this stuff without saying <i>what kind of music you mean</i> seems a little silly. There is a reference to &quot;one popular song&quot;, and it seems the author is thinking of pop music. But it seems most things that can be said about keys&#x2F;chords in one genre&#x2F;tradition&#x2F;style, don&#x27;t apply to others. And even within genres, things naturally evolve so that old rules no longer apply.
评论 #26618178 未加载
评论 #26617146 未加载
declnz大约 4 年前
&gt; A song could reasonably have a chord progression such as {Am, G, D, Am, G, Dm}, and the inclusion of both {D} and {Dm} would cause conflicts. Given that music theorists cannot agree on this stuff, there doesn&#x27;t seem to be anything a computer can do that is better.<p>Whilst I&#x27;m no expert, I&#x27;m pretty sure we have hundreds of years of examples of borrowed chords [1] for music theorists to agree upon, so yes plenty of things a computer could do better (as per other comments).<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Borrowed_chord" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Borrowed_chord</a>
评论 #26619190 未加载
elihu大约 4 年前
One useful heuristic (at least, the one I usually go to first if I&#x27;m not sure what key a song is in) is that root of the final chord of the song is often the same as the root of the key. I suppose that probably works better for some music traditions than others. Also I believe some songs in a minor key sometimes end by converting the root chord to major.
评论 #26617116 未加载
vkhn大约 4 年前
In college I built a project that could reasonably well predict the key of a given piece based on the distribution of note usage. For example, most pieces written in a major key would have the highest usage of the root, and the dominant of a key.<p>This obviously has a number flaws, but worked remarkably well for western music written between 1600 and 1900.
XCSme大约 4 年前
Is the first example with C and Am correct? It says the first chord of Am scale is A, shouldn&#x27;t it be Am?
评论 #26620434 未加载
评论 #26617127 未加载
评论 #26615919 未加载
RHSman2大约 4 年前
I had never thought about a key of a song being ‘variable’ but being set in stone. Interesting to have a mindset challenge.
bluetwo大约 4 年前
If you can&#x27;t tell the difference, perhaps the answer is both.
justicz大约 4 年前
I definitely thought this was going in a cryptography direction from the title. I actually kind of like the idea of composing music to generate a secret key :)
exabrial大约 4 年前
Awesome. So what key is Revelation Song by Phillips Craig and Dean in?
评论 #26617928 未加载
acmj大约 4 年前
I am no musician. I heard quite a few musicians, with or without innate perfect pitch, can tell the keys in a chord, though maybe not to the 100% accuracy. For example, something like what the kid is doing in this video [1]. I am a bit surprised that this can&#x27;t be done programmatically.<p>[1] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=vXivZlPu0ms&amp;t=175s" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=vXivZlPu0ms&amp;t=175s</a>
评论 #26616359 未加载
评论 #26616402 未加载