File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Sources/SoundpipeAudioKit/Generators Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments