We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e919a2d commit 16acd5aCopy full SHA for 16acd5a
data/03-02-03-01-02-01-19.wav
452 KB
src/Spectrogram.Tests/Wav.cs
@@ -38,5 +38,20 @@ public void Test_WavFile_ReadHal2()
38
plt.PlotSignal(R);
39
plt.SaveFig("hal2.png");
40
}
41
+
42
+ [Test]
43
+ public void Test_WavFile_ReadDoor()
44
+ {
45
+ string wavFilePath = "../../../../../data/03-02-03-01-02-01-19.wav";
46
+ (int sampleRate, double[] L) = WavFile.ReadMono(wavFilePath);
47
+ Assert.AreEqual(48000, sampleRate);
48
49
+ double lengthSec = (double)L.Length / sampleRate;
50
+ Assert.AreEqual(4.471, lengthSec, .5);
51
52
+ var plt = new Plot();
53
+ plt.PlotSignal(L);
54
+ plt.SaveFig("door.png");
55
+ }
56
57
0 commit comments