-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fretboard component #1
Comments
Hi @devboell, First of all, thanks a lot for your work! I think a react-fretboard could be very useful (for certain applications ;-) Said that I find two major issues:
<Fretboard fretMatrix={fretMatrixForChord(tuning, width, 'Cmaj7', true)} I would prefer: <Fretboard width={width} tuning={tuning} notes={Tonal.chord("Cmaj7")} showName={true} /> I find that two major advantages:
I hope you find this as constructive advice. I'm open to other suggestions or points of view. |
Hey, thanks for the feedback. I understand your points, and I guess the reason I made it like this is because it is an adaptation of a more interactive, clickable fretboard. Let me explain by addressing your points:
If you check the fretboard trainer, the user is constantly clicking frets, and receiving feedback. With these div boxes it is very clear where exactly he has to click. This is even more important when the user wants to click (or tap on a tablet) as fast as possible. So I made it like this (also because it is easier) and at first I also didn't like it much, but I became quite used to it.
I thought that offering these functions would make it a bit more user friendly. In a way, it makes it less dependant on tonal from the component-consumer perspective, because he/she can just install and use the react-fretboard without having to also install Tonal. But I will think about this some more, maybe it should just stay a display-only fretboard ... I am not sure. I also intend to expand the theming options, like fret border (colour, radius), font-family, font-size. Do you have some ideas of what you want to see included there? (edit: oh wait, you want an svg ui, so that doesn't apply to you :-) |
to make a long story short: the fretMatrix is basically the fretboard's state, which the user might want to keep in the parent component's state or in a redux store. This is useful for an interactive fretboard but maybe less useful for your purposes. |
Hi Dani, |
Wow! Your demo has a much better look right now! 👍 Very nice work! I would like to integrate this into tonal demo. I'll get in touch when I have time to do it! Thanks for sharing! |
Hi, I just finished the first version of a reusable fretboard component.
Please have a look: https://github.com/devboell/react-fretboard
If you have any questions/suggestions or any other feedback, let me know!
The text was updated successfully, but these errors were encountered: