public static Chord ChordBuilder(int root, TriadShape triad) { if (triad.Shape == null || triad.Shape.Count() < 3) { throw new IndexOutOfRangeException(); } return(new Chord(root + triad.Shape[0], root + triad.Shape[1], root + triad.Shape[2])); }
public Chord(int root, TriadShape triad, int?color = null) { Notes = new List <int>( new int[] { root + triad.Shape[0], root + triad.Shape[1], root + triad.Shape[2] }); if (color != null) { Notes.Add(root + color.Value); } }
public static Chord InputChordGen(int root, TriadShapeEnum shapeEnum) { var triadShape = new TriadShape(shapeEnum); return(new Chord(root, triadShape)); }