A method and apparatus for modulating data modulates data having a length
of m-bits to a variable length code having a basic code length of n-bits.
A SYNC but insertion section adds a sync signal to a train of codes, after
a minimum run. The sync signal has a pattern that breaks a maximum run.