forked from AudioKit/AudioKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVocalTractTests.swift
43 lines (36 loc) · 1.12 KB
/
VocalTractTests.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// VocalTractTests.swift
// iOSTestSuiteTests
//
// Created by Aurelius Prochazka on 11/26/18.
// Copyright © 2018 AudioKit. All rights reserved.
//
import AudioKit
import XCTest
class VocalTractTests: AKTestCase {
override func setUp() {
super.setUp()
duration = 1.0
}
func testDefault() {
output = AKOperationGenerator { _ in
return AKOperation.vocalTract()
}
AKTestMD5("08151832dac3e5d23d194b4004dc9916")
}
func testParameterSweep() {
output = AKOperationGenerator { _ in
let line = AKOperation.lineSegment(
trigger: AKOperation.metronome(),
start: 0,
end: 1,
duration: self.duration)
return AKOperation.vocalTract(frequency: 200 + 200 * line,
tonguePosition: line,
tongueDiameter: line,
tenseness: line,
nasality: line)
}
AKTestMD5("73de198b2746be67144e9cd865815f4b")
}
}