AKPitchShifter generates unexpected "crack" sounds

90 views
Skip to first unread message

Роман Баранов

unread,
Jun 9, 2016, 12:41:08 PM6/9/16
to AudioKit Users Group
Hi!

AKPitchShifter generates unexpected "crack" sounds that becomes obvious with sine wave. Please try this code in iOS Playground:

import XCPlayground

import AudioKit


let volume = AKOperation.sineWave(frequency:0.2).scale(minimum: 0.2, maximum: 0.5)


let minimum = Double(20)

let maximum = Double(400)

let frequency = AKOperation.sineWave(frequency: 0.5).scale(minimum: minimum, maximum: maximum)


let oscillator = AKOperation.sineWave(frequency: frequency, amplitude: volume)


let oscillatorNode = AKOperationGenerator(operation: oscillator)

let pitchShifter = AKPitchShifter(oscillatorNode)


pitchShifter.shift = -400


AudioKit.output = pitchShifter

AudioKit.start()


oscillatorNode.start()

pitchShifter.start()


XCPlaygroundPage.currentPage.needsIndefiniteExecution = true


Is it a bug of AKPitchShifter?

Aurelius Prochazka Ph.D.

unread,
Jun 9, 2016, 12:42:35 PM6/9/16
to AudioKit Users Group
Yep, the real time pitch shifter is new and _terrible_ because of the crackles.  We're working on implementing a different algorithm.  

Aure

Aurelius Prochazka Ph.D.

unread,
Jun 11, 2016, 3:53:59 PM6/11/16
to AudioKit Users Group
This should sound better now, no more crackles, in the develop branch.

Aure

Роман Баранов

unread,
Jun 13, 2016, 9:43:30 AM6/13/16
to AudioKit Users Group
Have just tested it — works much better, thank you!

воскресенье, 12 июня 2016 г., 1:53:59 UTC+6 пользователь Aurelius Prochazka Ph.D. написал:
Reply all
Reply to author
Forward
0 new messages