Three ways to sync flash sounds with lyrics

Source: Internet
Author: User
Tags current time

Method One

• Import a sound file, create a sound layer, open the sound panel at the first frame of the sound layer, select the sound file you want to use, and set the sound synchronization property to be a data stream, with a cycle of 0 times

• Estimate the number of frames used for the sound layer, frame number = Playback time * Frame frequency. Look at the bottom of the right picture, where "16.8 S" means the music will play for 16.8 seconds. If your frame frequency is 12fps, then the total frame should be around 200 frames.

• Insert a blank keyframe in the appropriate place by pressing F5. Drag the last frame of the sound layer (relative) until a blank frame appears, click to select the last frame of the sound, and then drag the mouse to the right to select all the blank frames, then right-click and click to clear the frame.

• Create a text animation layer, press ENTER to play the sound, because the sound is the data flow form, you can refer to the voice of the layer to add lyrics.

Method Two

• First step, same method one, just the sound synchronization properties are synchronized for the default event.

· Create a text animation layer, contrast the sound waveform, add the corresponding lyrics at the trough of the sound. In general, the waveforms we see on the timeline panel are very inconspicuous and cannot determine the trough. Don't worry, click the Edit button on the figure (3). Here we are not editing sounds, but looking at waveforms. The waveform you see in the Sound editing panel is the same as seen on the timeline panel by default. Click the Zoom button shown in figure (3) below the panel to reduce the waveform, we can see the waveform shown in figure (4), where the red line is the trough, the first trough is obviously in the first frame.

• The ruler of the wave chart is calculated by default in time seconds, using frame number = Play time * frame rate. For convenience, we set the frame to the ruler unit and click on the Fourth button on the figure (3). It can be found that the second trough should be around 80th. If you ask for precision, click the enlarge button to know exactly what frame it is.

• Add the first line to the first frame and add the second line to the next frame in the frame where the second trough is located, and so on.

Method Three

• Import a sound file, create a text animation layer, then write the lyrics, each frame corresponds to a line of lyrics.

• Create a new blank corner for this movie clip.

• Create a corner of this layer. In the first frame drag the blank corner of this movie clip and add the frame angle to this stop

• In the gallery panel, right-click the sound file we want to use, select the connection from the pop-up menu, select "Export for Action script" in the link option and "Export in first frame", and then type MyMusic in the identifier input box to associate the sound.

• Select the blank corner of this movie clip and write the following code:

Onclipevent (load) {//download movie clip triggers event

Music = new Sound (); Customizing a "Music" sound Object

Music.attachsound ("MyMusic"); Bundle sound, MyMusic the ID of the associated sound

Music.start (); Play sound

inc = 0; Define variables, give initial values

Timerstart = Gettimer (); Defines the time at which the sound is initially played equal to the time of the current time.

Labeltimelist = [4, 8, 11, 15];

Customize an array to set the time (in seconds) that each line of lyrics appears, and use Media Player to get the value of each element.

}

Onclipevent (enterframe) {//Whenever a movie clip exists, triggers an event

if (Gettimer ()-timerstart>labeltimelist[inc]*1000) {

Read the current time and compare it to the beginning, if it is greater than the time set,

To the next frame, that is, to play the next line of lyrics

inc = = inc++;

_root.nextframe ();

}

}

• Return to the results you can get.

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.