[beast/bug-433531] Added tests for play-types plain-wave-1 and plain-wave-2.
- From: Stefan Westerfeld <stw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast/bug-433531] Added tests for play-types plain-wave-1 and plain-wave-2.
- Date: Thu, 4 Mar 2010 10:34:12 +0000 (UTC)
commit 9e9e730f67d557164821fb652e28d6f003149a9c
Author: Stefan Westerfeld <stefan space twc de>
Date: Thu Mar 4 11:41:33 2010 +0100
Added tests for play-types plain-wave-1 and plain-wave-2.
tests/audio/Makefile.am | 20 +++++
tests/audio/plain-wave-1-test.bse | 36 ++++++++++
tests/audio/plain-wave-1-test.ref | 124 +++++++++++++++++++++++++++++++++
tests/audio/plain-wave-2-test.bse | 36 ++++++++++
tests/audio/plain-wave-2-test.ref | 124 +++++++++++++++++++++++++++++++++
tests/audio/pseudo-square-env.bsewave | Bin 0 -> 4754 bytes
tests/audio/pseudo-stereo-env.bsewave | Bin 0 -> 6699 bytes
7 files changed, 340 insertions(+), 0 deletions(-)
---
diff --git a/tests/audio/Makefile.am b/tests/audio/Makefile.am
index d1155c9..6429344 100644
--- a/tests/audio/Makefile.am
+++ b/tests/audio/Makefile.am
@@ -191,6 +191,26 @@ adsr-wave-2-test:
$(BSEFCOMPARE) $(srcdir)/adsr-wave-2-test.ref $(@F).tmp --threshold 99.99
rm -f $(@F).tmp $(@F).wav
+# a test for play-type=plain-wave-1
+FEATURE_TESTS += plain-wave-1-test
+EXTRA_DIST += plain-wave-1-test.bse plain-wave-1-test.ref
+plain-wave-1-test:
+ $(BSE2WAV) $(srcdir)/plain-wave-1-test.bse $(@F).wav
+ $(BSEFEXTRACT) $(@F).wav --cut-zeros --channel 0 --avg-spectrum --spectrum --avg-energy --end-time > $(@F).tmp
+ $(BSEFEXTRACT) $(@F).wav --cut-zeros --channel 1 --avg-spectrum --spectrum --avg-energy --end-time >> $(@F).tmp
+ $(BSEFCOMPARE) $(srcdir)/plain-wave-1-test.ref $(@F).tmp --threshold 99.99
+ rm -f $(@F).tmp $(@F).wav
+
+# a test for play-type=plain-wave-2
+FEATURE_TESTS += plain-wave-2-test
+EXTRA_DIST += plain-wave-2-test.bse plain-wave-2-test.ref
+plain-wave-2-test:
+ $(BSE2WAV) $(srcdir)/plain-wave-2-test.bse $(@F).wav
+ $(BSEFEXTRACT) $(@F).wav --cut-zeros --channel 0 --avg-spectrum --spectrum --avg-energy --end-time > $(@F).tmp
+ $(BSEFEXTRACT) $(@F).wav --cut-zeros --channel 1 --avg-spectrum --spectrum --avg-energy --end-time >> $(@F).tmp
+ $(BSEFCOMPARE) $(srcdir)/plain-wave-2-test.ref $(@F).tmp --threshold 99.99
+ rm -f $(@F).tmp $(@F).wav
+
# the BEAST demo song
FEATURE_TESTS += partymonster-test
EXTRA_DIST += partymonster.ref
diff --git a/tests/audio/plain-wave-1-test.bse b/tests/audio/plain-wave-1-test.bse
new file mode 100644
index 0000000..368a13c
--- /dev/null
+++ b/tests/audio/plain-wave-1-test.bse
@@ -0,0 +1,36 @@
+; BseProject
+
+(bse-version "0.7.2")
+
+(container-child "BseWaveRepo::Wave-Repository"
+ (modification-time "2010-03-04 10:31:18")
+ (creation-time "2010-03-03 16:14:41")
+ (license "Creative Commons Attribution 2.5 (http://creativecommons.org/licenses/by/2.5/)")
+ (author "Stefan Westerfeld")
+ (container-child "BseWave::pseudo-square-env"
+ (load-wave "pseudo-square-env.bsewave" "pseudo-square-env")))
+(container-child "BseSong::Unnamed"
+ (bpm 120)
+ (denominator 4)
+ (numerator 4)
+ (tpqn 384)
+ (modification-time "2010-03-04 10:31:18")
+ (creation-time "2010-03-03 16:14:59")
+ (license "Creative Commons Attribution 2.5 (http://creativecommons.org/licenses/by/2.5/)")
+ (author "Stefan Westerfeld")
+ (container-child "BsePart::Part-1"
+ (n-channels 1)
+ (insert-notes 0
+ (0x00000 0x017 57)
+ (0x00180 0x47f 60)
+ (0x00300 0x017 64)
+ (0x00480 0x180 69)))
+ (container-child "BseBus::Master-1"
+ (master-output #t)
+ (right-volume 1)
+ (left-volume 1)
+ (bus-input (link 1 "Track-01")))
+ (container-child "BseTrack::Track-01"
+ (n-voices 16)
+ (wave (link 2 "Wave-Repository:pseudo-square-env"))
+ (insert-part 0 (link 1 "Part-1"))))
diff --git a/tests/audio/plain-wave-1-test.ref b/tests/audio/plain-wave-1-test.ref
new file mode 100644
index 0000000..171194a
--- /dev/null
+++ b/tests/audio/plain-wave-1-test.ref
@@ -0,0 +1,124 @@
+# this output was generated by bsefextract 0.7.2 from channel 0 in file plain-wave-1-test.wav
+#
+# --end-time: signal end time in ms (last non-zero sample)
+end_time = 1613.66667;
+# --spectrum: generate 30ms sliced frequency spectrums
+spectrum[51,15] = {
+ { 0.000262926398 0.000124788661 0.000376887415 0.0248346781 0.251508344 0.000960988558 0.0806435309 0.0413237605 0.0365755537 0.0202228502 0.00935432597 0.00320835585 3.20639153e-05 7.90854057e-05 0.000451236603 }
+ { 7.71328607e-05 2.95397881e-05 5.88566315e-05 0.0166251409 0.207757495 0.00033430652 0.061262775 0.0306600687 0.0297190859 0.0169768464 0.00791415755 0.00273271798 3.08368428e-05 7.30543769e-05 0.000387692398 }
+ { 1.98978212e-05 2.35697081e-05 5.60004164e-05 0.0137340683 0.16900651 0.000156362852 0.0495940955 0.0244263176 0.0227589335 0.0134881218 0.00635549594 0.00200410452 3.08359601e-05 6.74396439e-05 0.000316723102 }
+ { 1.03797634e-05 1.14040887e-05 3.59158521e-05 0.0108453437 0.128292478 0.000112657085 0.03658801 0.0190554206 0.0178471995 0.0101505502 0.00497437634 0.00153752261 2.95908633e-05 6.44547412e-05 0.0002329431 }
+ { 1.53457854e-05 1.73343318e-05 5.01694711e-05 0.0081017951 0.0892844542 0.000146021832 0.0263647018 0.0130657194 0.0125717077 0.00731288777 0.0033211641 0.00110705062 3.08090776e-05 5.65148773e-05 0.000154350994 }
+ { 1.4790932e-05 3.283946e-06 1.62585904e-05 0.00492142453 0.0493467568 7.85290398e-05 0.0152216245 0.00731362995 0.00704614912 0.00408866123 0.00184874886 0.000634856477 3.0603378e-05 5.23551497e-05 8.68484336e-05 }
+ { 3.09243074e-05 1.9236668e-05 9.88480355e-05 0.00369571951 0.0149990399 0.000292599241 0.00554077958 0.00244389725 0.00252121576 0.00132259563 0.000629363927 0.000231920756 2.68687149e-05 4.10836902e-05 2.64174778e-05 }
+ { 9.26671872e-06 4.92327519e-06 2.2743433e-05 0.000247257378 0.000428446255 5.52165028e-05 0.000233217085 0.000103644122 9.14903331e-05 6.08564687e-05 3.30664202e-05 1.3743471e-05 2.59354735e-06 3.6699551e-06 1.50521454e-06 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 5.41890995e-06 4.42557169e-06 1.31908373e-05 3.5137368e-05 6.01356111e-05 5.41666349e-05 2.88258009e-05 3.04647277e-05 2.23625357e-05 1.61696065e-05 8.67743519e-06 3.99987609e-06 1.04105679e-06 3.65531961e-07 2.77714064e-08 }
+ { 0.000436918211 0.000194081045 0.000392509896 0.00369619494 0.0805684907 0.00478534699 0.0221784901 0.0124287688 0.00939845571 0.0107030826 0.00450674007 0.00195162689 0.000395750922 0.00020699515 1.10818319e-05 }
+ { 0.000570749446 0.000122259031 0.000688812104 0.0042039725 0.303277728 0.00487316834 0.0854433068 0.0485605261 0.0305799427 0.0349910237 0.0141980571 0.00556193468 0.00101928169 0.000733494272 4.55638445e-05 }
+ { 0.000131741283 3.79622935e-05 7.64484138e-05 0.000336334212 0.240152356 0.00134423186 0.0653457512 0.0347187287 0.0212346413 0.0268308391 0.0105459424 0.00447272993 0.000827349839 0.000577401153 3.61192177e-05 }
+ { 1.72173789e-05 1.65284469e-05 4.62463285e-05 0.000121112747 0.189023813 0.000616476403 0.0518540415 0.0253016897 0.0145661834 0.0202298935 0.00849181605 0.00337726733 0.000603550579 0.000474278523 3.08129226e-05 }
+ { 9.04459219e-06 9.91062602e-06 3.57459984e-05 0.000484302188 0.137266929 0.00048523915 0.0365204395 0.01895782 0.0111137899 0.0148657637 0.00600829581 0.00262642419 0.000378378316 0.000344739338 2.28874567e-05 }
+ { 1.17433213e-05 8.44715843e-06 3.14475134e-05 0.000261261198 0.0877593127 0.000406665896 0.0240244682 0.0120564564 0.00731232608 0.00961065266 0.00377965877 0.00165846893 0.000278340509 0.000237444671 1.65459936e-05 }
+ { 2.0878951e-05 1.09717362e-05 2.27235984e-05 0.000223875217 0.0401623487 0.000343645851 0.0113797909 0.00540620601 0.0033379841 0.00440723936 0.00181150256 0.000726198597 0.000158793182 0.000120028265 1.05598584e-05 }
+ { 2.16882866e-05 1.08845203e-05 4.20326645e-05 0.000339605751 0.00580617343 0.000410772737 0.00188740661 0.000886647331 0.000636919433 0.00067776201 0.000320884121 0.000126869819 3.23013156e-05 2.63380609e-05 3.53808967e-06 }
+ { 1.50521147e-08 6.0019478e-09 1.19378537e-08 2.05549096e-08 2.82018183e-08 4.32338418e-08 5.24643941e-08 4.36274448e-08 2.08198585e-08 2.76989543e-08 3.25622146e-08 2.21409589e-08 8.12237188e-09 3.39017978e-09 6.85780656e-10 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 2.60028813e-05 2.49858975e-05 5.38272499e-05 0.000203979403 0.00281318709 0.00376125128 0.000313563512 0.00184294879 0.000975036989 0.00101029787 0.000594986524 0.000263271674 9.79069287e-05 1.29567847e-05 1.51399288e-06 }
+ { 0.000643498167 0.000134746842 0.000490425749 0.00113243374 0.0785034679 0.135246163 0.0025200371 0.0595398092 0.0308021935 0.0315363636 0.0178805347 0.00832098996 0.00268920918 0.000441884046 3.99398967e-05 }
+ { 0.000228582208 7.22901787e-05 0.000211471717 0.000574756009 0.0767113281 0.204533195 0.00167896193 0.0806968599 0.0420425373 0.037900416 0.0211400806 0.0101788965 0.00335709033 0.000594463371 5.41843192e-05 }
+ { 2.06344112e-05 1.25763234e-05 3.3297241e-05 7.51419134e-05 0.0487034824 0.148378952 0.000174210249 0.0546965276 0.0269384002 0.0251972025 0.0146229631 0.00743848492 0.00240403961 0.000433999279 4.11324611e-05 }
+ { 5.64864531e-06 5.84234173e-06 2.17828583e-05 9.33316971e-05 0.0337065846 0.0994376443 9.6057183e-05 0.0352717597 0.0183217554 0.0173685088 0.00995229321 0.00511217962 0.0015352845 0.000303421622 2.88646559e-05 }
+ { 8.1819194e-06 4.80578353e-06 1.46466503e-05 4.57685141e-05 0.0190197562 0.0517938846 7.95401655e-05 0.0195665601 0.00980110063 0.00934998722 0.00539118306 0.00261681562 0.000863797063 0.00017257915 1.73053071e-05 }
+ { 2.47178535e-05 5.86138348e-06 2.82744558e-05 0.000151962763 0.00727142066 0.0130636742 0.000261013426 0.00594487753 0.00266683036 0.00271690074 0.00147377196 0.000717056513 0.00026004394 5.6379517e-05 6.56329907e-06 }
+ { 2.27082105e-06 1.07914319e-06 2.68350778e-06 1.24722169e-05 0.00012490822 0.000160335384 1.92828105e-05 9.57027757e-05 4.26979295e-05 3.77007677e-05 2.43346575e-05 1.32631649e-05 5.22034632e-06 1.49939369e-06 1.66452343e-07 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0.000143793676 6.00404918e-05 0.000119272846 0.000234867404 0.00141412956 0.0464975952 0.00312918742 0.00985755953 0.00541958443 0.0102041794 0.00516447957 0.00343578654 0.00125607854 0.000251058869 1.98585316e-06 }
+ { 0.000539580821 0.000103082232 0.000159128143 0.000739272322 0.00329480666 0.318191746 0.0072014535 0.0774901558 0.0231074949 0.0726027956 0.0305844339 0.0214833773 0.00721653275 0.00127208327 9.23215758e-06 }
+ { 5.44627653e-05 1.46247048e-05 4.63204257e-05 7.82366095e-05 0.00022184935 0.210696658 0.0017008746 0.0569812053 0.00394499835 0.0461664525 0.0188209683 0.0136784104 0.00487517266 0.000918673626 8.27924325e-06 }
+};
+# --avg-spectrum: average frequency spectrum
+avg_spectrum[15] = { 6.59500821e-05 2.13625926e-05 6.36466663e-05 0.00188332288 0.0444408973 0.0244552459 0.0115938331 0.0137004662 0.00767444297 0.0088244437 0.00411279089 0.00206341857 0.000558223013 0.000149367552 4.00788752e-05 };
+# --avg-energy: average signal energy in dB
+avg_energy = -15.6846377;
+# this output was generated by bsefextract 0.7.2 from channel 1 in file plain-wave-1-test.wav
+#
+# --end-time: signal end time in ms (last non-zero sample)
+end_time = 1613.66667;
+# --spectrum: generate 30ms sliced frequency spectrums
+spectrum[51,15] = {
+ { 0.000262926398 0.000124788661 0.000376887415 0.0248346781 0.251508344 0.000960988558 0.0806435309 0.0413237605 0.0365755537 0.0202228502 0.00935432597 0.00320835585 3.20639153e-05 7.90854057e-05 0.000451236603 }
+ { 7.71328607e-05 2.95397881e-05 5.88566315e-05 0.0166251409 0.207757495 0.00033430652 0.061262775 0.0306600687 0.0297190859 0.0169768464 0.00791415755 0.00273271798 3.08368428e-05 7.30543769e-05 0.000387692398 }
+ { 1.98978212e-05 2.35697081e-05 5.60004164e-05 0.0137340683 0.16900651 0.000156362852 0.0495940955 0.0244263176 0.0227589335 0.0134881218 0.00635549594 0.00200410452 3.08359601e-05 6.74396439e-05 0.000316723102 }
+ { 1.03797634e-05 1.14040887e-05 3.59158521e-05 0.0108453437 0.128292478 0.000112657085 0.03658801 0.0190554206 0.0178471995 0.0101505502 0.00497437634 0.00153752261 2.95908633e-05 6.44547412e-05 0.0002329431 }
+ { 1.53457854e-05 1.73343318e-05 5.01694711e-05 0.0081017951 0.0892844542 0.000146021832 0.0263647018 0.0130657194 0.0125717077 0.00731288777 0.0033211641 0.00110705062 3.08090776e-05 5.65148773e-05 0.000154350994 }
+ { 1.4790932e-05 3.283946e-06 1.62585904e-05 0.00492142453 0.0493467568 7.85290398e-05 0.0152216245 0.00731362995 0.00704614912 0.00408866123 0.00184874886 0.000634856477 3.0603378e-05 5.23551497e-05 8.68484336e-05 }
+ { 3.09243074e-05 1.9236668e-05 9.88480355e-05 0.00369571951 0.0149990399 0.000292599241 0.00554077958 0.00244389725 0.00252121576 0.00132259563 0.000629363927 0.000231920756 2.68687149e-05 4.10836902e-05 2.64174778e-05 }
+ { 9.26671872e-06 4.92327519e-06 2.2743433e-05 0.000247257378 0.000428446255 5.52165028e-05 0.000233217085 0.000103644122 9.14903331e-05 6.08564687e-05 3.30664202e-05 1.3743471e-05 2.59354735e-06 3.6699551e-06 1.50521454e-06 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 5.41890995e-06 4.42557169e-06 1.31908373e-05 3.5137368e-05 6.01356111e-05 5.41666349e-05 2.88258009e-05 3.04647277e-05 2.23625357e-05 1.61696065e-05 8.67743519e-06 3.99987609e-06 1.04105679e-06 3.65531961e-07 2.77714064e-08 }
+ { 0.000436918211 0.000194081045 0.000392509896 0.00369619494 0.0805684907 0.00478534699 0.0221784901 0.0124287688 0.00939845571 0.0107030826 0.00450674007 0.00195162689 0.000395750922 0.00020699515 1.10818319e-05 }
+ { 0.000570749446 0.000122259031 0.000688812104 0.0042039725 0.303277728 0.00487316834 0.0854433068 0.0485605261 0.0305799427 0.0349910237 0.0141980571 0.00556193468 0.00101928169 0.000733494272 4.55638445e-05 }
+ { 0.000131741283 3.79622935e-05 7.64484138e-05 0.000336334212 0.240152356 0.00134423186 0.0653457512 0.0347187287 0.0212346413 0.0268308391 0.0105459424 0.00447272993 0.000827349839 0.000577401153 3.61192177e-05 }
+ { 1.72173789e-05 1.65284469e-05 4.62463285e-05 0.000121112747 0.189023813 0.000616476403 0.0518540415 0.0253016897 0.0145661834 0.0202298935 0.00849181605 0.00337726733 0.000603550579 0.000474278523 3.08129226e-05 }
+ { 9.04459219e-06 9.91062602e-06 3.57459984e-05 0.000484302188 0.137266929 0.00048523915 0.0365204395 0.01895782 0.0111137899 0.0148657637 0.00600829581 0.00262642419 0.000378378316 0.000344739338 2.28874567e-05 }
+ { 1.17433213e-05 8.44715843e-06 3.14475134e-05 0.000261261198 0.0877593127 0.000406665896 0.0240244682 0.0120564564 0.00731232608 0.00961065266 0.00377965877 0.00165846893 0.000278340509 0.000237444671 1.65459936e-05 }
+ { 2.0878951e-05 1.09717362e-05 2.27235984e-05 0.000223875217 0.0401623487 0.000343645851 0.0113797909 0.00540620601 0.0033379841 0.00440723936 0.00181150256 0.000726198597 0.000158793182 0.000120028265 1.05598584e-05 }
+ { 2.16882866e-05 1.08845203e-05 4.20326645e-05 0.000339605751 0.00580617343 0.000410772737 0.00188740661 0.000886647331 0.000636919433 0.00067776201 0.000320884121 0.000126869819 3.23013156e-05 2.63380609e-05 3.53808967e-06 }
+ { 1.50521147e-08 6.0019478e-09 1.19378537e-08 2.05549096e-08 2.82018183e-08 4.32338418e-08 5.24643941e-08 4.36274448e-08 2.08198585e-08 2.76989543e-08 3.25622146e-08 2.21409589e-08 8.12237188e-09 3.39017978e-09 6.85780656e-10 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 2.60028813e-05 2.49858975e-05 5.38272499e-05 0.000203979403 0.00281318709 0.00376125128 0.000313563512 0.00184294879 0.000975036989 0.00101029787 0.000594986524 0.000263271674 9.79069287e-05 1.29567847e-05 1.51399288e-06 }
+ { 0.000643498167 0.000134746842 0.000490425749 0.00113243374 0.0785034679 0.135246163 0.0025200371 0.0595398092 0.0308021935 0.0315363636 0.0178805347 0.00832098996 0.00268920918 0.000441884046 3.99398967e-05 }
+ { 0.000228582208 7.22901787e-05 0.000211471717 0.000574756009 0.0767113281 0.204533195 0.00167896193 0.0806968599 0.0420425373 0.037900416 0.0211400806 0.0101788965 0.00335709033 0.000594463371 5.41843192e-05 }
+ { 2.06344112e-05 1.25763234e-05 3.3297241e-05 7.51419134e-05 0.0487034824 0.148378952 0.000174210249 0.0546965276 0.0269384002 0.0251972025 0.0146229631 0.00743848492 0.00240403961 0.000433999279 4.11324611e-05 }
+ { 5.64864531e-06 5.84234173e-06 2.17828583e-05 9.33316971e-05 0.0337065846 0.0994376443 9.6057183e-05 0.0352717597 0.0183217554 0.0173685088 0.00995229321 0.00511217962 0.0015352845 0.000303421622 2.88646559e-05 }
+ { 8.1819194e-06 4.80578353e-06 1.46466503e-05 4.57685141e-05 0.0190197562 0.0517938846 7.95401655e-05 0.0195665601 0.00980110063 0.00934998722 0.00539118306 0.00261681562 0.000863797063 0.00017257915 1.73053071e-05 }
+ { 2.47178535e-05 5.86138348e-06 2.82744558e-05 0.000151962763 0.00727142066 0.0130636742 0.000261013426 0.00594487753 0.00266683036 0.00271690074 0.00147377196 0.000717056513 0.00026004394 5.6379517e-05 6.56329907e-06 }
+ { 2.27082105e-06 1.07914319e-06 2.68350778e-06 1.24722169e-05 0.00012490822 0.000160335384 1.92828105e-05 9.57027757e-05 4.26979295e-05 3.77007677e-05 2.43346575e-05 1.32631649e-05 5.22034632e-06 1.49939369e-06 1.66452343e-07 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0.000143793676 6.00404918e-05 0.000119272846 0.000234867404 0.00141412956 0.0464975952 0.00312918742 0.00985755953 0.00541958443 0.0102041794 0.00516447957 0.00343578654 0.00125607854 0.000251058869 1.98585316e-06 }
+ { 0.000539580821 0.000103082232 0.000159128143 0.000739272322 0.00329480666 0.318191746 0.0072014535 0.0774901558 0.0231074949 0.0726027956 0.0305844339 0.0214833773 0.00721653275 0.00127208327 9.23215758e-06 }
+ { 5.44627653e-05 1.46247048e-05 4.63204257e-05 7.82366095e-05 0.00022184935 0.210696658 0.0017008746 0.0569812053 0.00394499835 0.0461664525 0.0188209683 0.0136784104 0.00487517266 0.000918673626 8.27924325e-06 }
+};
+# --avg-spectrum: average frequency spectrum
+avg_spectrum[15] = { 6.59500821e-05 2.13625926e-05 6.36466663e-05 0.00188332288 0.0444408973 0.0244552459 0.0115938331 0.0137004662 0.00767444297 0.0088244437 0.00411279089 0.00206341857 0.000558223013 0.000149367552 4.00788752e-05 };
+# --avg-energy: average signal energy in dB
+avg_energy = -15.6846377;
diff --git a/tests/audio/plain-wave-2-test.bse b/tests/audio/plain-wave-2-test.bse
new file mode 100644
index 0000000..13e5d63
--- /dev/null
+++ b/tests/audio/plain-wave-2-test.bse
@@ -0,0 +1,36 @@
+; BseProject
+
+(bse-version "0.7.2")
+
+(container-child "BseWaveRepo::Wave-Repository"
+ (modification-time "2010-03-04 10:33:32")
+ (creation-time "2010-03-03 16:14:41")
+ (license "Creative Commons Attribution 2.5 (http://creativecommons.org/licenses/by/2.5/)")
+ (author "Stefan Westerfeld")
+ (container-child "BseWave::pseudo-stereo-env"
+ (load-wave "pseudo-stereo-env.bsewave" "pseudo-stereo-env")))
+(container-child "BseSong::Unnamed"
+ (bpm 120)
+ (denominator 4)
+ (numerator 4)
+ (tpqn 384)
+ (modification-time "2010-03-04 10:33:32")
+ (creation-time "2010-03-03 16:14:59")
+ (license "Creative Commons Attribution 2.5 (http://creativecommons.org/licenses/by/2.5/)")
+ (author "Stefan Westerfeld")
+ (container-child "BsePart::Part-1"
+ (n-channels 1)
+ (insert-notes 0
+ (0x00000 0x41f 57)
+ (0x00180 0x017 60)
+ (0x00300 0x02f 64)
+ (0x00480 0x180 69)))
+ (container-child "BseBus::Master-1"
+ (master-output #t)
+ (right-volume 1)
+ (left-volume 1)
+ (bus-input (link 1 "Track-01")))
+ (container-child "BseTrack::Track-01"
+ (n-voices 16)
+ (wave (link 2 "Wave-Repository:pseudo-stereo-env"))
+ (insert-part 0 (link 1 "Part-1"))))
diff --git a/tests/audio/plain-wave-2-test.ref b/tests/audio/plain-wave-2-test.ref
new file mode 100644
index 0000000..07bf60f
--- /dev/null
+++ b/tests/audio/plain-wave-2-test.ref
@@ -0,0 +1,124 @@
+# this output was generated by bsefextract 0.7.2 from channel 0 in file plain-wave-2-test.wav
+#
+# --end-time: signal end time in ms (last non-zero sample)
+end_time = 1613.79167;
+# --spectrum: generate 30ms sliced frequency spectrums
+spectrum[51,15] = {
+ { 0.00054899871 0.000277701782 0.00089824999 0.0257816667 0.252128192 0.00354086052 0.0799839649 0.0435335283 0.040498974 0.0260220148 0.0138216295 0.00594173618 3.23613649e-05 8.02805129e-05 0.000449542868 }
+ { 0.00267760705 0.000810034535 0.000826275653 0.019048681 0.206390972 0.00657725997 0.0688018248 0.0426626288 0.0364204474 0.0238269173 0.0134954467 0.00574355502 3.28509123e-05 7.31853167e-05 0.000397350168 }
+ { 0.000362747344 8.4900986e-05 0.00030711228 0.0147987291 0.167931238 0.000729142311 0.0497941009 0.0252644742 0.0254250997 0.015715119 0.00747220799 0.00290738756 2.96691927e-05 6.77493676e-05 0.000319474106 }
+ { 0.000138650193 2.34600228e-05 7.96228836e-05 0.0107379548 0.128155575 0.000247310453 0.0385418605 0.0191061743 0.0184225938 0.01101594 0.00544844983 0.00214380581 3.02855341e-05 6.2085022e-05 0.000233292318 }
+ { 1.40709166e-05 2.11466217e-05 3.15027577e-05 0.00774396964 0.0884987516 5.74723344e-05 0.0262704362 0.0128676607 0.0123308882 0.00740185862 0.00355378999 0.00133561197 2.90617993e-05 5.38044522e-05 0.000155002977 }
+ { 1.99327957e-05 1.03931973e-05 2.00096699e-05 0.005204382 0.0494557437 9.47773693e-05 0.0148335224 0.00733263334 0.00717118514 0.00433705717 0.00197057496 0.000893900931 2.95900778e-05 5.32413565e-05 8.62628446e-05 }
+ { 6.37757568e-05 3.3669864e-05 0.000106273552 0.00366114265 0.015246458 0.000332662447 0.00542243321 0.00256339295 0.00241512862 0.00152406668 0.000771729636 0.00038710093 3.21306833e-05 3.88406151e-05 2.66275939e-05 }
+ { 1.7452266e-05 8.64950839e-06 2.86265451e-05 0.000263787431 0.000468493824 6.84096029e-05 0.000229514754 0.00011641335 9.61193328e-05 6.89072631e-05 3.6170755e-05 3.16409965e-05 4.48006391e-06 3.55814495e-06 1.60122927e-06 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 5.41185627e-06 4.4224907e-06 1.31836942e-05 3.51256957e-05 6.0134724e-05 5.41925822e-05 2.88225124e-05 3.04618673e-05 2.2387924e-05 1.61643633e-05 9.78094107e-06 4.08861582e-06 1.00712167e-06 3.6465776e-07 3.06312627e-08 }
+ { 0.000298848018 0.000337526629 0.000511653625 0.0038725061 0.0808226808 0.00488393408 0.0241811182 0.0127543334 0.00951294019 0.0105037323 0.00522078378 0.00256338521 0.00049772778 0.00020628873 1.07603041e-05 }
+ { 0.000540250129 0.000339432323 0.0011128217 0.00524019186 0.303201935 0.0070230982 0.0833699753 0.0408171422 0.0293590677 0.0363773907 0.0187022239 0.0079436998 0.00169692541 0.000746821287 4.58960557e-05 }
+ { 0.00200897529 0.000901115215 0.000772588402 0.00348844226 0.236581211 0.00763876661 0.0707913464 0.0459941473 0.0302968945 0.0322329236 0.0211250502 0.00908784075 0.00223727705 0.000632635768 4.01001496e-05 }
+ { 0.000633511146 0.000230496904 0.000285884304 0.00153959152 0.187295689 0.00145377338 0.0531778648 0.0280764356 0.0185011361 0.0226944073 0.0120102989 0.00491889299 0.00115833597 0.000495538066 3.30796989e-05 }
+ { 0.000154773218 1.53305622e-05 3.8344866e-05 0.000458905622 0.137268614 0.000710772041 0.0383252298 0.0187777445 0.0115370037 0.0154393369 0.00697931349 0.003134151 0.000674069014 0.000350090196 2.33682304e-05 }
+ { 1.98298121e-05 1.24574006e-05 3.46979478e-05 0.000108149018 0.087020012 0.000413018085 0.024033686 0.0117056455 0.00710775568 0.00948546935 0.0043467556 0.00182018996 0.00040743124 0.00023564739 1.79680171e-05 }
+ { 3.08577278e-05 1.26181887e-05 3.38952695e-05 0.000157902624 0.0399770202 0.00041779166 0.0110238216 0.00548360291 0.00331389682 0.00454533468 0.00202572749 0.000950220243 0.000257461532 0.000118547293 1.0001734e-05 }
+ { 4.42942054e-05 2.1996586e-05 6.05337718e-05 0.000338650802 0.00597251239 0.000473297586 0.00192968028 0.000931412133 0.000601311947 0.000685584517 0.000367308834 0.000201380908 6.50516206e-05 2.76749072e-05 3.65762366e-06 }
+ { 2.10797095e-08 8.39481969e-09 1.66602893e-08 2.84989725e-08 3.8463931e-08 5.65149641e-08 6.21193434e-08 6.10877523e-08 8.21342837e-08 8.51443733e-08 6.64684381e-08 6.41174829e-08 4.10588701e-08 5.9734947e-09 1.10290889e-09 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 2.14165316e-05 2.24877046e-05 6.66660814e-05 0.000197165496 0.00282136232 0.00375801237 0.000347684719 0.00188578144 0.000992054005 0.000973781225 0.000602739971 0.00029557128 0.000107443859 1.33664419e-05 1.25613769e-06 }
+ { 0.000479563462 0.000272585955 0.00100995792 0.00139959133 0.0788288177 0.135670748 0.00446085122 0.0593480283 0.0296628468 0.0307405197 0.0197260701 0.00998313977 0.00347768669 0.000457023513 3.88503944e-05 }
+ { 0.00102349813 0.00061671786 0.000838269324 0.00169832382 0.0779767422 0.205410818 0.00658893858 0.0832421527 0.0479479017 0.0443399362 0.030274048 0.0154564529 0.00637539071 0.000735591617 5.3024572e-05 }
+ { 0.000978193558 0.000476903229 0.000598039156 0.000677560526 0.0495408346 0.147847545 0.00317016259 0.0592549753 0.0339923753 0.0304966406 0.0203378571 0.010868423 0.0039651325 0.00049230191 4.10382806e-05 }
+ { 0.000144639987 1.09491232e-05 4.01135437e-05 0.000138318629 0.0334712772 0.099476131 0.00022523712 0.0371208787 0.0183014967 0.0178204141 0.0108385868 0.0056991442 0.0021525976 0.000311050713 2.92427623e-05 }
+ { 1.88333812e-05 8.50271487e-06 1.82747872e-05 5.05893004e-05 0.0190257634 0.0516269056 8.91231102e-05 0.0195055763 0.00946752984 0.00932592817 0.00586368706 0.00276333675 0.00109953323 0.000176921186 1.84720685e-05 }
+ { 4.34927271e-05 2.03193638e-05 5.00245444e-05 0.000163934348 0.00721884605 0.0132327048 0.000311224164 0.00576441943 0.0027714997 0.00262906637 0.0017269933 0.000836834068 0.000381353491 6.34048509e-05 7.19205547e-06 }
+ { 4.32463378e-06 2.02073541e-06 4.61592309e-06 1.48439518e-05 0.000132928974 0.000175354208 2.45323308e-05 9.20081698e-05 4.73197539e-05 3.97927919e-05 3.08306352e-05 1.39268688e-05 1.06042193e-05 1.6930016e-06 1.57259088e-07 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 8.32396869e-05 4.16962835e-05 0.000191138024 0.000320841286 0.00151703851 0.0465704784 0.00326874047 0.010543019 0.005840075 0.0101251186 0.00509295432 0.00385590473 0.00160201286 0.000326723901 1.88507297e-06 }
+ { 0.000521042711 0.000230796729 0.000585018084 0.00134537668 0.00430770125 0.318686579 0.0094617908 0.0779921162 0.0227446093 0.069669991 0.0326947902 0.0273650724 0.0107259704 0.0026161292 8.06123814e-06 }
+ { 0.00102871577 0.000578856083 0.00104745 0.000720352466 0.00227413353 0.208713241 0.0060474276 0.0623903016 0.0154435531 0.0550495023 0.0244203804 0.0228271599 0.00910329232 0.0025880218 8.3732413e-06 }
+};
+# --avg-spectrum: average frequency spectrum
+avg_spectrum[15] = { 0.00023386212 0.000106415627 0.000188448254 0.00214130794 0.0443841317 0.0248212767 0.0122497054 0.0144148461 0.00863223871 0.00966868629 0.00527384798 0.00294065919 0.000906211281 0.000216246808 4.04229556e-05 };
+# --avg-energy: average signal energy in dB
+avg_energy = -15.7241783;
+# this output was generated by bsefextract 0.7.2 from channel 1 in file plain-wave-2-test.wav
+#
+# --end-time: signal end time in ms (last non-zero sample)
+end_time = 1613.875;
+# --spectrum: generate 30ms sliced frequency spectrums
+spectrum[51,15] = {
+ { 0.000686707475 0.000116999387 0.000565446963 0.0153300679 0.151627647 0.0826286982 0.0603543518 0.0772310924 0.0211724983 0.0143405631 0.0116366764 0.00837364576 7.51249986e-05 6.51439348e-05 0.000415125453 }
+ { 0.00224126273 0.00045569056 0.00113596529 0.0114706204 0.128061374 0.0663688243 0.0508683191 0.065570435 0.0169976999 0.0123531218 0.0102617247 0.00731256846 3.20503985e-05 5.59453533e-05 0.000345209379 }
+ { 0.00020136714 3.84342282e-05 0.000138937556 0.00875876128 0.103393266 0.0543475675 0.0375014255 0.0476655347 0.0128181302 0.0090072907 0.00680177984 0.00453344625 3.1819577e-05 5.78555469e-05 0.000284812495 }
+ { 8.35627299e-05 1.67116449e-05 5.77289136e-05 0.00636379092 0.077375046 0.0409449807 0.0259497379 0.0355297829 0.00893213214 0.00599926547 0.00450811547 0.00320014843 3.00450067e-05 5.48603065e-05 0.000207041605 }
+ { 9.00006813e-06 8.01629872e-06 1.91904849e-05 0.00474482554 0.0537054458 0.0279082985 0.0169005486 0.023563666 0.00565520648 0.00431390298 0.00307645229 0.00202358963 3.02431422e-05 5.40535169e-05 0.000141951653 }
+ { 1.21053131e-05 8.96170722e-06 1.77688938e-05 0.00303866875 0.029753269 0.0158752228 0.010127135 0.0133745998 0.0033918539 0.00237427655 0.00182657122 0.00124625928 3.05915303e-05 5.02767545e-05 7.79299308e-05 }
+ { 4.75067762e-05 2.67256081e-05 8.52764744e-05 0.00231042751 0.00904583478 0.00544609158 0.00354079516 0.00442574169 0.00130444539 0.00091803036 0.000720396318 0.00051189864 5.06209914e-05 4.23946899e-05 2.39399085e-05 }
+ { 1.32111375e-05 6.55683114e-06 2.08263418e-05 0.000163402104 0.000245504243 0.00019384854 0.000135579678 0.000166170724 7.60870611e-05 4.58924904e-05 4.40572125e-05 4.20344153e-05 8.82964888e-06 3.85278654e-06 1.41713865e-06 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 2.01604081e-06 2.18130694e-06 6.84393051e-06 1.90754048e-05 3.19349277e-05 2.28856648e-05 1.9150023e-05 1.78681217e-05 9.43694329e-06 3.74016949e-06 3.60534483e-06 2.84258562e-06 1.05630326e-06 2.48852748e-07 2.5815401e-08 }
+ { 0.000136157659 0.000126318308 0.000272696036 0.00213354018 0.0498996382 0.0148299441 0.0291009816 0.0185556535 0.011017154 0.00319951626 0.00403183164 0.00276181416 0.000924885704 0.000168658714 8.15502177e-06 }
+ { 0.000241250756 0.000103792866 0.000674587098 0.00254973259 0.183622034 0.0443043877 0.108935158 0.0719823797 0.0373603232 0.0105590675 0.0146172054 0.009773593 0.00318921231 0.000679069391 3.55806441e-05 }
+ { 0.00209819075 0.000473093435 0.000612832263 0.00224638801 0.144462521 0.0347357718 0.0866236222 0.0620576806 0.0315310906 0.0105184286 0.0143629561 0.0098337109 0.00318610234 0.000595432341 2.86311488e-05 }
+ { 0.000370886214 0.000129797191 0.000190146869 0.000939155962 0.1147934 0.0272411407 0.0701783169 0.0448176273 0.02405238 0.00732735813 0.00979135882 0.00626539489 0.00197118207 0.000435659341 2.34763652e-05 }
+ { 8.98548341e-05 1.0683252e-05 3.52316431e-05 0.000128582061 0.0829813172 0.0182383376 0.0481632506 0.0287578942 0.0155966068 0.00435669807 0.00591161064 0.00382843707 0.00129002395 0.000344221054 1.96373628e-05 }
+ { 1.34010786e-05 7.48750021e-06 1.70944814e-05 0.00017563925 0.0527593849 0.0112013174 0.0298447697 0.0173883152 0.00907281362 0.00273183461 0.00376754495 0.00232678477 0.000775085375 0.000208322399 1.44584397e-05 }
+ { 1.78519777e-05 9.1377463e-06 2.59990159e-05 0.000122783191 0.0241604943 0.00539768906 0.013668829 0.0078026443 0.00427474617 0.00130561272 0.00174954291 0.00112174376 0.000416624414 0.000119252398 9.78521259e-06 }
+ { 3.38448207e-05 1.67066035e-05 4.70652942e-05 0.000227102237 0.00354229164 0.00106234304 0.00206622557 0.00127481049 0.000773557408 0.000274147507 0.000325712108 0.000263592912 0.000106665048 2.60965812e-05 3.35715932e-06 }
+ { 1.33957051e-08 5.37306681e-09 1.07970287e-08 1.91447296e-08 2.81384314e-08 5.0355941e-08 8.42470077e-08 1.26286394e-07 1.4504771e-07 1.007535e-07 1.03216223e-07 8.77252452e-08 6.7852321e-08 8.26485375e-09 8.34163432e-10 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 1.20095721e-05 1.06831884e-05 2.74822536e-05 0.000133587198 0.00167014493 0.00233208772 0.00185803983 0.00160675762 0.001202884 0.000439529157 0.000338816245 0.000177659394 0.000135023716 7.43799888e-06 1.07214201e-06 }
+ { 0.000163033867 0.000102183038 0.000327331849 0.00124758784 0.0479119577 0.0831399698 0.0642223406 0.0644314441 0.0396962599 0.0150439527 0.0118177649 0.00800406199 0.0047996054 0.00032442929 3.98474103e-05 }
+ { 0.0013404198 0.000360172299 0.000367233628 0.00141126739 0.0467680328 0.124434384 0.0856160544 0.0934994206 0.0510780746 0.0218371098 0.0182028136 0.012664698 0.00813767399 0.00052926476 7.08647182e-05 }
+ { 0.000808047686 0.000254417695 0.000342452313 0.000843808451 0.0310669999 0.0928366905 0.0623264685 0.0668214096 0.0370332102 0.0150838949 0.0131769772 0.00868756899 0.00531269786 0.000378273076 5.47196441e-05 }
+ { 8.60199387e-05 5.77574105e-06 2.39671551e-05 8.19767759e-05 0.0202220875 0.0605515197 0.0393628687 0.0401177095 0.0199317038 0.00851476915 0.00725470461 0.00423280434 0.00282437501 0.00023577997 3.65822745e-05 }
+ { 1.11284826e-05 4.93312753e-06 1.27420487e-05 2.5553912e-05 0.0115154865 0.0311874995 0.0206061741 0.0211259161 0.00978321266 0.00428713561 0.00374754936 0.00231973049 0.00144937028 0.00013613091 2.16467158e-05 }
+ { 3.3429628e-05 1.44676611e-05 3.92513927e-05 0.000121691797 0.00448856658 0.00777567917 0.00591575734 0.00570725049 0.00293214707 0.00128578184 0.00112901998 0.000736196124 0.000473475122 5.53266525e-05 8.12118431e-06 }
+ { 3.28637193e-06 1.53092444e-06 3.51359871e-06 1.06835779e-05 8.07934046e-05 8.96808733e-05 8.23636814e-05 7.32761208e-05 5.61569474e-05 2.66773092e-05 1.96774207e-05 1.7638628e-05 1.48445929e-05 2.22533382e-06 2.53498245e-07 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
+ { 2.86326513e-05 2.62139471e-05 7.63660363e-05 0.000153378345 0.00084186738 0.0286650353 0.00408061254 0.0193078197 0.0100091021 0.00867556345 0.00229495198 0.00266932896 0.00156479011 0.000659600483 1.80820753e-06 }
+ { 0.000571413323 0.000144845522 0.000288439762 0.000685436885 0.00239342772 0.192934452 0.0110786898 0.143385872 0.0648538489 0.0603063179 0.0148764978 0.0191802607 0.0108937498 0.00486616708 7.67561126e-06 }
+ { 0.00113205543 0.000370417618 0.00057086346 0.00060361732 0.00203098786 0.128747065 0.00783615336 0.103996392 0.0454576952 0.0435817457 0.0118029668 0.0160944825 0.00922467882 0.00390303633 8.27540026e-06 }
+};
+# --avg-spectrum: average frequency spectrum
+avg_spectrum[15] = { 0.000205640542 5.59400119e-05 0.000117711605 0.00129492494 0.0270284467 0.0235968914 0.0175875256 0.0211814763 0.00953079613 0.00526884951 0.00349213695 0.00270992202 0.00111726501 0.000275667139 3.70863211e-05 };
+# --avg-energy: average signal energy in dB
+avg_energy = -19.1155658;
diff --git a/tests/audio/pseudo-square-env.bsewave b/tests/audio/pseudo-square-env.bsewave
new file mode 100644
index 0000000..bd021ea
Binary files /dev/null and b/tests/audio/pseudo-square-env.bsewave differ
diff --git a/tests/audio/pseudo-stereo-env.bsewave b/tests/audio/pseudo-stereo-env.bsewave
new file mode 100644
index 0000000..9454d87
Binary files /dev/null and b/tests/audio/pseudo-stereo-env.bsewave differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]