Fade out MP3 individually

Tie this code to a button, if I repetitive press as  fast as I can, an error exception would appear in the application. I  found that it would not throw an error if I stop the sound when it  completely fade out. However, I wish the fade out function could stop  the sound individually, not stop o1_1 together. Similar to a piano keyboard, how do I do that?
private var s1_1:Sound = new Sound();
private var o1_1:SoundChannel = new SoundChannel();
private static const a1_1:String = "1.mp3";
private function p1_1():void{
s1_1 = new Sound();
s1_1.load(new URLRequest(a1_1));
o1_1=s1_1.play();
private function fade1_1():void{
TweenMax.to(o1_1, .35, {volume:0, onComplete:stop1_1});
    private function stop1_1():void {
//if I add, this code would only stop the sound altogether rather than individual. I wish to have each of the instance stop itself.
    o1_1.stop();
My error exception in Flex builder 3 using SDK 3.5 and AIR 2.0:
[SWF] snd.swf - 1,022,361 bytes after decompression
TypeError: Error #1009: Cannot access a property or method of a null object reference.
     at snd/st1_1()[...snd.mxml:44]
     at snd/___snd_Button1_mouseUp()[...snd.mxml:67]

the way I do it, or what I think you're trying to do, is go to the last frame you want to fade out, in your case the last frame, go to edit and select 'create still image' or something to that effect, and in the raw footage bank a 5second still image should apear of that frame. then click and drag it, go to the transition section and select the type of fade out you wish to use. Hope that helped.

Similar Messages

  • I am editing an idvd slideshow to have some of the music selections from itunes fade out at the end of each vacation segment using music reflecting the country visited.  Is there a way to fast-forward the slideshow to observe the where the music ends.

    I am editing an idvd slideshjow to have some of the music selections fade out at the end of each vacation segment.  Is there a way I can fast-forward through the slideshow so I can see where the music is ending and adjust the time to end properly?  (without repeatedly clicking the forward button on the e-remote) 

    Thanks very much, varjak paw.  I checked half a dozen tracks on my iMac from different albums which did not copy over, plus several which did copy over.  They all show the same location:
    Users/Christina/Music/iTunes/iTunes Media/Music/Brandenburg Concertos etc. (one example)
    What does this mean relative to the music which didn't copy? Is there another step?  or somewhere else I should look?
    And wow, thanks for the info about not having legal right to keep the tracks from the CDs.  I am embarrassed that I didn't know.  I gave most of my CDs to my sister. Before I delete all this highly prized music (400-500 tracks) -- if I get the CDs back from her and keep them at my house, can I continue to keep those tracks on my iMac?  (Sister does not have iTunes or even know what an mp3 is, so it's not like she has copied or imported the CDs -- I just didn't realize I needed to retain possession.)
    Or do I still need to remove all that music from my library?
    Thank you again for your help. 
    C.

  • Editing audio, Fade Out Problems!

    Hi I've imported an mp3 into iMovie to run alongside a movie. How do I remove the fade out all together so that it runs the whole track? I don't want to fade the track out, have already gone into audio editing panel. Any ideas?

    citybloc,
    I have not done any audio editing in iMovie 08, only in iMovie HD. In the 08 application I made my audio edits in GarageBand. You have pretty good control of it there.

  • Is it possible to burn a playlist to a CD with fade-outs & fade-ins?

    I can burn a playlist to a CD with start time and end time edits and I can regulate the number of seonds between tracks. But when I try to burn a CD that has been set to cross fade, the burn process ignores the fade out and fade in and just burns the songs at regular volume from start to finish. I unselected the automatic sound check feature, but that didn't solve the problem.

    jhcm4202 wrote:
    I can burn a playlist to a CD with start time and end time edits and I can regulate the number of seonds between tracks. But when I try to burn a CD that has been set to cross fade, the burn process ignores the fade out and fade in and just burns the songs at regular volume from start to finish. I unselected the automatic sound check feature, but that didn't solve the problem.
    The Crossfade effect only applies to playback in iTunes. It does not carry over to audio CDs burned using iTunes nor iPod transfers.
    My guess is you will need to doctor the individual audio files first with a third-party utility before burning these new tracks to a CD.
    Steve

  • Best way to fade out multiple tracks at the same level

    Is there a best way to fade out multiple tracks at the end of a song? I have read the manual and understand fading "A" track, but not if my song is ending and I want to fade out all tracks equally.
    I thought I could export the file as a wav or MP3 (like I would do if I was fading out an Apple loop), then bring it back in and fade the track I import it to, but wanted to know if anyone else had any tips or tricks they use.
    Thanks
    RH

    sigh...don't people search forums anymore?
    http://discussions.apple.com/thread.jspa?messageID=7042093&#7042093

  • Fade out and in

    Sorry, I know this is basic stuff. I have learned to fade out individual tracks, but not the entire song. Help, please?

    Usually song fade outs are made while mastering but if you really need to then open the mixer, enable automation and make a manual fade out.
    cheers
    rob

  • Audition CS5.5 fade out glitch

    Hello, I am experiencing a very frustrating glitch with Audition's fade out effect.  Occasionally when I apply a fade out to a clip it will have a sudden spike in volume at the very end of the fade out.  This happens in the audio preview as well as the exported audio.  This happens to about 1 in every 4 clips.  I have tried changing settings in Audition, reinstalling my audio driver, and even reinstalling Audition, but nothing fixes the problem.  I downloaded the trial of Audition CS6 and it does not have this glitch.  Any help would be greatly appreciated.

    "But don't worry, I have a fix for you. Upgrade to 6.0, because 6.0 doesn't do it!" was the only reason you gave for upgrading, hence my responce.  Adobe does not allow individual upgrades if you own Creative Suite, or have academic pricing for Audition, so I can either upgrade my whole Creative Suite for $360 or purchase a standalone copy of Audition for $350.
    "Am I eligible for upgrade pricing from a previous Creative Suite edition to a standalone CS component?
      No. You cannot upgrade from a Creative Suite edition to an individual CS component. To confirm your options and learn about the requirements for upgrades, check the upgrade eligibility chart on the buying guide page of the product you wish to purchase. Among other requirements, you must be able to provide the serial number for the product you wish to upgrade during installation."
    http://www.adobe.com/products/creativesuite/faq.html#purchasing-policy

  • QuickTime Pro Video fade-in fade-out How To?

    Hello
    I am a newcomer and I would like to know if it is possible to do between two video clips a fade-out and a fade-in? If not what could be a possible alternative solution?
    Many many thanks for all your support.
    Bernd

    For each text box you need place it on it's own video track stacked above each other.You can then define the position, fades, and opacity for each individual title.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Fade out of multiple software instrument tracks

    Can anyone tell me, or point to the place in the manual, or refer to a previous posting, for doing a fade out of multiple software instrument tracks all at the same time. I would prefer not to do automation of each track individually.
    Thanks

    When's National Talk Like A Pirate day, this year?
    I'm going to spend the day going... "Got any warez? Keygen! Keygen! Couldn't bung us a serial mate, could ya? Unlimited bandwidth, you little treasure, gonna grab me some booty!"
    Ah:
    http://www.talklikeapirate.com/
    (Mods, it's all just a bit'o'fun! Delete not all ye who enter here!)

  • Media Player fades out between tracks

    The Tour Media player seems to fade out the audio between tracks on a CD.  This is kind of annoying as some CD's intentially run one track into the next.  Is there a way to change this behavior?

    Sorry, i didn't see your post and I just posted the sme issue, it is really annoying, so much so that I am considering returning my Blackberry, I thrive on the MP3 use and this is not acceptable. try as i might I cannot find a Phon e Number to call RIM tech support, so thier not alowing me contact is going to lead to the loss of a sale on this phone and any future phones that I might have purchased from them.
                               Larry

  • Quick way to fade out audio on a clip

    FCE 4.0
    hi. is there a quick way to automatically have the audio fade out entirely at the end of a clip other than inserting keyframes and dragging it out that way? Scenario would be that I am doing a fade-in/fade-out video dissolve and would like the audio to do the same. when I tried the audio transitions of 0 or 3db (I can't tell any diff, btw) it doesn't seem to actually fade the audio to zero.

    more info... it seems that none of my audio transitions are working at all. I imported an MP3, rendered it, split it, and added some crossfades. Made the duration like 3 seconds just to be sure, and literally no adjustment is happening to the audio at all. Is there a setting I'm missing? Now, if I use the keyframes, I can adjust it fine. It's just not adjusting with the audio crossfade transitions.

  • I have 5 layers of texts with a white background on the bottom(V1). I want to cross dissolve to black at the same time on all layers. However they all don't disappear at the same time. It seems the top layer fades out last, and so on.

    I have 5 layers of texts with a white background on the bottom(V1). I want to cross dissolve to black at the same time on all layers. However they all don't disappear at the same time. It seems the top layer fades out last, and so on. These are 20 frame dissolves.

    FCP User Manual, page 798.
    You can condense multiple clips that are stacked above each other into a nest. The nest appears as a single clip in the Timeline. If you need to modify the individual clips inside after you have created the nest, it can be expanded again by double clicking it.

  • How do I fade-in/fade-out a song?

    Hi Everyone,
    I have a question about fade-in and fade-out of a song...How do I do it?
    I looked through the online help with the word "fade" and from a screen shot, it appears I can do this, but it doesn't say how. Can anyone please tell me how.
    Thanks
    iMac G5 (pre-built-in iSight)   Mac OS X (10.4.5)  

    from the "Track" Menu select "Show Master Track". It will appear as the last track on the GB timeline window. You will see a metallic pull down window on the track called "Master Volume", Click on the rectangular box to the left, it should turn blue.
    Now in the track area you will see a long horizontal line that is designated with a "0 db" marking and also a little purple ball right next to it.
    Head on down the line a few seconds into the track and click on the line. Another purple ball should appear.
    Go back to the first purple ball and click and hold on it. Then move it down to the bottom of the track. This is your fade up. Fade outs on the Master track ( or individual tracks) are done the same way. You can slide those purple points around, up or down or side to side. to change volume or time duration between transition points.
    In a few minutes you should get the hang of it all

  • Fade out of song? Fade icon does seem to do the trick.

    Hello,
    I have Logic Pro (Academic Version, which I believe should be the same as the full version--except I cannot update to the next version).
    I'm trying to fade out the end of the song, except I can't seem to do it with the fade icon. I can't seem to do it with any of my individual files with some exception.
    How can I achieve that typical 80's fade out of a song at the end? And what am I doing wrong?
    Thank you in advance.
    feflower

    Hello,
    Hello,
    I have Logic Pro (Academic Version, which I believe
    should be the same as the full version--except I
    cannot update to the next version).
    Cheers!
    I'm trying to fade out the end of the song, except I
    can't seem to do it with the fade icon. I can't seem
    to do it with any of my individual files with some
    exception.
    Use volume automation for song fadeouts...on the master output fader.
    How can I achieve that typical 80's fade out of a
    song at the end? And what am I doing wrong?
    For that,you'll need a time machine,mine rents out at 1,200 USD one way trip to that particular decade.You're not doing anything wrong,you are just using the wrong tool for what you wat to do,which is to fade out the entire mix.
    Thank you in advance.
    feflower
    Cheers

  • Music loop fade out by button between scenes

    Hi
    I have a infinite music loop and I am trying to have btn_start trigger a fade out on the music along with its original gotoAndPlay.
    I have two scenes, "opening" and "animation". btn_start and the following code are in the "opening" scene.
    the fade out will play along with the first couple seconds of "animation" since the gotoAndPlay connects to frame 1 of "animation"
    Can this be done? Please show me some lights of how to proceed this.
    stop();
    import flash.net.URLRequest;
    import flash.media.Sound;
    var url:URLRequest = new URLRequest("subtle.mp3");
    var snd:Sound = new Sound(url);
    snd.play(0, 17);
    btn_start.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
    gotoAndPlay(1, "animation");
    thanks!!

    you can use:
    stop();
    import flash.net.URLRequest;
    import flash.media.Sound;
    var fadeRate:Number = .01;  // number between 0 and 1.  the closer to 1, the faster the fade
    var url:URLRequest = new URLRequest("subtle.mp3");
    var snd:Sound = new Sound(url);
    var sc:SoundChannel=snd.play(0, 17);
    btn_start.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    function mouseDownHandler(event:MouseEvent):void {
    this.addEventListener(Event.ENTER_FRAME,fadesoundF);
    gotoAndPlay(1, "animation");
    function fadesoundF(e:Event):void{
    var st:SoundTransform=sc.soundTransform;
    st.volume-=fadeRate;
    if(st.volume<=0){
    this.removeEventListener(Event.ENTER_FRAME,fadesoundF);
    sc.soundTransform=st;

Maybe you are looking for

  • Illustrator (CS3) crashes on save

    My marketing guy called me this morning to request my help in diagnosing a problem with his Illustrator. He says he can do his work and get all the way through till he's done with whatever he's working on, and then when he goes to save it, he tells i

  • Using s-video with 2 monitor setup

    I have the stock video card that came with my G5 and am running 2 monitors. I would like to connect my TV to my Mac through s-video but only know of the DVI to s-video adaptor that would require the removal of one of my monitors. I am aware that I ma

  • PLEASE HELP!!!!!!​!! BLACKBERRY CURVE 8520 WON'T STOP REBOOTING

    I WAS UPGRADING ONE OF THE APPS ON MY PHONE, WHEN ASKED TO REBOOT NOW/LATER FOR COMPLETE INSTALLATION I CLICKED REBOOT NOW....... :@ SO FRUSTRATING, BECAUSE THE ONLY THING THAT SHOWS UP ON MY PHONE IS A WHITE SCREEN WITH THE HOUR GLASS MOVING, THEN A

  • TS4071 how do update my iphone to 10.7?

    i just want to be able to listen to the songs i bought

  • Levels in the TOC?

    How many numbering levels are supported in the TOC? In portrait author mode I can see my TOC taking shape as I add Chapters, Sections, and Headings.  Within a Section I now have several TOC entries which I have defined with Heading 1, and these are l