AudioKit - 音频合成、处理和分析库


LGPL
OS X
Swift

软件简介

AudioKit 是一个开源的强大的音频合成、处理和分析库。用于 iPhone/OS X 应用的开发,支持 Objective-C 和 Swift 语言。

示例代码:

#import "NewInstrument.h"

@implementation NewInstrument

- (instancetype)init
{
    self = [super init];
    if (self) {

        AKSineTable *sineTable = [[AKSineTable alloc] init];
        [self addFTable:sineTable];

        AKFMOscillator *fmOscillator;
        fmOscillator = [[AKFMOscillator alloc] initWithFTable:sineTable
                                                baseFrequency:akp(440)
                                            carrierMultiplier:akp(1)
                                         modulatingMultiplier:akp(0.5)
                                              modulationIndex:akp(1.0)
                                                    amplitude:akp(0.1)];
        [self connect:fmOscillator];

        AKAudioOutput *audioOutput = [[AKAudioOutput alloc] initWithAudioSource:fmOscil];
        [self connect:audioOutput];

    }
    return self;
}
@end