Calculations+(Sound)

Calculating the file size in megabytes (Int 2)

 * If the original file size is given in bits, divide it by 8 to convert it into bytes
 * Divide the file size (in bytes) it by 1024 to get the answer in kilobytes and then divide the answer by 1024 to get the answer in Megabytes.

File size in Mb = File size in bytes / 1024 / 1024
 * Formula**

A MP3 file is 4,718,592 bytes in size. Calculate the file size in Megabytes File size = 4718592 / 1024 / 1024 = 4.5Mb
 * Example**

Terminology

 * The sample depth (bits) are the number of bits used to store each sample
 * The sample rate (Hz) is the number of samples taken per second
 * The sound time is the length of the track
 * The channels are the number of channels used to replay the track (mono = 1, stereo = 2)

Calculating the file size given the sample depth, sample rate, sound time and channels (Higher)
File size (bits) = sampling frequency (Hz) x sampling depth (bits) x length of sound (s) x channels
 * Formula**

A stereo song has to be recorded at CD quality. The song is 4 minutes and 8 seconds long. How much disk space would the captured song occupy? Settings for CD quality are:
 * Example**
 * Sampling frequency = 44100 Hz (44.1KHz)
 * Sampling depth = 16 bit

Length of song = 4 x 60 + 8 = 248 seconds File size (bits) = 44100 x 16 x 248 x 2 = 349977600 File size (bytes) = 349977600 / 8 = 43747200 File size (kilobytes) = 43747200 / 1024 = 42721.88 File size (megabytes) = 42721.875 / 8 = 41.72Mb

Questions (Int 2)
1. An MP3 file is 3,724,138 bytes in size. Calculate the file size in megabytes 2. An MP3 file is 5,101,012 bytes in size. Calculate the file size in megabytes 3. An audio sample is 563.2 bytes in size. Calculate the file size in kilobytes 4. An audio file is 24,000,000 bits in size. Calculate the file size in megabytes 5. An audio file is 32,275,911 bits in size. Calculate the file size in megabytes

Questions (Higher)
1. A stereo song has to be recorded at CD quality. The song is 2 minutes and 32 seconds long. What file size would the song have? 2. A stereo song has to be recorded at CD quality. The song is 4 minutes and 45 seconds long. What file size would the song have? 3. A 1 minute 15 second audio track is sampled in mono at 22.5KHz using an 8 bit sample rate. What file size would the track be? 4. A 32 second audio track is sampled in stereo at 22.5KHz using a 16 bit sample rate. What file size would the track be?