WaveDub.cs 702 B

12345678910111213141516171819202122232425262728
  1. using System.Collections.Generic;
  2. using System.Drawing;
  3. namespace SongVocalIsolateAutomation.UI
  4. {
  5. internal class WaveDub
  6. {
  7. public IReadOnlyList<float> SamplesI { get; }
  8. public IReadOnlyList<float> SamplesV { get; }
  9. public int OffsetI { get; set; }
  10. public int Channels { get; }
  11. public int SampleRate { get; }
  12. public int Length => SamplesV.Count;
  13. public WaveDub(IReadOnlyList<float> iSamples, IReadOnlyList<float> samplesV, int channels = 2, int sampleRate = 44100)
  14. {
  15. SamplesI = iSamples;
  16. SamplesV = samplesV;
  17. Channels = channels;
  18. SampleRate = sampleRate;
  19. }
  20. }
  21. }