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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Just intonation keyboard – play music without knowing music

331 点作者 ad8e将近 2 年前
This is a keyboard in just intonation. It can play the notes a piano can. The big difference from a piano is that all the notes become consonant. At least, when you want to play a dissonant chord, you are clearly opting in to it because it&#x27;s clear which notes are dissonant to each other. You won&#x27;t bump into a dissonant note by mistake.<p>You can play without knowing any music theory. Hit arbitrary notes with the rhythm you want, and the pitches will work. Not understanding the buttons is fine. Even rolling your elbow around your keyboard is fine.<p>If you are a musician and press the wrong key while playing a song, it will still fit. It will sound like you made an intelligent, conscious choice to play another note, even though you know in your heart it was an accident. Beginner jazz musicians rejoice.<p>It&#x27;s not an AI making choices for you; it&#x27;s just a very elegant interface. What makes this possible is several new discoveries in psychoacoustics about how harmony works. While a piano lays out notes in pitch space, this keyboard is able to lay out notes in consonance space. When you play random notes, they tend to be &quot;close together&quot; on the physical keyboard. Distance on the keyboard maps well to distance in consonance space, so those random notes are close together in consonance space and sound good together.<p>According to Miles Davis, a &quot;wrong&quot; note becomes correct in the right context. If you try to play a wrong note, the purple buttons you press will automatically land you in the right context, even if you don&#x27;t know what that context is yourself. So you can stumble your way through an improv and the keyboard will offer the right notes without needing you to think about it.<p>Harmonic consonance of chords can be read directly off the numbers in the keyboard, which implies that these numbers are a good language to think about music with. It doesn&#x27;t take years of training, just reading the rules. The key harmony insight that you can do on this keyboard, and not on a piano, is to add frequencies linearly (like 400 Hz + 300 Hz). The reason this matters is that linear combinations of frequencies are a major factor of harmony, in lattice tones. So to see how dissonant or consonant a chord is, you want to check how distant it is from a sum or arithmetic progression. On a piano, to do the same, you&#x27;d have to memorize fractional approximations of 2^(N&#x2F;12), then add and subtract these fractions, which is very difficult. For example, how far is 6&#x2F;5 + 4&#x2F;3 from 5&#x2F;2? Hard to say! But if denominators are cleared, it&#x27;s easy to compare 36 40 45: they&#x27;re off by 1 from an arithmetic progression. This also applies to overlapping notes, not just chords. Having all the keys accessible on a piano is very convenient, but this translation layer of 2^(N&#x2F;12) approximation + fractional arithmetic makes it hard to see harmony beyond the pairwise ratios.<p>The subset of playable songs is different from a piano, which means that songs in your existing piano repertoire will snip off some notes. Hardware for thumb keys would fix this, so you could play your existing piano songs in full, plus other songs a piano can&#x27;t play. I don&#x27;t have such hardware so I haven&#x27;t implemented this. The other way is to have two keyboards and a partner.<p>The remaining issue is that there is no sheet music in just intonation. Unfortunately, I have had no success in finding piano sheet music in a common, interpretable format. So while I do have a converter from 12 equal temperament to just intonation, there are no input files to use it with...

18 条评论

zengid将近 2 年前
I want to say first off that this is super cool, and I really applaud you for shipping it. The tones sound pretty great on my machine, and the button pressing is good. I don&#x27;t detect any jank or latency like I frequently do with web-audio.<p>That being said I have a few constructive critiques.<p>First is I wouldn&#x27;t say it&#x27;s intuitive. Having the harmonics ascending from right-to-left breaks my brain. Wait, on second look they are kind of scattered about in a somewhat random way? Why are 5 and 3 so far from each other? I might like it if this was laid out in a lattice or some kind of regular structure. I don&#x27;t doubt that with practice and reading I could learn it but, IMO, if I have to read an instruction manual I&#x27;m already checked out..<p>Second, there needs to be some kind of indication at where I&#x27;m at in terms of the internal state of the multiplied ratios. So if I&#x27;ve stacked on 3 consecutive 2&#x2F;3, the only feedback I get is when I hit a note.. and I might forget where I&#x27;m at in the &quot;pitch space&quot;. You could just have a simple &quot;stack&quot; at the top that shows the last applied ratio, and maybe the final product or quotient next to it.
评论 #37215877 未加载
评论 #37216222 未加载
评论 #37215990 未加载
评论 #37217235 未加载
cscheid将近 2 年前
This is exceedingly cool, thank you for putting it out there.<p>A small suggestion: when you press the purple buttons, it would be neat to see the green numbers change by the multiplier (or have an option to do so). This would let you easily see parts of the keyboard transpose correctly vs not, and what new pitches you get access to. Even sweeter would be a quick animation to show &quot;where the numbers went&quot;.<p>I would also like to be able to have the purple buttons be active only when pressing the keys, so that I could quickly modulate up a just fourth and back. Having to remember where I am in the modulation state is a bit much, and very different from typical musical instruments.<p>But I&#x27;ve been playing with this for a good while, trying to recreate basic stuff like V7 -&gt; I etc and it&#x27;s very cool, thanks again.
评论 #37217329 未加载
评论 #37218239 未加载
aidenn0将近 2 年前
If you are interested in novel keyboard layouts, there are many 2-dimensional chromatic layouts where transposition is isomorphic (i.e. playing in a different key only requires changing where you start). In one notable example, all major and minor triads can be played with a single finger[1], because 5ths and major&#x2F;minor thirds are always adjacent.<p>1: <a href="http:&#x2F;&#x2F;www.shapeofmusic.com&#x2F;note-pattern.php" rel="nofollow noreferrer">http:&#x2F;&#x2F;www.shapeofmusic.com&#x2F;note-pattern.php</a>
评论 #37216824 未加载
评论 #37217158 未加载
zokier将近 2 年前
I think you need far more basic practical examples how to play the thing, just figuring out a random major chord was a hassle and I still have no idea how to play some specific chord like for example the most basic C major chord. And if I understand it correctly, moving from e.g. major to minor chord requires transposing the right hand with the left-hand keys?<p>Of course the instrument having hidden state makes all this far more complicated. Would be neat if the key labels would also indicate the absolute note so I wouldn&#x27;t need to do mental arithmetic here.
评论 #37216256 未加载
评论 #37218737 未加载
评论 #37215487 未加载
HPsquared将近 2 年前
A fun way to improvise without knowing any harmony on a regular keyboard is to stick to the black keys. This is basically a pentatonic scale and doesn&#x27;t have any big dissonances.
评论 #37217693 未加载
Pr0ject217将近 2 年前
This is super cool!<p>It would be awesome to be able to record the notes to a sequencer, and then play them back, optionally sending via Web MIDI API[1], so that one could control an external synthesizer or VST.<p>[1]<a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;API&#x2F;Web_MIDI_API" rel="nofollow noreferrer">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;API&#x2F;Web_MIDI_AP...</a>
评论 #37216543 未加载
dekhn将近 2 年前
Some folks might be interested in listening to modern musicians playing just intonation- <a href="https:&#x2F;&#x2F;lamonteyoung.bandcamp.com&#x2F;album&#x2F;just-stompin" rel="nofollow noreferrer">https:&#x2F;&#x2F;lamonteyoung.bandcamp.com&#x2F;album&#x2F;just-stompin</a> <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;La_Monte_Young" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;La_Monte_Young</a><p>I also like his drone work and have lots of fun with paulstretch.
评论 #37220543 未加载
jcpst将近 2 年前
Fantastic, this is great work. Takes me back to my undergrad days studying Ben Johnston’s JI systems for my own compositions.
ktbwrestler将近 2 年前
This is really interesting and creative! Did you deliberately make some notes sit outside of the standard 440hz diatonic scale? Even when I click your Debussy demo, you’re hitting some notes outside of the normal 440hz scale!
评论 #37215221 未加载
评论 #37214469 未加载
评论 #37214261 未加载
elric超过 1 年前
This is great. And if you&#x27;re into alternative keyboard layouts, Eventida Misha [1] is a Eurorack module with an interesting interval based keyboard, where the keys move up&#x2F;down a certain number of steps in a scale, <i>relative to the previous note</i> that was played. Great fun for improvisation, with no chance of accidental dissonant notes.<p>[1] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=1RS4giQHAUg">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=1RS4giQHAUg</a>
dsp_person将近 2 年前
Very cool! Have you seen music mouse [1]? I wonder in what ways this intonation keyboard concept could be mapped into a 2d touch interface, maybe with some ideas from music mouse. But if it&#x27;s just a single XY pad, I guess it becomes just a piano again but with tuning presets? Or maybe 2 pads could be used...<p>[1] <a href="https:&#x2F;&#x2F;teropa.info&#x2F;musicmouse&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;teropa.info&#x2F;musicmouse&#x2F;</a>
fritzo将近 2 年前
Neat! reminds me of my old web app <a href="https:&#x2F;&#x2F;fritzo.org&#x2F;keys" rel="nofollow noreferrer">https:&#x2F;&#x2F;fritzo.org&#x2F;keys</a>
IndySun将近 2 年前
A very interesting and educational musical experiment. Are you planning to expand, maybe to a plugin? Max4Live would likely be viable. Thank you.
评论 #37200427 未加载
quickthrower2将近 2 年前
Well that was marvellous to play with! Thank you.
93po超过 1 年前
My favorite part of the half life 2 mod called Gary’s Mod was something sort of similar. It was a piano you could sit at and it provided sheet music for popular and nerdy songs using the keys in your typing keyboard. It was a pretty wild and magical experience to be able to play music using your own fingers instantly without having to learn anything new. Granted, you had to know the song in order to know the actual rhythm to which the keys had to be pressed, and you had to experiment a few tries to really understand the flow. But it was fun and easy to do so
msephton将近 2 年前
This is pretty cool. Does this assist with random music generation in any way?
评论 #37215938 未加载
tvararu超过 1 年前
Ah yes, the QWOP piano. An elegant instrument for a more civilised age.
wwarner将近 2 年前
Brain expanded, thanks