Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked May 29th 2010 by John Holman
  • createsound()
  • iphone
  • sound
0 Comments

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?

    — answered May 29th 2010 by Jeff Haynie
    permalink
    0 Comments
  • 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

    — answered May 29th 2010 by John Holman
    permalink
    0 Comments
  • 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.

    — answered May 29th 2010 by Kosso
    permalink
    1 Comment
    • This is open source and almost there - at least in playing short sharp sounds without a lag:
      http://github.com/zoul/Finch/
      JH

      — commented May 29th 2010 by John Holman
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.