tonal icon indicating copy to clipboard operation
tonal copied to clipboard

Add a new ChordSymbol module

Open danigb opened this issue 4 years ago • 4 comments

Add a module to parse chord symbols. Will replace the actual Chord.tokenize function but implementing chord roots (aka slashed chords).

It should fix most of the issues of #155

danigb avatar Apr 27 '20 21:04 danigb

Would it be nice to have a custom font for tonal js where musical signs get pasted correctly on all browsers? When making Sonid I ran into the issue that the flat/sharp (and others) signs had different spacing and sizes on different OSses.

After a bit of experimenting I found that using a custom font with svg glyphs and setting them in a span with css content solved the issue. It might nice to include a property which pastes names with musical signs inside all notes/chords/scales objects. Although, come to think of it, it would have to be multilanguage aswell...

martijnmichel avatar May 15 '20 18:05 martijnmichel

Would it be nice to have a custom font for tonal js where musical signs get pasted correctly on all browsers?

Maybe this one: https://github.com/larsenwork/monomusic

Euthymious avatar May 25 '20 06:05 Euthymious

Hello, Not sure how well it fits your use case but this lib can parse chord-symbols into intervals: https://github.com/no-chris/chord-symbol Let me know if any interest, I could assist with the integration

no-chris avatar Aug 31 '20 09:08 no-chris

Hi Chris,

You library looks great! Congrats. Anyway, I think it's too complex for what I had in mind. Also some of functionality overlaps with tonal (interval to semitones, note names to name a few) so I think it's better to keep them separated.

Good work and thanks for sharing

danigb avatar Sep 23 '20 16:09 danigb