Example #1
0
        private static void MixFiles()
        {
            var file1   = Path.Combine(soundLibraryDir, @"background\12693__connum__melancholic-burble-in-f-major.mp3");
            var file2   = Path.Combine(soundLibraryDir, @"crowd_lough\25296__freesound__laughs-ses2.wav");
            var outFile = Path.Combine(filesDir, "out_mixed.wav");

            MusicFileOperations.OverlapFiles(file1, file2, 10, outFile);
        }
Example #2
0
        private static void FouriesForthAndBack()
        {
            var soundArray = MusicFileOperations.GetArraysFromFile(Path.Combine(filesDir, "short.wav"));
            var math       = new MathOperations();
            var outArray   = new List <float[]>();
            //math.DoSomeFourier(soundArray, outArray);
            var res = math.DoFourierForthAndBack(soundArray);

            MusicFileOperations.SaveArraysToFile(Path.Combine(filesDir, "short_out.wav"), res);
        }