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.

Piano Emulator in Your Terminal

111 pointsby RojerGSalmost 2 years ago

9 comments

JNRowealmost 2 years ago
Somewhat related: textual-paint¹ which uses the same interaction library, and was recently discussed here². I&#x27;m noting this purely because I&#x27;m enjoying the increasing frequency of rich³&#x2F;textual⁴ posts, it hints at a latent desire for computing closer to how <i>I</i> enjoy it ;)<p>¹ <a href="https:&#x2F;&#x2F;github.com&#x2F;1j01&#x2F;textual-paint">https:&#x2F;&#x2F;github.com&#x2F;1j01&#x2F;textual-paint</a><p>² <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36859880">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=36859880</a><p>³ <a href="https:&#x2F;&#x2F;github.com&#x2F;textualize&#x2F;rich">https:&#x2F;&#x2F;github.com&#x2F;textualize&#x2F;rich</a><p>⁴ <a href="https:&#x2F;&#x2F;textual.textualize.io&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;textual.textualize.io&#x2F;</a>
评论 #37072499 未加载
评论 #37077909 未加载
purpleideaalmost 2 years ago
AIUI you need to open your terminal in raw mode if you want to get the full keypress&#x2F;keydown events. But you&#x27;ll have to parse the scancodes yourself. Very doable and kind of necessary if you want to do a terminal app here =D There&#x27;s probably a library that can help you. Good luck!
评论 #37072487 未加载
ale42almost 2 years ago
Funny, reminds me of the old (~1990) MS-DOS based &quot;FM Intelligent Organ&quot; distributed with Sound Blaster cards (cf. <a href="http:&#x2F;&#x2F;www.vgmpf.com&#x2F;Wiki&#x2F;index.php?title=File:Sound_Blaster_-_DOS_-_FM_Organ.png" rel="nofollow noreferrer">http:&#x2F;&#x2F;www.vgmpf.com&#x2F;Wiki&#x2F;index.php?title=File:Sound_Blaster...</a>). Nice to see people doing things in terminals :-)
评论 #37074393 未加载
评论 #37073445 未加载
Jeff_Brownalmost 2 years ago
I was hoping this was an open-source physical model of a piano.<p>Pianoteq has been around for 17 years -- as long as patents last! -- and yet open source still seems to have nothing that comes close.
评论 #37076722 未加载
yborisalmost 2 years ago
Got an error trying to run <i>upiano</i> after installing <i>FluidSynth</i> via <i>brew</i> (brew install fluidsynth)<p>Had to use this technique to make it work: <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;75339618&#x2F;5017391" rel="nofollow noreferrer">https:&#x2F;&#x2F;stackoverflow.com&#x2F;a&#x2F;75339618&#x2F;5017391</a><p>Worked beautifully after.
kzrdudealmost 2 years ago
Because of Linus Åkesson&#x27;s recent blogs and videos I want to make a piano app that plays using &quot;his&quot; accordion style keyboard layout for the notes.<p><a href="http:&#x2F;&#x2F;linusakesson.net&#x2F;commodordion&#x2F;index.php" rel="nofollow noreferrer">http:&#x2F;&#x2F;linusakesson.net&#x2F;commodordion&#x2F;index.php</a>
djmipsalmost 2 years ago
I know it&#x27;s terminal graphics but is it possible to improve the piano keyboard graphic? Just wondering.
imiricalmost 2 years ago
&gt; Note that since the terminal doesn&#x27;t really support key press and release events (it receives a stream of characters instead), there is no way to support two key playing at the same time with the computer keyboard only.<p>Great project, but this seems like a major limitation. Why insist on doing this inside a terminal, when there are many other environments where this is not a problem?
评论 #37073155 未加载
评论 #37072461 未加载
评论 #37075731 未加载
ameliusalmost 2 years ago
Does it support keyboard expression (velocity sensitivity, etc.)?
评论 #37075565 未加载