Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-23-2011, 04:50 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 3
Fizzwizz is on a distinguished road
Default Generating sound

Hi all

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
Fizzwizz is offline   Reply With Quote
Old 02-23-2011, 05:12 PM   #2 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 28
karatebasker is on a distinguished road
Default

Quote:
Originally Posted by Fizzwizz View Post
Hi all

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!
karatebasker is offline   Reply With Quote
Old 03-10-2011, 01:36 PM   #3 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 3
Fizzwizz is on a distinguished road
Default

Quote:
Originally Posted by karatebasker View Post
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.
Hi Karatebasker.

Thanks for the reply. I'll have a look through and see how I manage.

... Fizz
Fizzwizz is offline   Reply With Quote
Old 03-10-2011, 01:59 PM   #4 (permalink)
Registered Member
 
Join Date: Mar 2011
Location: The Netherlands
Posts: 44
Hollance is on a distinguished road
Default

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.

https://github.com/hollance/AudioBufferPlayer
https://github.com/hollance/AVBufferPlayer

I also wrote a blog post about doing sound synthesis that you might find useful: Sound Synthesis on the iPhone – Hollance: Professional Freelance Software Development for iPhone and iPad
Hollance is offline   Reply With Quote
Old 03-19-2011, 12:07 PM   #5 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 3
Fizzwizz is on a distinguished road
Default

Hi Hollance, thanks for that too. I'll read through these references and see how I get on.

Thanks ... Fizz
Fizzwizz is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, sound, white noise

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 371
18 members and 353 guests
Absentia, akphyo, apatsufas, BinHex, cpsclicker, dre, Error404, Gaz, gmarro, jeroenkeij, Kirkout, mottdog, Music Man, PavelMik, teebee74, whitey99, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,666
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, cpsclicker
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:15 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0