public Sample GetSample(Note[] input, Note output) { List<double> inputRep = new List<double>(); foreach (var n in input) inputRep.AddRange(GetNoteRepresentation(n)); Sample s = new Sample(inputRep.ToArray(), GetNoteRepresentation(output)); return s; }
public Sample GetSample(Note input, Note output) { Sample s = new Sample(GetNoteRepresentation(input), GetNoteRepresentation(output)); return s; }
public void Add(Sample s) { this.samples.Add(s); }
public void AddAll(Sample[] s) { this.samples.AddRange(s); }
public SampleSet(Sample[] samples) { this.samples = new List<Sample>(); this.samples.AddRange(samples); }