User Tools

Site Tools


atrac3p:serialized_band_envelopes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
atrac3p:serialized_band_envelopes [2010/03/20 14:11] – created megadiscmanatrac3p:serialized_band_envelopes [2010/10/21 21:52] (current) – Fix off-by-one in count of bands with envelopes megadiscman
Line 3: Line 3:
 Band envelopes are optional, their presence is indicated by a flag bit. If that bit is clear, the channel has no envelope info, otherwise, the number of stored band envelopes is stored. These envelopes are assigned to the bands starting at band 0. Another optional feature is envelope replication. If it is enabled, the total number of enveloped bands (should be bigger than the number of envelopes) is stored separately and the last stored envelope is repeated for all bands that don't have an explicit envelope. Band envelopes are optional, their presence is indicated by a flag bit. If that bit is clear, the channel has no envelope info, otherwise, the number of stored band envelopes is stored. These envelopes are assigned to the bands starting at band 0. Another optional feature is envelope replication. If it is enabled, the total number of enveloped bands (should be bigger than the number of envelopes) is stored separately and the last stored envelope is repeated for all bands that don't have an explicit envelope.
  
-The point counts for each band are followed by the Y coordinates of the envelope points for each band, which are in turn followed by all the X coordinates.+The point counts for each band are followed by the Y coordinates of the envelope points for each band, which are in turn followed by all the X coordinates. The point count is between 0 (no envelope present) and 7 (maximum point number). The Y coordinate is between 0 (factor: 2<sup>-6</sup>) and 15 (factor: 2<sup>+9</sup>), the X coordinate ranges between 0 and 31 (it is specified in units of four samples of the 128 samples in a band).
  
 ===== Encoding Scheme ===== ===== Encoding Scheme =====
Line 9: Line 9:
     * Four bits: count of **stored** envelopes - 1     * Four bits: count of **stored** envelopes - 1
     * One bit: Band replication enable, if set:     * One bit: Band replication enable, if set:
-      * Four bits: Count of bands that have envelopes (bigger than number of stored envelopes)+      * Four bits: Count of bands that have envelopes (bigger than number of stored envelopes) - 1
     * [[Serialized envelope point counts]]     * [[Serialized envelope point counts]]
     * [[Serialized envelope Y coordinates]]     * [[Serialized envelope Y coordinates]]
     * [[Serialized envelope X coordinates]]     * [[Serialized envelope X coordinates]]
  
atrac3p/serialized_band_envelopes.1269094298.txt.gz · Last modified: 2010/03/20 14:11 by megadiscman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki