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;
        }
Example #3
0
 public void Add(Sample s)
 {
     this.samples.Add(s);
 }
Example #4
0
 public void AddAll(Sample[] s)
 {
     this.samples.AddRange(s);
 }
Example #5
0
 public SampleSet(Sample[] samples)
 {
     this.samples = new List<Sample>();
     this.samples.AddRange(samples);
 }