242 points · by 4lejandrito · 6y ago · 41 comments
It‘s a work in progress but you can already play around with scales and different tunings
Made the front page of HN a couple of years ago too: https://news.ycombinator.com/item?id=18037657
In fact react-guitar is the end result of a very similar project that I never finished.
I needed to reuse the guitar component for another project I am working on now so I decided to make it open source.
Here's mine http://firemeinterns.com/fretter/
I didn't end up finishing the project but created some fun visuals...
https://user-images.githubusercontent.com/42359/88242522-6bb...
https://user-images.githubusercontent.com/42359/88242530-724...
I got a basic page up that lets you draw Freboard shapes (and play sounds using Tone.js) declaratively:
<div class="pattern" data-notes="1, b3, 4^, 5, b7^, 8"></div>
Where the notes represent scale degrees and the caret is a string skip:https://intuitivemusic.com/fretboard.js/
Using a similar framework I also created a page where I attempted to make sense of saxophone fingerings (you can hold down on shapes to hear sounds):
Any chance that the fingering indicators can take text or color? I use that a lot in my current tool. Not to rush you with feature requests or anything :p
You can customise the content of the indicators with the "renderFinger" prop and render whatever you want inside.
See https://github.com/4lejandrito/react-guitar/blob/master/pack...
Feel free to create an issue if that's not enough for you. I'll be more than happy to help.
Except for the stringiest instrument of all: the piano. :)
Edit: _Obviously_ this project looks really cool and I love react so I'll be playing around with it for sure. Props to the author.
Phone screen with multi touch will get you that,
Invite your friends to same network it's even more fun. :)
Thank you for your great work! I see some wonderful potential educational uses for this. If you'd like further feedback, please don't hesitate to get in touch!
Thanks for your comment :)
According to https://en.wikipedia.org/wiki/List_of_guitar_tunings
You might be referring to:
Neil Young -> "B-F-B-E-G-B" or "D-A-D-G-B-D"
Joni Mitchel -> "D-A-D-F-A-D" or "G-G-D-G-B-D"
Which ones are the correct ones?