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