Audio processing using java

The smallest unit of digital image is pixel

Solution

The smallest sound unit is called a frame For 8 - bit mono, it will be a byte For stereo 16 bit, it will be 4 bytes

It depends on what you want to do with it You need to be more specific to get a reasonable answer

Some possible actions are:

>Volume change > Pan > speed up or slow down playback, with or without.. > Pitch transfer > Spectrum Analysis

Much depends on the speaker Speakers have all different types of dynamic ranges, usually using a "bell curve" without an absolute upper or lower limit

Each frame of CD quality sound contains 4 bytes because it is stereo, 16 bits Multiply 4 bytes by 44100 to calculate the number of bytes per second

Mono has one channel and stereo has two

Generating simple sinusoidal sounds in code is not difficult For an example, see beeper

Many other effects can be created by using the ADSR (attack, delay, sustain, release) envelope of sound For example, applying the ADSR envelope of guitar notes to piano notes will make it sound as magical as piano, and vice versa

almost. Mono sounds like garbage (IMO), while stereo can make different instruments sound like they come from different positions, just like a band sitting in front of you

5.1 channel sound is a little more complex, usually just a simple "deception"

>Route the left channel through the left speaker. > Route the right channel through the right speaker. > Mix them evenly and place them in the center speaker. > Only low frequency sound is filtered and passed through a single subwoofer or subwoofer The human ear cannot easily distinguish the source of low frequency sound, so this is acceptable The subwoofer can be placed anywhere in the room and sounds the same

>To be honest, I don't know any sound format that actually stores 5 or 6 channels of sound. I think it all runs separately (for subwoofer) or mixed together (for center speaker) in hardware - time In any case, Java sound can only handle one or two channels directly

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>