diff --git a/app/app/components/chord-diagram/chord-diagram.tsx b/app/app/components/chord-diagram/chord-diagram.tsx new file mode 100644 index 0000000..1b912f2 --- /dev/null +++ b/app/app/components/chord-diagram/chord-diagram.tsx @@ -0,0 +1,23 @@ +import { getPianoNotes, getGuitarVoicing } from '~/lib/chord-voicing'; +import { PianoKeys } from './piano-keys'; +import { GuitarFretboard } from './guitar-fretboard'; + +export type Instrument = 'piano' | 'guitar'; + +interface Props { + chord: string; + instrument: Instrument; +} + +export function ChordDiagram({ chord, instrument }: Props) { + return ( +
+ {chord} + {instrument === 'piano' ? ( + + ) : ( + + )} +
+ ); +}