From 8d32e588fa64db1d5b04ce9b83cb692c81f86e3d Mon Sep 17 00:00:00 2001 From: emurray2 Date: Fri, 3 Apr 2026 16:27:52 -0500 Subject: [PATCH 01/12] Test old 44_100 sample rate This should make CI tests pass. If so, need to update the md5 for new sample rate --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index e519d70..43130b4 100644 --- a/Package.swift +++ b/Package.swift @@ -9,7 +9,7 @@ let package = Package( products: [.library(name: "DunneAudioKit", targets: ["DunneAudioKit"])], dependencies: [ .package(url: "https://github.com/AudioKit/KissFFT", from: "1.0.0"), - .package(url: "https://github.com/AudioKit/AudioKit", from: "5.6.0"), + .package(url: "https://github.com/emurray2/AudioKit", branch: "old-sample-rate"), .package(url: "https://github.com/AudioKit/AudioKitEX", from: "5.6.0"), ], targets: [ From 78b5c31a625ea200bdadcfbe920c0447294b3fda Mon Sep 17 00:00:00 2001 From: emurray2 Date: Fri, 3 Apr 2026 17:00:38 -0500 Subject: [PATCH 02/12] Update testEffects md5 Sample rate of 48000Hz changes the delay of the flanger slightly changing the sound, but the effect functions the same --- Package.swift | 2 +- Tests/DunneAudioKitTests/GenericNodeTests.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index 43130b4..e519d70 100644 --- a/Package.swift +++ b/Package.swift @@ -9,7 +9,7 @@ let package = Package( products: [.library(name: "DunneAudioKit", targets: ["DunneAudioKit"])], dependencies: [ .package(url: "https://github.com/AudioKit/KissFFT", from: "1.0.0"), - .package(url: "https://github.com/emurray2/AudioKit", branch: "old-sample-rate"), + .package(url: "https://github.com/AudioKit/AudioKit", from: "5.6.0"), .package(url: "https://github.com/AudioKit/AudioKitEX", from: "5.6.0"), ], targets: [ diff --git a/Tests/DunneAudioKitTests/GenericNodeTests.swift b/Tests/DunneAudioKitTests/GenericNodeTests.swift index c846083..694ae69 100644 --- a/Tests/DunneAudioKitTests/GenericNodeTests.swift +++ b/Tests/DunneAudioKitTests/GenericNodeTests.swift @@ -55,7 +55,7 @@ class GenericNodeTests: XCTestCase { } func testEffects() { - nodeParameterTest(md5: "b09c41cdef96fb4cfe89c34c5262e9d2", factory: { input in Flanger(input) }) - nodeParameterTest(md5: "7006860de2e4a726fd53c7f583f44c75", factory: { input in StereoDelay(input) }) + nodeParameterTest(md5: "2e7735fd2751c87661351b16f0c247d8", factory: { input in Flanger(input) }) + nodeParameterTest(md5: "481005e568c7c0a0763044451f1ba588", factory: { input in StereoDelay(input) }) } } From 853b1216c8654f34a0d9627fdb4f4452eba7a002 Mon Sep 17 00:00:00 2001 From: emurray2 Date: Fri, 3 Apr 2026 17:44:25 -0500 Subject: [PATCH 03/12] Improve testSampler Calculate endpoint using Settings.sampleRate and update md5 --- Tests/DunneAudioKitTests/SamplerTests.swift | 2 +- Tests/DunneAudioKitTests/ValidatedMD5s.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/DunneAudioKitTests/SamplerTests.swift b/Tests/DunneAudioKitTests/SamplerTests.swift index 8239c01..e2acba5 100644 --- a/Tests/DunneAudioKitTests/SamplerTests.swift +++ b/Tests/DunneAudioKitTests/SamplerTests.swift @@ -13,7 +13,7 @@ class SamplerTests: XCTestCase { let sampleURL = Bundle.module.url(forResource: "TestResources/12345", withExtension: "wav")! let file = try! AVAudioFile(forReading: sampleURL) let sampler = Sampler() - let data = SamplerData(sampleDescriptor: SampleDescriptor(noteNumber: 64, noteFrequency: 440, minimumNoteNumber: 0, maximumNoteNumber: 127, minimumVelocity: 0, maximumVelocity: 127, isLooping: false, loopStartPoint: 0, loopEndPoint: 1000.0, startPoint: 0.0, endPoint: 44100.0 * 5.0), file: file) + let data = SamplerData(sampleDescriptor: SampleDescriptor(noteNumber: 64, noteFrequency: 440, minimumNoteNumber: 0, maximumNoteNumber: 127, minimumVelocity: 0, maximumVelocity: 127, isLooping: false, loopStartPoint: 0, loopEndPoint: 1000.0, startPoint: 0.0, endPoint: Float(Settings.sampleRate * 5.0)), file: file) data.buildKeyMap() sampler.update(data: data) sampler.masterVolume = 0.1 diff --git a/Tests/DunneAudioKitTests/ValidatedMD5s.swift b/Tests/DunneAudioKitTests/ValidatedMD5s.swift index 0d90015..853f4c8 100644 --- a/Tests/DunneAudioKitTests/ValidatedMD5s.swift +++ b/Tests/DunneAudioKitTests/ValidatedMD5s.swift @@ -11,7 +11,7 @@ extension XCTestCase { } let validatedMD5s: [String: String] = [ - "-[SamplerTests testSampler]": "8739229f6bc52fa5db3cc2afe85ee580", + "-[SamplerTests testSampler]": "764e9a29c81659ea19b942afead19c1e", "-[SamplerTests testSamplerAttackVolumeEnvelope]": "bf00177ac48148fa4f780e5e364e84e2", "-[SynthTests testChord]": "670c95beba121ff85150eb12497f3652", "-[SynthTests testMonophonicPlayback]": "625554cfe7cc840083df9931d47490a6", From c8cbba7fcef621fe9a507e6bea0a8217805255fb Mon Sep 17 00:00:00 2001 From: emurray2 Date: Fri, 3 Apr 2026 20:20:07 -0500 Subject: [PATCH 04/12] Improve testSamplerAttackVolumeEnvelope Made duration a bit longer so audio doesn't get cutoff with faster sample rate and updated md5 --- Tests/DunneAudioKitTests/SamplerTests.swift | 4 ++-- Tests/DunneAudioKitTests/ValidatedMD5s.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/DunneAudioKitTests/SamplerTests.swift b/Tests/DunneAudioKitTests/SamplerTests.swift index e2acba5..58deac3 100644 --- a/Tests/DunneAudioKitTests/SamplerTests.swift +++ b/Tests/DunneAudioKitTests/SamplerTests.swift @@ -46,13 +46,13 @@ class SamplerTests: XCTestCase { sampler.load(avAudioFile: file) sampler.masterVolume = 1 engine.output = sampler - let audio = engine.startTest(totalDuration: 8.0) + let audio = engine.startTest(totalDuration: 9.0) audio.append(engine.render(duration: 1.0)) // run test for a second before setting parameters sampler.attackDuration = 1.0 sampler.load(avAudioFile: file) audio.append(engine.render(duration: 1.0)) // run test to give time to load sampler.play(noteNumber: 65, velocity: 127) - audio.append(engine.render(duration: 6.0)) + audio.append(engine.render(duration: 7.0)) sampler.stop(noteNumber: 65) testMD5(audio) } diff --git a/Tests/DunneAudioKitTests/ValidatedMD5s.swift b/Tests/DunneAudioKitTests/ValidatedMD5s.swift index 853f4c8..a28dbd8 100644 --- a/Tests/DunneAudioKitTests/ValidatedMD5s.swift +++ b/Tests/DunneAudioKitTests/ValidatedMD5s.swift @@ -12,7 +12,7 @@ extension XCTestCase { let validatedMD5s: [String: String] = [ "-[SamplerTests testSampler]": "764e9a29c81659ea19b942afead19c1e", - "-[SamplerTests testSamplerAttackVolumeEnvelope]": "bf00177ac48148fa4f780e5e364e84e2", + "-[SamplerTests testSamplerAttackVolumeEnvelope]": "2b10675e27c588c5fc7aa70ec1b299c5", "-[SynthTests testChord]": "670c95beba121ff85150eb12497f3652", "-[SynthTests testMonophonicPlayback]": "625554cfe7cc840083df9931d47490a6", "-[SynthTests testParameterInitialization]": "7bd35b742ceff0ba77238d7da2ef046d", From 62961e67f4434af616ff569849e37754a63cc3ba Mon Sep 17 00:00:00 2001 From: emurray2 Date: Fri, 3 Apr 2026 21:07:02 -0500 Subject: [PATCH 05/12] Update testChord md5 Validated the sample rate being passed into the synth core matched Settings.sampleRate. The audio matches as well, but using audio.audition() uses a default sample rate of 44_100 when the player format isn't specified. This causes the sound to be lower or higher pitched depending on the sample rate. Thus, I used manual engine rendering instead of audition and it sounded the same. Will add a commit to AudioKit later to improve the audition functionality so it matches Settings.sampleRate. --- Tests/DunneAudioKitTests/ValidatedMD5s.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/DunneAudioKitTests/ValidatedMD5s.swift b/Tests/DunneAudioKitTests/ValidatedMD5s.swift index a28dbd8..54bdce0 100644 --- a/Tests/DunneAudioKitTests/ValidatedMD5s.swift +++ b/Tests/DunneAudioKitTests/ValidatedMD5s.swift @@ -13,7 +13,7 @@ extension XCTestCase { let validatedMD5s: [String: String] = [ "-[SamplerTests testSampler]": "764e9a29c81659ea19b942afead19c1e", "-[SamplerTests testSamplerAttackVolumeEnvelope]": "2b10675e27c588c5fc7aa70ec1b299c5", - "-[SynthTests testChord]": "670c95beba121ff85150eb12497f3652", + "-[SynthTests testChord]": "4f1199e90b38cf7ede595c62600bb307", "-[SynthTests testMonophonicPlayback]": "625554cfe7cc840083df9931d47490a6", "-[SynthTests testParameterInitialization]": "7bd35b742ceff0ba77238d7da2ef046d", "-[TransientShaperTests testAttackAmount]": "481068b77fc73b349315f2327fb84318", From 34e7630f9b696ff2338ecf0c40876905aa45e479 Mon Sep 17 00:00:00 2001 From: emurray2 Date: Fri, 3 Apr 2026 21:21:42 -0500 Subject: [PATCH 06/12] Update testMonophonicPlayback md5 Validated audio sounds the same as described in the previous commit --- Tests/DunneAudioKitTests/ValidatedMD5s.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/DunneAudioKitTests/ValidatedMD5s.swift b/Tests/DunneAudioKitTests/ValidatedMD5s.swift index 54bdce0..768f7f4 100644 --- a/Tests/DunneAudioKitTests/ValidatedMD5s.swift +++ b/Tests/DunneAudioKitTests/ValidatedMD5s.swift @@ -14,7 +14,7 @@ let validatedMD5s: [String: String] = [ "-[SamplerTests testSampler]": "764e9a29c81659ea19b942afead19c1e", "-[SamplerTests testSamplerAttackVolumeEnvelope]": "2b10675e27c588c5fc7aa70ec1b299c5", "-[SynthTests testChord]": "4f1199e90b38cf7ede595c62600bb307", - "-[SynthTests testMonophonicPlayback]": "625554cfe7cc840083df9931d47490a6", + "-[SynthTests testMonophonicPlayback]": "2851284c61e62af0ade1e0ac5ee786c9", "-[SynthTests testParameterInitialization]": "7bd35b742ceff0ba77238d7da2ef046d", "-[TransientShaperTests testAttackAmount]": "481068b77fc73b349315f2327fb84318", "-[TransientShaperTests testDefault]": "cea9fc1deb7a77fe47a071d7aaf411d3", From 1a851227a9e896dcc2073fc5802322d0365a3e09 Mon Sep 17 00:00:00 2001 From: emurray2 Date: Fri, 3 Apr 2026 21:43:46 -0500 Subject: [PATCH 07/12] Update testParameterInitialization md5 Validated audio with same procedure as described in previous commits --- Tests/DunneAudioKitTests/ValidatedMD5s.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/DunneAudioKitTests/ValidatedMD5s.swift b/Tests/DunneAudioKitTests/ValidatedMD5s.swift index 768f7f4..002d9e1 100644 --- a/Tests/DunneAudioKitTests/ValidatedMD5s.swift +++ b/Tests/DunneAudioKitTests/ValidatedMD5s.swift @@ -15,7 +15,7 @@ let validatedMD5s: [String: String] = [ "-[SamplerTests testSamplerAttackVolumeEnvelope]": "2b10675e27c588c5fc7aa70ec1b299c5", "-[SynthTests testChord]": "4f1199e90b38cf7ede595c62600bb307", "-[SynthTests testMonophonicPlayback]": "2851284c61e62af0ade1e0ac5ee786c9", - "-[SynthTests testParameterInitialization]": "7bd35b742ceff0ba77238d7da2ef046d", + "-[SynthTests testParameterInitialization]": "0030b568eff9dcdbd5b532a5de1e32dd", "-[TransientShaperTests testAttackAmount]": "481068b77fc73b349315f2327fb84318", "-[TransientShaperTests testDefault]": "cea9fc1deb7a77fe47a071d7aaf411d3", "-[TransientShaperTests testOutputAmount]": "e84963aeedd6268dd648dd6a862fb76a", From d2164ac918c72035bd59da47e4f294592bdd3a17 Mon Sep 17 00:00:00 2001 From: emurray2 Date: Fri, 3 Apr 2026 22:15:28 -0500 Subject: [PATCH 08/12] Update TransientShaper testDefault md5 Validated audio with same procedure as described in previous commits --- Tests/DunneAudioKitTests/ValidatedMD5s.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/DunneAudioKitTests/ValidatedMD5s.swift b/Tests/DunneAudioKitTests/ValidatedMD5s.swift index 002d9e1..4ea1156 100644 --- a/Tests/DunneAudioKitTests/ValidatedMD5s.swift +++ b/Tests/DunneAudioKitTests/ValidatedMD5s.swift @@ -17,7 +17,7 @@ let validatedMD5s: [String: String] = [ "-[SynthTests testMonophonicPlayback]": "2851284c61e62af0ade1e0ac5ee786c9", "-[SynthTests testParameterInitialization]": "0030b568eff9dcdbd5b532a5de1e32dd", "-[TransientShaperTests testAttackAmount]": "481068b77fc73b349315f2327fb84318", - "-[TransientShaperTests testDefault]": "cea9fc1deb7a77fe47a071d7aaf411d3", + "-[TransientShaperTests testDefault]": "f139028d9fdc1044e478b0ca32314971", "-[TransientShaperTests testOutputAmount]": "e84963aeedd6268dd648dd6a862fb76a", "-[TransientShaperTests testplayerAmount]": "f70c4ba579921129c86b9a6abb0cb52e", "-[TransientShaperTests testReleaseAmount]": "accb7a919f3c63e4dbec41c0e7ef88db", From 1a0d0e8595ea5a7ba88830ef481233c9258fd128 Mon Sep 17 00:00:00 2001 From: emurray2 Date: Fri, 3 Apr 2026 22:48:46 -0500 Subject: [PATCH 09/12] Update TransientShaper testInputAmount md5 Validated audio with the same procedure as described in previous commits --- Tests/DunneAudioKitTests/TransientShaperTests.swift | 2 +- Tests/DunneAudioKitTests/ValidatedMD5s.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/DunneAudioKitTests/TransientShaperTests.swift b/Tests/DunneAudioKitTests/TransientShaperTests.swift index 50266fd..27d5a6f 100644 --- a/Tests/DunneAudioKitTests/TransientShaperTests.swift +++ b/Tests/DunneAudioKitTests/TransientShaperTests.swift @@ -17,7 +17,7 @@ class TransientShaperTests: XCTestCase { testMD5(audio) } - func testplayerAmount() { + func testInputAmount() { let engine = AudioEngine() let url = Bundle.module.url(forResource: "12345", withExtension: "wav", subdirectory: "TestResources")! let player = AudioPlayer(url: url)! diff --git a/Tests/DunneAudioKitTests/ValidatedMD5s.swift b/Tests/DunneAudioKitTests/ValidatedMD5s.swift index 4ea1156..91359bb 100644 --- a/Tests/DunneAudioKitTests/ValidatedMD5s.swift +++ b/Tests/DunneAudioKitTests/ValidatedMD5s.swift @@ -16,9 +16,9 @@ let validatedMD5s: [String: String] = [ "-[SynthTests testChord]": "4f1199e90b38cf7ede595c62600bb307", "-[SynthTests testMonophonicPlayback]": "2851284c61e62af0ade1e0ac5ee786c9", "-[SynthTests testParameterInitialization]": "0030b568eff9dcdbd5b532a5de1e32dd", - "-[TransientShaperTests testAttackAmount]": "481068b77fc73b349315f2327fb84318", "-[TransientShaperTests testDefault]": "f139028d9fdc1044e478b0ca32314971", + "-[TransientShaperTests testInputAmount]": "e2af46fde7535edcdc2ac3c886b76d3f", "-[TransientShaperTests testOutputAmount]": "e84963aeedd6268dd648dd6a862fb76a", - "-[TransientShaperTests testplayerAmount]": "f70c4ba579921129c86b9a6abb0cb52e", - "-[TransientShaperTests testReleaseAmount]": "accb7a919f3c63e4dbec41c0e7ef88db", + "-[TransientShaperTests testAttackAmount]": "481068b77fc73b349315f2327fb84318", + "-[TransientShaperTests testReleaseAmount]": "accb7a919f3c63e4dbec41c0e7ef88db" ] From 998e54bc4acb6ccbe2d54ee31e30d008b07e3720 Mon Sep 17 00:00:00 2001 From: emurray2 Date: Fri, 3 Apr 2026 23:06:46 -0500 Subject: [PATCH 10/12] Update TransientShaper testOutputAmount md5 Validated audio with the same procedure as described in previous commits --- Tests/DunneAudioKitTests/ValidatedMD5s.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/DunneAudioKitTests/ValidatedMD5s.swift b/Tests/DunneAudioKitTests/ValidatedMD5s.swift index 91359bb..ccaad39 100644 --- a/Tests/DunneAudioKitTests/ValidatedMD5s.swift +++ b/Tests/DunneAudioKitTests/ValidatedMD5s.swift @@ -18,7 +18,7 @@ let validatedMD5s: [String: String] = [ "-[SynthTests testParameterInitialization]": "0030b568eff9dcdbd5b532a5de1e32dd", "-[TransientShaperTests testDefault]": "f139028d9fdc1044e478b0ca32314971", "-[TransientShaperTests testInputAmount]": "e2af46fde7535edcdc2ac3c886b76d3f", - "-[TransientShaperTests testOutputAmount]": "e84963aeedd6268dd648dd6a862fb76a", + "-[TransientShaperTests testOutputAmount]": "8a8b3ac6aa331783e7fa956cbfddf342", "-[TransientShaperTests testAttackAmount]": "481068b77fc73b349315f2327fb84318", "-[TransientShaperTests testReleaseAmount]": "accb7a919f3c63e4dbec41c0e7ef88db" ] From ce0304e1907636d007187752744da6d92eba734b Mon Sep 17 00:00:00 2001 From: emurray2 Date: Fri, 3 Apr 2026 23:28:59 -0500 Subject: [PATCH 11/12] Reintroduce TransientShaper intermittent tests Now the sample rate is configured and the tests use md5 for both intel and M chips--these should work consistently. Keep an eye on them though. --- .../TransientShaperTests.swift | 21 ------------------- Tests/DunneAudioKitTests/ValidatedMD5s.swift | 4 ++-- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/Tests/DunneAudioKitTests/TransientShaperTests.swift b/Tests/DunneAudioKitTests/TransientShaperTests.swift index 27d5a6f..c2ec4bf 100644 --- a/Tests/DunneAudioKitTests/TransientShaperTests.swift +++ b/Tests/DunneAudioKitTests/TransientShaperTests.swift @@ -39,8 +39,6 @@ class TransientShaperTests: XCTestCase { testMD5(audio) } - /* Intermittent Tests - func testAttackAmount() { let engine = AudioEngine() let url = Bundle.module.url(forResource: "12345", withExtension: "wav", subdirectory: "TestResources")! @@ -62,23 +60,4 @@ class TransientShaperTests: XCTestCase { audio.append(engine.render(duration: 1.0)) testMD5(audio) } - */ - - /* This produces different MD5s on local machines vs CI - func testParameters() { - let engine = AudioEngine() - let url = Bundle.module.url(forResource: "12345", withExtension: "wav", subdirectory: "TestResources")! - let player = AudioPlayer(url: url)! - engine.output = TransientShaper(player, - playerAmount: -1.0, - attackAmount: -3.0, - releaseAmount: 1.0, - outputAmount: 0.0) - player.play() - let audio = engine.startTest(totalDuration: 1.0) - audio.append(engine.render(duration: 1.0)) - testMD5(audio) - } - */ - } diff --git a/Tests/DunneAudioKitTests/ValidatedMD5s.swift b/Tests/DunneAudioKitTests/ValidatedMD5s.swift index ccaad39..8f2e9af 100644 --- a/Tests/DunneAudioKitTests/ValidatedMD5s.swift +++ b/Tests/DunneAudioKitTests/ValidatedMD5s.swift @@ -19,6 +19,6 @@ let validatedMD5s: [String: String] = [ "-[TransientShaperTests testDefault]": "f139028d9fdc1044e478b0ca32314971", "-[TransientShaperTests testInputAmount]": "e2af46fde7535edcdc2ac3c886b76d3f", "-[TransientShaperTests testOutputAmount]": "8a8b3ac6aa331783e7fa956cbfddf342", - "-[TransientShaperTests testAttackAmount]": "481068b77fc73b349315f2327fb84318", - "-[TransientShaperTests testReleaseAmount]": "accb7a919f3c63e4dbec41c0e7ef88db" + "-[TransientShaperTests testAttackAmount]": "aafba2c797ab8c9d2aeed86b05c73607", + "-[TransientShaperTests testReleaseAmount]": "aa5eed98c0268885969bd037f9a97b9e", ] From dddff279cbafcee0a77a7d6040deddf4996254f2 Mon Sep 17 00:00:00 2001 From: emurray2 Date: Fri, 3 Apr 2026 23:41:05 -0500 Subject: [PATCH 12/12] Move transient shaper tests Move these to effects tests --- .../DunneAudioKitTests/GenericNodeTests.swift | 1 + .../TransientShaperTests.swift | 63 ------------------- Tests/DunneAudioKitTests/ValidatedMD5s.swift | 7 +-- 3 files changed, 2 insertions(+), 69 deletions(-) delete mode 100644 Tests/DunneAudioKitTests/TransientShaperTests.swift diff --git a/Tests/DunneAudioKitTests/GenericNodeTests.swift b/Tests/DunneAudioKitTests/GenericNodeTests.swift index 694ae69..94a0d58 100644 --- a/Tests/DunneAudioKitTests/GenericNodeTests.swift +++ b/Tests/DunneAudioKitTests/GenericNodeTests.swift @@ -57,5 +57,6 @@ class GenericNodeTests: XCTestCase { func testEffects() { nodeParameterTest(md5: "2e7735fd2751c87661351b16f0c247d8", factory: { input in Flanger(input) }) nodeParameterTest(md5: "481005e568c7c0a0763044451f1ba588", factory: { input in StereoDelay(input) }) + nodeParameterTest(md5: "c5729e47c78ce86a7480eaa0ca0b10c0", factory: { input in TransientShaper(input) }) } } diff --git a/Tests/DunneAudioKitTests/TransientShaperTests.swift b/Tests/DunneAudioKitTests/TransientShaperTests.swift deleted file mode 100644 index c2ec4bf..0000000 --- a/Tests/DunneAudioKitTests/TransientShaperTests.swift +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright AudioKit. All Rights Reserved. - -import AudioKit -import DunneAudioKit -import XCTest - -class TransientShaperTests: XCTestCase { - - func testDefault() { - let engine = AudioEngine() - let url = Bundle.module.url(forResource: "12345", withExtension: "wav", subdirectory: "TestResources")! - let player = AudioPlayer(url: url)! - engine.output = TransientShaper(player) - let audio = engine.startTest(totalDuration: 1.0) - player.play() - audio.append(engine.render(duration: 1.0)) - testMD5(audio) - } - - func testInputAmount() { - let engine = AudioEngine() - let url = Bundle.module.url(forResource: "12345", withExtension: "wav", subdirectory: "TestResources")! - let player = AudioPlayer(url: url)! - engine.output = TransientShaper(player, inputAmount: -20.0) - let audio = engine.startTest(totalDuration: 1.0) - player.play() - audio.append(engine.render(duration: 1.0)) - testMD5(audio) - } - - func testOutputAmount() { - let engine = AudioEngine() - let url = Bundle.module.url(forResource: "12345", withExtension: "wav", subdirectory: "TestResources")! - let player = AudioPlayer(url: url)! - engine.output = TransientShaper(player, outputAmount: -20.0) - let audio = engine.startTest(totalDuration: 1.0) - player.play() - audio.append(engine.render(duration: 1.0)) - testMD5(audio) - } - - func testAttackAmount() { - let engine = AudioEngine() - let url = Bundle.module.url(forResource: "12345", withExtension: "wav", subdirectory: "TestResources")! - let player = AudioPlayer(url: url)! - engine.output = TransientShaper(player, attackAmount: 1.0) - let audio = engine.startTest(totalDuration: 1.0) - player.play() - audio.append(engine.render(duration: 1.0)) - testMD5(audio) - } - - func testReleaseAmount() { - let engine = AudioEngine() - let url = Bundle.module.url(forResource: "12345", withExtension: "wav", subdirectory: "TestResources")! - let player = AudioPlayer(url: url)! - engine.output = TransientShaper(player, releaseAmount: 1.0) - let audio = engine.startTest(totalDuration: 1.0) - player.play() - audio.append(engine.render(duration: 1.0)) - testMD5(audio) - } -} diff --git a/Tests/DunneAudioKitTests/ValidatedMD5s.swift b/Tests/DunneAudioKitTests/ValidatedMD5s.swift index 8f2e9af..c7f45eb 100644 --- a/Tests/DunneAudioKitTests/ValidatedMD5s.swift +++ b/Tests/DunneAudioKitTests/ValidatedMD5s.swift @@ -15,10 +15,5 @@ let validatedMD5s: [String: String] = [ "-[SamplerTests testSamplerAttackVolumeEnvelope]": "2b10675e27c588c5fc7aa70ec1b299c5", "-[SynthTests testChord]": "4f1199e90b38cf7ede595c62600bb307", "-[SynthTests testMonophonicPlayback]": "2851284c61e62af0ade1e0ac5ee786c9", - "-[SynthTests testParameterInitialization]": "0030b568eff9dcdbd5b532a5de1e32dd", - "-[TransientShaperTests testDefault]": "f139028d9fdc1044e478b0ca32314971", - "-[TransientShaperTests testInputAmount]": "e2af46fde7535edcdc2ac3c886b76d3f", - "-[TransientShaperTests testOutputAmount]": "8a8b3ac6aa331783e7fa956cbfddf342", - "-[TransientShaperTests testAttackAmount]": "aafba2c797ab8c9d2aeed86b05c73607", - "-[TransientShaperTests testReleaseAmount]": "aa5eed98c0268885969bd037f9a97b9e", + "-[SynthTests testParameterInitialization]": "0030b568eff9dcdbd5b532a5de1e32dd" ]