Skip to content

Commit 7a4b021

Browse files
authored
Added "grainSize" parameter to the initializer comments. (#44)
* Add a user-definable "grain size" to PhaseLockedVocoder The size of the mincer in the DSP can be set on init of PhaseLockedVocoder in a range of 128...8192. A smaller value makes the sound crisper when the sample position is moved. But a greater mincer size might also be desirable because the spectral freeze changes audibly. * Formatting * Added grain size param to the comments * Line length
1 parent 9f6827c commit 7a4b021

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SoundpipeAudioKit/Generators/PhaseLockedVocoder.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public class PhaseLockedVocoder: Node {
6565
/// - position: Position in time. When non-changing it will do a spectral freeze of a the current point in time.
6666
/// - amplitude: Amplitude.
6767
/// - pitchRatio: Pitch ratio. A value of. 1 normal, 2 is double speed, 0.5 is halfspeed, etc.
68+
/// - grainSize: Size (samples, pow 2) of the spectral freeze. Lower sizes – crisper sound when moving position.
6869
///
6970
public init(
7071
file: AVAudioFile,

0 commit comments

Comments
 (0)