Ejemplo n.º 1
0
        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]));
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
        public static Chord InputChordGen(int root, TriadShapeEnum shapeEnum)
        {
            var triadShape = new TriadShape(shapeEnum);

            return(new Chord(root, triadShape));
        }