Esempio n. 1
0
 private List<Complex[]> ComplexToFrames(Complex[] samples, int frameLength)
 {
     var frames = samples.Batch(frameLength);
     int frameCount = 0;
     int remainder = 0;
     List<Complex[]> complexframes = new List<Complex[]>();
     foreach (var batch in frames)
     {
         remainder = batch.Count();
         frameCount++;
         foreach (var frame in batch)
         {
         }
         complexframes.Add(batch.ToArray());
     }
     return complexframes;
 }