How to import and sync lyrics in Flash MP3

Source: Internet
Author: User
Tags file size modify two factor
Learn about several common forms of music:

1, MP3 (mpeg-1 audio Layer 3): Can be high quality, low sampling rate of digital audio files compression. In other words, audio files (mostly large files, such as WAV files) can compress files to a smaller extent when the sound loss is very small (the human ear simply cannot detect the quality).

2 WMA (Windows Media Audio): Microsoft in the Internet Audio, video field of the masterpiece. Often used for online listening and broadcasting preferred, WMA format is to reduce data flow but maintain the quality of the method to achieve a higher compression rate, the compression rate can generally reach 1:18.

3. WAV is also called a waveform sound file format, is the earliest digital audio format, Windows platform and its applications are widely supported. Using the 44.1kHz sampling frequency, 16-bit quantization digits, like the CD, the storage space requirements are too large to facilitate communication and dissemination.

Properties (Sample Frequency):

1, 5KHZ: only suitable for speaking sound

2, 11khz: the equivalent of telephone quality. is the standard CD sample rate of 1/2, is the lowest recommended quality

3, 22khz: the equivalent of FM broadcast sound quality. Equivalent to 1/2 of the standard CD sampling rate, is a common choice for web playback

4, 44khz: Theoretical CD quality limits. Standard CD Sample Rate

Number of sample bits:

such as: A piece of the same music information, 16-bit sound card can be divided into 64k,80k,96k,,, and other precision units to deal with, but the larger the number, the higher the resolution, the more real sound.

The higher the quality of the sampling frequency, the number of sampling digits (sound quality), the larger the volume of the music is also proportional to the two factor.
Understanding Goldwave Software

Similar to music editing software and Coolper2 and other. In contact with the 2 software, Goldwave is very small, friendly interface, of course, the most important is the ease of access and operability.

To make sure that the music is not recognized by Flash, first we have to consider the following questions:

1, again confirm cannot import the MP3 song is we need to edit the file. Including a 2-point factor: Music size, sound quality

We want to know that even if the same song volume size is different, there will be different levels of sound quality. A good quality, small volume of music for the MV is very useful.

2, search the network music resources, in the above 2 points on the basis of further determination. It is not without the possibility: equal quality song volume size difference of about 3 times times, and can be directly imported.

Of course, the above is only in the processing of music 2 points experience ~ It tells us to encounter things to find ways to solve, for the members engaged in Flash, or design, thinking of the active often can bring us a greater harvest! It's not just a solution to MP3.

Below we open the Goldwave software ~ to see how to operate

The problem with music not being imported is that the imported MP3 music does not match the format and attributes required by flash, so here we modify the music properties including the sound layer, Hz (Hertz) changes.

01, open Goldwave software. In the interface, find the Open or: File File---Open select Convert Song

02, after the music decompression, find the menu bar---"file." Import Select File "Save as"

Of course, if you need to crop the music segment, you can choose from the toolbar, here we no longer discuss.

03, in the pop-up menu, choose the Save type: MP3. Open the Properties menu

04, select the properties and modify

Sampling frequency: 22050HZ, has been equivalent to the standard CD sampling rate of 1/2. Sample bits: 64KPa, close to the truest sound

05, check the volume size, audition sound quality. Mainly for the size of the edited volume check, and quality confirmation: whether the volume to meet the needs of the music is clear

Then someone thought, I will be better to set the high effect! ~ No problem! But to know the music effect is good, in flash volume is big. From the flash weight loss is not advisable, music is only part of the flash.

Of course, you can also save a lower sampling frequency, sampling the number of digits, so that music volume is smaller ~ sound quality according to the needs of each person to do:

We choose a better sound quality at the same time small size, which is our combination of flash music requirements. Music 1~2m above, the overall SWF file size, to download, playback is fluent or have influence, also we should consider.

06, back to Flash software, import mp3, normal import and check the library components

The sound property settings for Flash. Here makes me feel a bit, each can lose weight link do not let go, of course, also play jokes:

07, open the Library panel, select the right mouse button, select "Export Settings"

08. Select "Sound Settings"--Change "default" to "MP3". Once again, bit rate, quality settings.

09, and then select "Output"--sound settings, to modify settings

View SWF file has been reduced to 1.33m, of course, can be reduced to lower, 16KPS 800K, but then the quality is not guaranteed ~ so advocating reasonable and appropriate distribution of music quality and size

  Here we will make the lyrics and music synchronization ~  

Lyrics Sync, more for the title in the SWF production. Let's take a look at the lyrics, music sync

01, click on the music file, the right mouse button to select "Link Properties", modify the identifier "music" as shown below

02, the new layer is named "text"

03, enter the first line of lyrics, open the property panel and modify the Text property to "dynamic", the argument is "X"

Insert the following code at frame 1th:

inc = 0;
Music = new Sound ();
Music.attachsound ("Music");
Music.start ();

Executing sound files in the import library

04, new Layer 2, named "as" layer, the first frame inserts the following code:

Stop ();
This.onenterframe = function () {
if (inc>10) {
gotoAndStop (1);
}
Labeltimelist = [5, 11.5, 16, 21.5, 26.5, 31.5];
Musictext = ["Such air is not enough for the heart", "wind-blown leaves gently rustling", "like your Eyes beat the fascinating Sparks", "How many kinds of happy sadness we share", "hug each other brilliant dream"];
if (Gettimer () >labeltimelist[inc]*1000) {
x = Musictext[inc];
inc = = inc++;
}
};
This.onenterframe = function () {//custom functions, executing custom functions when this scene is loaded
if (Gettimer () >labeltimelist[inc]*1000) {//If the time is greater than the download time. The value of the x variable is musictext[inc], the INC variable plus one after the return value to the INC
x = Musictext[inc];
inc = = inc++;
}
};
LABELTIMELIST=[5,11.5,16,21.5,26.5,31.5]//The time of the lyrics "up" respectively

05, Ctrl+enter return test.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.