react-chords icon indicating copy to clipboard operation
react-chords copied to clipboard

Failed to generate some extreme chords

Open muhghazaliakbar opened this issue 2 years ago • 1 comments

I'm trying to generate this chord: https://tombatossals.github.io/react-chords/guitar/C/aug7 by following the chords-db: https://github.com/tombatossals/chords-db/blob/master/src/db/guitar/chords/C/aug7.js#L19-L22 using codesandbox but it's returning error. https://codesandbox.io/s/chords-b-test-l0kln4?file=/src/App.js

Any solution for this?

muhghazaliakbar avatar Feb 08 '23 10:02 muhghazaliakbar

I was able to create Caug7 (v4) with the code below. Code sandbox

 const MyChord = () => {
    const chord = {
      frets: [-1, -1, 1, 4, 2, 3],
      fingers: [0, 0, 1, 4, 2, 3],
      barres: [],
      capo: false,
      baseFret: 10,
    }
    const instrument = {
      strings: 6,
      fretsOnChord: 4,
      name: "Guitar",
      keys: ["C"],
      tunings: {
        standard: ["", "", "", "", "", ""],
      },
    }
    const lite = false // defaults to false if omitted
    return <Chord chord={chord} instrument={instrument} lite={lite} />
  }

kevin-lambda avatar Jul 21 '23 21:07 kevin-lambda