guitar_chord_library 0.0.2 copy "guitar_chord_library: ^0.0.2" to clipboard
guitar_chord_library: ^0.0.2 copied to clipboard

A perfect simple chord library for guitar and ukulele. Both flat and sharp note usage are supported.

example/lib/main.dart

import 'package:guitar_chord_library/guitar_chord_library.dart';

void main() {
  /// your favour instrument
  /// InstrumentType.guitar
  /// InstrumentType.ukulele
  var instrument = GuitarChordLibrary.instrument(InstrumentType.guitar);

  /// instrument string count
  print(instrument.stringCount);

  /// all marjor keys
  print(instrument.getKeys()); //use sharp
  print(instrument.getKeys(true)); //use flat

  /// all chords by major key
  print(instrument.getChordsByKey('C#')); //use sharp
  print(instrument.getChordsByKey('C#', true)); //use flat

  /// all positions of Cmajor chord
  final chordPostions = instrument.getChordPositions('C', 'major')!;

  for (var position in chordPostions) {
    print(
        'baseFret: ${position.baseFret}\nfrets: ${position.frets}\nfingers: ${position.fingers}\n');
  }
}
3
likes
0
pub points
68%
popularity

Publisher

verified publishercoderverse.org

A perfect simple chord library for guitar and ukulele. Both flat and sharp note usage are supported.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on guitar_chord_library