iphone Programming Glossary: octave
iPhone Accelerate Framework FFT vs Matlab FFT http://stackoverflow.com/questions/10820488/iphone-accelerate-framework-fft-vs-matlab-fft 136 0 1 8 40.2187 2 8 19.3137 3 8 11.9728 4 8 8 5 8 5.34543 6 8 3.31371 7 8 1.5913 8 8 0 Comparing with Octave we get octave 3.4.0 15 x 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 x 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 octave 3.4.0 16 fft x ans Columns.. with Octave we get octave 3.4.0 15 x 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 x 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 octave 3.4.0 16 fft x ans Columns 1 through 7 136.0000 0.0000i 8.0000 40.2187i 8.0000 19.3137i 8.0000 11.9728i 8.0000 8.0000i 8.0000.. 1.5913i 8.0000 3.3137i 8.0000 5.3454i 8.0000 8.0000i 8.0000 11.9728i Columns 15 and 16 8.0000 19.3137i 8.0000 40.2187i octave 3.4.0 17 Note that the outputs from 9 to 16 are just a complex conjugate mirror image or the bottom 8 terms as is the expected..
where to start with audio synthesis on iPhone http://stackoverflow.com/questions/2067267/where-to-start-with-audio-synthesis-on-iphone function calculates fundamental frequency for a given note float CalculateFrequencyFromNote SInt32 semiTones SInt32 octave 4 float CalculateFrequencyFromMIDINote SInt32 midiNoteNumber File BleepMachine.mm BleepMachine.mm WgHeroPrototype Created.. 63 E4 64 F4 65 F#4 66 G4 67 G#4 68 A4 69 A#4 70 B4 71 C5 72 float CalculateFrequencyFromNote SInt32 semiTones SInt32 octave semiTones 12 octave 4 float root 440.f float fn powf 2.f float semiTones 12.f root return fn float CalculateFrequencyFromMIDINote.. 66 G4 67 G#4 68 A4 69 A#4 70 B4 71 C5 72 float CalculateFrequencyFromNote SInt32 semiTones SInt32 octave semiTones 12 octave 4 float root 440.f float fn powf 2.f float semiTones 12.f root return fn float CalculateFrequencyFromMIDINote SInt32 midiNoteNumber..
C/C++/Obj-C Real-time algorithm to ascertain Note (not Pitch) from Vocal Input http://stackoverflow.com/questions/4062099/c-c-obj-c-real-time-algorithm-to-ascertain-note-not-pitch-from-vocal-input is a single human voice hopefully with negligible background interference although I may need to deal with this the octave is not important only the pitch class I am contemplating first smoothing the microphone input signal something like ySmoothedNew..
|