AudioClip Distortion
Posted: Sat Feb 06, 2016 6:44 pm
Hello friends,
I am trying to figure out how to put sound clips into an app, which is ultimately destined for Android and iOS. I've seen some forum posts, and tutorials.
Right now, I'm only getting through the development environment portion of it, and already having a problem that seems really prohibitive.
I created some simple sounds using Ableton Live (professional music mixing program), and exported the sound clips I want as .wav files.
I sent the files over to myself via email (I did compress the folder they were in as .zip, in case this may be an issue, but I doubt it is, reason given shortly).
I saved my files and noted the correct filepath to one of the sounds to test. (now uncompressed, obviously).
I tested the uncompressed files out in Preview (since I use a Mac), and they sound perfect, both in tone and quality! *This is why I doubt the previous compression is the cause of the issue...*
I made a test button in my app and used this script:
play audioClip "/Users/philengland/Documents/App Inspired/Apps/LiveCode Apps/Swift Swipe/Audio Files/Grand Piano G#4.wav"
Now, when I press that button, I hear a horrifying, screechy foghorn version of the sound I am referencing. Obviously, the file is being accessed somehow, since it's indeed a zombie of my beautiful sound and not some other random garbage data of some sort, but the distortion is ear-shattering. What could be wrong? Why is LiveCode butchering the sound and how can I prevent said tonal slaughter?
Thanks in advance!
Phil E.
I am trying to figure out how to put sound clips into an app, which is ultimately destined for Android and iOS. I've seen some forum posts, and tutorials.
Right now, I'm only getting through the development environment portion of it, and already having a problem that seems really prohibitive.
I created some simple sounds using Ableton Live (professional music mixing program), and exported the sound clips I want as .wav files.
I sent the files over to myself via email (I did compress the folder they were in as .zip, in case this may be an issue, but I doubt it is, reason given shortly).
I saved my files and noted the correct filepath to one of the sounds to test. (now uncompressed, obviously).
I tested the uncompressed files out in Preview (since I use a Mac), and they sound perfect, both in tone and quality! *This is why I doubt the previous compression is the cause of the issue...*
I made a test button in my app and used this script:
play audioClip "/Users/philengland/Documents/App Inspired/Apps/LiveCode Apps/Swift Swipe/Audio Files/Grand Piano G#4.wav"
Now, when I press that button, I hear a horrifying, screechy foghorn version of the sound I am referencing. Obviously, the file is being accessed somehow, since it's indeed a zombie of my beautiful sound and not some other random garbage data of some sort, but the distortion is ear-shattering. What could be wrong? Why is LiveCode butchering the sound and how can I prevent said tonal slaughter?
Thanks in advance!
Phil E.