Huntingtons disease (HD), also known as Huntingtons chorea, is a neurodegenerative disease that is mostly inherited. The earliest symptoms are often subtle problems with mood or mental abilities. A general lack of coordination and an unsteady gait often follow. It is also a basal ganglia disease causing a hyperkinetic movement disorder known as chorea. As the disease advances, uncoordinated, involuntary body movements of chorea become more apparent. Physical abilities gradually worsen until coordinated movement becomes difficult and the person is unable to talk. Mental abilities generally decline into dementia. The specific symptoms vary somewhat between people. Symptoms usually begin between 30 and 50 years of age but can start at any age. The disease may develop earlier in each successive generation. About eight percent of cases start before the age of 20 years, and are known as juvenile HD, which typically present with the slow movement symptoms of Parkinsons disease rather than those of chorea.HD is typically inherited from an affected parent, who carries a mutation in the huntingtin gene (HTT). However, up to 10% of cases are due to a new mutation. The huntingtin gene provides the genetic information for huntingtin protein (Htt). Expansion of CAG repeats of cytosine-adenine-guanine (known as a trinucleotide repeat expansion) in the gene coding for the huntingtin protein results in an abnormal mutant protein (mHtt), which gradually damages brain cells through a number of possible mechanisms. Diagnosis is by genetic testing, which can be carried out at any time, regardless of whether or not symptoms are present.
The rest of the header contains the number of samples, position of the frame, channel assignment, and optionally the sample rate and bit depth. The data block contains the audio information.Metadata in FLAC precedes the audio. Properties like the sample rate and the number of channels are always contained in the metadata. It may also contain other information, the album cover for example. FLAC uses Vorbis comments for some types of metadata, like the title and artist name. Encoding and decoding
The FLAC encoding algorithm consists of multiple stages. In the first stage, the input audio is split into blocks. If the audio contains multiple channels, each channel is encoded separately as a subblock. The encoder then tries to find a good mathematical approximation of the block, either by fitting a simple polynomial, or through general linear predictive coding. A description of the approximation, which is only a few bytes in length, is then written. Finally, the difference between the approximation and the input, called residual, is encoded using Rice coding. In many cases, a description of the approximation and the encoded residual takes up less space than using pulse code modulation.The decoding process is the reverse of encoding. The compressed residual is first decoded. The description of the mathematical approximation is then used to calculate a waveform. The result is formed by adding the residual and the calculated waveform. As FLAC compresses losslessly, the decoded waveform is identical to the waveform before encoding. For two-channel stereo, the encoder may choose to joint encode the audio.