Skip to content

Commit 4ee2558

Browse files
committed
Formatting
1 parent dca5884 commit 4ee2558

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/SoundpipeAudioKit/Generators/PhaseLockedVocoder.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class PhaseLockedVocoder: Node {
2626
range: 0 ... 100_000,
2727
unit: .generic
2828
)
29-
29+
3030
/// Position in time. When non-changing it will do a spectral freeze of a the current point in time.
3131
@Parameter(positionDef) public var position: AUValue
3232

@@ -76,7 +76,7 @@ public class PhaseLockedVocoder: Node {
7676
setupParameters()
7777

7878
loadFile(file)
79-
79+
8080
let safeGrainSize = roundUpToPowerOfTwo(grainSize)
8181
akPhaseLockedVocoderSetMincerSize(au.dsp, safeGrainSize)
8282

@@ -85,7 +85,8 @@ public class PhaseLockedVocoder: Node {
8585
self.pitchRatio = pitchRatio
8686
}
8787

88-
/// The grain size range is 128 - 8192 and it must be a power of two. If it isn't one already, this function will round it up to the next power of two
88+
/// The grain size range is 128 - 8192 and it must be a power of two.
89+
/// If it isn't one already, this function will round it up to the next power of two
8990
/// (should we warn the user if they submit a value which is not in that range or is not a power of two?)
9091
func roundUpToPowerOfTwo(_ value: Int32) -> Int32 {
9192
let range: ClosedRange<Int32> = 128...8192

0 commit comments

Comments
 (0)