MusicKit
0.0.0
|
00001 00002 // 00003 // $Id$ 00004 // 00005 // Description: 00006 // Allpass filter declaration 00007 // Holds and filters a single audio channel. 00008 // 00009 // Original Author: Written by Jezar at Dreampoint, June 2000 00010 // http://www.dreampoint.co.uk 00011 // Rewritten into Objective-C by Leigh M. Smith <leigh@leighsmith.com> 00012 // 00013 // Jezar's code described as "This code is public domain" 00014 // 00015 // Copyright (c) 2001,2009 The MusicKit Project. All rights reserved. 00016 // 00017 // Permission is granted to use and modify this code for commercial and 00018 // non-commercial purposes so long as the author attribution and copyright 00019 // messages remain intact and accompany all relevant code. 00020 // 00022 00023 #import <Foundation/Foundation.h> 00024 00025 @interface SndReverbAllpassFilter: NSObject 00026 { 00027 float feedback; 00028 float *buffer; 00029 NSUInteger bufferSize; 00030 NSUInteger bufferIndex; 00031 } 00032 00033 - initWithLength: (NSUInteger) size; 00034 00035 - (void) processBuffer: (float *) input 00036 replacing: (float *) output 00037 length: (long) bufferLength 00038 channels: (int) skip; 00039 00040 - (float) process: (float) input; 00041 00042 - (void) mute; 00043 00044 - (void) setFeedback: (float) val; 00045 00046 - (float) getFeedback; 00047 00048 @end