private Note(int fret, int this_string, MultiPosition position, Length len, ModelCollection <IEffect> collection) { Fret = fret; String = this_string; Position = position; Length = len; ModelCollection = collection; }
public static Note createInstance(int?fret, int?this_string, MultiPosition position, Length len) { if (fret == null || this_string == null || position == null || len == null) { return(null); } var collection = new ModelCollection <IEffect>(); return(new Note((int)fret, (int)this_string, position, len, collection)); }
new public static NoteChord createInstance(int?pos, Position measure_position, Length length) { if (pos == null || measure_position == null || length == null) { return(null); } var position = new MultiPosition(measure_position, (int)pos, false); return(new NoteChord(position, length, new ModelCollection <Note>())); }
public static Chord createInstance(int?pos, Position measure_position, Length length) { if (pos == null || measure_position == null || length == null) { return(null); } var position = new MultiPosition(measure_position, (int)pos, false); return(new Chord(position, length)); }
private NoteChord(MultiPosition position, Length length, ModelCollection <Note> collection) : base(position, length) { ModelCollection = collection; }
protected Chord(MultiPosition position, Length length) { Position = position; Length = length; }