adapt a class to an internal sound

Explorer ,
Jan 10, 2021 Jan 10, 2021

Copy link to clipboard

Copied

 

//create an MP3Pitch instance and load a sound
var mp3:MP3Pitch = new MP3Pitch("/path/to/your/file.mp3");
//change the pitch via rate setter
mp3.rate += 0.5

 

this is the code to adapt the MP3Pitch class  to a loaded sound. Could someone tell me how i adapt it for an internal sound?

thanks

Views

72

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jan 10, 2021 Jan 10, 2021

Copy link to clipboard

Copied

no one can answer that unless they're familiar with the MP3Pitch class. 

 

but, if you mean the class here, cambiar el pitch de un sonido para una app con as3 - Adobe Support Community - 11645350

you'll need to edit the class to accept a switch (some variable to indicate a sound to initialize via linkage id instead of load path) in the constructor, or some other way handling loading vs linkage id outside the constructor.

 

if you mean some other class, the answer could be different.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 10, 2021 Jan 10, 2021

Copy link to clipboard

Copied

Hi. Thank you very much for the reply. I don't mean that class. It has nothing to do with the question you are referring to. This code I got from here:

 

https://stackoverflow.com/questions/2345630/controlling-sound-pitch-with-actionscript-3-0


here comes the whole code and how to apply it in animate cc (which is what I sent to the community). What happens is that this code is designed for an mp3 that is loaded (external) and I want to apply it to an internal mp3 in my library.

I am trying without success. If you could help me it would be great Thank you very much !!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jan 10, 2021 Jan 10, 2021

Copy link to clipboard

Copied

constructor looks the same, so same answer.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 18, 2021 Jan 18, 2021

Copy link to clipboard

Copied

Muchas gracias por responder. Ahí ando intentando adaparla a mi aplicación. Si tengo problemas ya escribo. Gracias!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jan 18, 2021 Jan 18, 2021

Copy link to clipboard

Copied

LATEST

you're welcome.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines