8 Replies Latest reply on Jun 26, 2013 9:05 AM by resdesign

    How to put many sounds in edge animate ?

    Valérie Lapointe

      Hello, I have a problem when I put many sounds in my animation (in the code source). Just one sound play at all. Maybe I made a mistake or it is possible to have many sounds in edge ? Thanks.

        • 1. Re: How to put many sounds in edge animate ?
          resdesign Adobe Community Professional & MVP

          Are you trying to use several sounds at the same time?

          There is a very good way to do it with EdgeCommons.

           

          In edge composition I added:

          // insert code to be run when the symbol is created here

           

           

          try {

                    yepnope({

                              load: "http://simonwidjaja.github.com/EdgeCommons/live/EdgeCommons-0.6.0.js",

                              callback: function() {

                    // Load sound manifest (e.g. in creationComplete)

                    var assetsPath = "media/";

                    EC.Sound.setup(

                               [

                                                    {src: assetsPath + "bird1.mp3|" + assetsPath + "bird1.ogg", id: "bird1"},

                                                  {src: assetsPath + "bird2.mp3|" + assetsPath + "bird2.ogg", id: 'bird2'},

                                                  {src: assetsPath + "cow.mp3|" + assetsPath + "cow.ogg", id: 'cow'},

                                                  {src: assetsPath + "crowd1.mp3|" + assetsPath + "crowd1.ogg", id: 'crowd1'},

                                                  {src: assetsPath + "manor.mp3|" + assetsPath + "manor.ogg", id: 'manor'},

                                                  {src: assetsPath + "church.mp3|" + assetsPath + "church.ogg", id: 'church'},

                                                  {src: assetsPath + "rooster.mp3|" + assetsPath + "rooster.ogg", id: 'rooster'},

                                                  {src: assetsPath + "pond.mp3|" + assetsPath + "pond.ogg", id: 'pond'},

                                                  {src: assetsPath + "trash.mp3|" + assetsPath + "trash.ogg", id: 'trash'},

                                                  {src: assetsPath + "plant.mp3|" + assetsPath + "plant.ogg", id: 'plant'},

                               ],

                               function(){ EC.info("Sound setup finished", "Sound with Edge Commons"); }

                    );

           

           

           

           

                                        }

                    });

          }

          catch(error) {

                    console.error("sw", error);

          }

           

           

          Then on mouseover I have for example:

          sym.$("btn0").mouseover(function(){

           

                    EC.Sound.play("bird2");

          });

          sym.$("btn0").mouseout(function(){

           

                    EC.Sound.stop("bird2");

           

          });

          1 person found this helpful
          • 2. Re: How to put many sounds in edge animate ?
            Valérie Lapointe Level 1

            I dont know Edge Commons, ...but i'm gonna try... thanks !

            • 3. Re: How to put many sounds in edge animate ?
              Jacksoneon Level 1

              Hi,

               

              I am also trying to add sound to Edge using EdgeCommons. I'm building something for DPS to run everything in an iPad unit.

               

              Is it possible to source the EdgeCommons script from your computer (Edge comp folder) instead of github? To use the library natively? Is it okay to copy and paste the script to a .js file?

               

              I have tried without luck yet.

              • 4. Re: How to put many sounds in edge animate ?
                resdesign Adobe Community Professional & MVP

                Not that I know. Check Simon's site on github for more info.

                https://github.com/simonwidjaja/EdgeCommons

                • 5. Re: How to put many sounds in edge animate ?
                  roland.cahen@ensci.com

                  Hello,

                  I don't understand why sound designers should code more than graphic designers.

                  This is not fair at all.

                  Why not having sound capabilities as well as visual in Edge ?

                  html5 allows it and even laid back ios seems to go for it.

                  So should we not use sounds in interactivity anymore or stay silent because it is useless ?

                  When Edge will add all the necessary sound interactivity features ?

                  • 6. Re: How to put many sounds in edge animate ?
                    resdesign Adobe Community Professional & MVP

                    There are several discussions about sound in this forum as well as the old preview forum. Sound is tricky in html5 since not all browsers can play the same kind of files. I recommend that you read these threads and decide how you want to proceed. I find Edge Commons practical but you can also create sound objects.

                    • 7. Re: How to put many sounds in edge animate ?
                      designedbyjackley

                      I was getting some unpredicable sound results when using buzz.js so I decided to move to the Edge commons sound JS method... but using the EC how would I reference it from a nested symbol?

                      • 8. Re: How to put many sounds in edge animate ?
                        resdesign Adobe Community Professional & MVP

                        To stop sound  with edge commons use:

                        //composition ready sound file

                        {src: assetsPath + "bird2.mp3|" + assetsPath + "bird2.ogg", id: 'bird2'},

                         

                        // button has:

                        EC.Sound.stop("bird2");

                         

                        Very rudimentary sample made a long time ago here:

                        https://www.box.com/s/3cf7sh7mtwzpvfqmynt1