Skip navigation
4oursword
Currently Being Moderated

Music Player with speed control

Oct 18, 2013 1:15 AM

Tags: #problem #flash #cs6 #actionscript_3

Hello,

I am trying to create a music player for a college project which allows the user to choose from a number of sounds and apply effects to them. I believe the easiest was to do this is have several copies of each file and somehow switch between them, staying at the same point- i.e. the sound gets to 1:23, I press a button and then a deeper version of the same sound would start at 1:23.

Is this the easiest way to do this, or is there an easier way?

And how would I go about creating this?

 
Replies
  • Currently Being Moderated
    Oct 18, 2013 5:00 AM   in reply to 4oursword
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 20, 2013 11:33 PM   in reply to 4oursword

    The firsts step would be to look into the project and see how the soundfiles are loaded.

    Are they in the Library or are they streamed from somewhere outside the shockwave?

    Then you could substitute theses soundfiles with your own.

    The solution you thought of in your first post might seem easy at first sight but it will get impractibale very fast.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 28, 2013 12:25 AM   in reply to 4oursword

    Its simple:

    ...

    public function MP3Pitch( url: String )

    {

    _target = new ByteArray();

     

    _mp3 = new Sound();

    _mp3.addEventListener( Event.COMPLETE, complete );

    _mp3.load( new URLRequest( url ) );

    ...

     

    //in your main fla call

     

    var song:MP3Pitch  = new MP3Pitch("mySong.mp3");

     

    //this points at an mp3 file that is in the same directory as your published swf

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points