Exemplo n.º 1
0
        public static void ExportWAVSamples(string fullPath, int rate)
        {
            byte[][] samples = new byte[BRRSamples.Length][];
            int      i       = 0;

            foreach (var brr in BRRSamples)
            {
                samples[i++] = BRR.BRRToWAV(brr.Sample, rate);
            }
            Do.Export(samples,
                      fullPath + "\\" + LazyShell.Model.GetFileNameWithoutPath() + " - WAV Samples\\" + "wav-sample",
                      "SAMPLE", true);
        }
Exemplo n.º 2
0
 private void RefreshWAVBuffer()
 {
     wav  = BRR.BRRToWAV(sample.Sample, sample.Rate);
     loop = BRR.BRRToWAV(sample.Sample, sample.Rate, sample.LoopStart);
     picture.Invalidate();
 }
Exemplo n.º 3
0
 public static void ExportWAVSample(string fullPath, int index, int rate)
 {
     Do.Export(BRR.BRRToWAV(BRRSamples[index].Sample, rate),
               "wav-sample-" + index.ToString("d3") + ".wav", fullPath);
 }