Firstly as a new member to these fora a quick intro. I'm Fizz. In a former life I was a php/SQL coder, writing bespoke script for Internet based systems.
I no longer work professionally with IT, but my eye has been drawn by the limitless capabilities of iPhone applications. I have now started experimenting with Xcode. My knowledge of C++ is limited but there are some similarities with php.
This is my first project, and purely as a learning exercise I want to develop my first app. What I want to do is produce an algorithm to produce random sound (white noise). I know this has been done many times with the dozens of white noise (sleep inducing) apps already available, however I wish to get to the nuts and bolts of creating sound.
I can easily write the code to develop a random sequence of numbers, but I would like to know how to convert these numbers to sound.
Ay help would be appreciated, please write your responses assuming (correctly) I have the basic of iPhone development and C++ Knowledge.
Firstly as a new member to these fora a quick intro. I'm Fizz. In a former life I was a php/SQL coder, writing bespoke script for Internet based systems.
I no longer work professionally with IT, but my eye has been drawn by the limitless capabilities of iPhone applications. I have now started experimenting with Xcode. My knowledge of C++ is limited but there are some similarities with php.
This is my first project, and purely as a learning exercise I want to develop my first app. What I want to do is produce an algorithm to produce random sound (white noise). I know this has been done many times with the dozens of white noise (sleep inducing) apps already available, however I wish to get to the nuts and bolts of creating sound.
I can easily write the code to develop a random sequence of numbers, but I would like to know how to convert these numbers to sound.
Ay help would be appreciated, please write your responses assuming (correctly) I have the basic of iPhone development and C++ Knowledge.
Many thanks in advance ... Fizz
Hey fizz.
You should look into audio units, it has some amazing possibilities, though its sort of tedious to get you head around. Id imagine thats the way you have to go if you want to have that kind of control. http://timbolstad.com/2010/03/14/core-audio-getting-started this would be a good resource for you to get you started on creating a RemoteIO render callback and passing it a basic sine wave.
__________________ www.espenmusic.com Original quality music for your app/game.
Check out my site!
You should look into audio units, it has some amazing possibilities, though its sort of tedious to get you head around. Id imagine thats the way you have to go if you want to have that kind of control. http://timbolstad.com/2010/03/14/core-audio-getting-started this would be a good resource for you to get you started on creating a RemoteIO render callback and passing it a basic sine wave.
Hi Karatebasker.
Thanks for the reply. I'll have a look through and see how I manage.
I have two open source projects that will let you do sound synthesis. One is real time using Audio Queues, the other is non-real time and uses AVAudioPlayer. Both use the same principle of filling in a buffer with audio data.