public IEnumerable<Chord> GetChords(NoteName name) { string s = @"IV E|---|---|-x-|---| B|---|---|---|---| G|---|---|-x-|---| D|-x-|---|---|---| A|---|---|-x-|---| E|---|---|---|---|"; var fingering = Fingering.Parse(s); var chord1 = new Chord { RootNote = name, Name = name.Name, Fingerings = new Fingering[] { fingering, fingering, fingering, } }; var chord2 = new Chord { RootNote = name, Name = name.Name + "m", Fingerings = new Fingering[] { fingering, fingering, fingering, } }; return new[] { chord1, chord2 }; }
public ChordsItemViewModel(Chord chord) { _chord = chord; }