Can you actually create a sound on iPhone?
createSound() seems to be a misnomer for 'play sound file'. Is there a way to create sound on the iPhone - e.g, like you could do with IBM BASIC 30 years ago? How do these 'Ocarina' - type apps work?
regards,
JH
3 Answers
-
Yeah, createSound follows our factory pattern for creating instances. But, in this case, it doesn't actually allow you to create a sound arbitrarily.
Are you simply looking to be able to provide attributes like hertz, duration, pitch, etc?
-
Yes, just a basic SOUND(frequency, duration) would be great for people doing games I would think. Surely the piano app on my iPod doesn't play a sound file every time I hit a key?
regards,
JH
-
this sounds (ho ho) like a great idea for a sound generation module ;)
jeff: I'd add 'shape' to that list too (ie: square, sine, sawtooth, etc) ;)
I see there's something called 'SoundEngine' out there.