-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change pitch in music and/or sounds #30
Comments
https://github.com/philfrei/AudioCue has real time pitch/volume/panning changes. But it lacks ability to unpack compressed audio (you have to decompress .mp3, .ogg, etc., yourself). Might work as an alternative. |
Thanks. I have already tested it. I've been trying to play .ogg files with it just for funny and testing. BTW, I love the frog example. |
Neat to learn you know about the frogs! I get very little feedback. As an example of what would be needed, if you (or someone else) wants to tackle adding frequency shifting to TinySound, see the class: If I understand how Finn has set things up, he streams directly from ogg files using the libraries provided by Tritonus. AudioCue doesn't provide for decoding during playback. Instead, the entire ogg file has to be decoded and loaded into the AudioCue. I wrote an ugly tweak to the vorbis library to do this, for personal use, but am unclear on how and whether to release that code. Vorbis has an intermediate step in the decoding where data is in a normalized float state. That is the same format AudioCue uses internally. So I added some tweaks to intercept and output to a float[] instead of proceeding to convert to bytes and stream. |
I am very late to the conversation. Sorry. I'm afraid I probably won't have time to work on this feature. As philfrei pointed out, I've based the entire library around the assumption that the audio data is 16-bit linear PCM, and while the signal processing necessary for this feature probably isn't crazy, it's certainly non-trivial. |
Hi,
Is there any way to change pitch of a Music or Sound object in the same way volume or balance is changed?
I'm using this library for my project and this would be a great enchantment.
Thank you.
The text was updated successfully, but these errors were encountered: