- Timestamp:
- 08/25/13 23:37:40 (9 years ago)
- Branches:
- master, Servo, Tab_Interface, pyramid
- Children:
- 835f156
- Parents:
- c00c6d8
- Location:
- iOS/Orbit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
iOS/Orbit/Orbit/AudioGenerator.m
rce0a7ee r3bf994e 295 295 - (void) writePauseInSamplesTo:(Float32 *) buffer at:(int *) position 296 296 { 297 int length = (int)floor(0.010 * sampleRate); 297 int length = (int)floor(0.010 * sampleRate); // length of pause to insert 298 298 float arr[length]; 299 299 [self writeArray:arr to:buffer length:length at:position]; … … 335 335 - (void) halfSineGen:(BOOL)upper halfPeriod: (double)halfPeriod toBuffer:(Float32 *) buffer at:(int *) position 336 336 { 337 338 // TODO - testing 339 //halfPeriod =true; 340 337 341 int sampleCount = [self arraySizeWithHalfPeriod:halfPeriod]; 338 342 double increment = M_PI/(halfPeriod * sampleRate);
Note: See TracChangeset
for help on using the changeset viewer.