CS 111 - 11/17/16 If we embed character information into the sound sample values, the resulting data will look like a normal sound sample We want to replace the lower order bits of the sound sample value with the ascii character information. Each sound sample is encoded in 16 bits Each ASCII character is encoded in 7 bits We want to replace the last 7 bits of the sound sample with the data from the ASCII character The modulus operator can determine how far a value is over a multiple of 1281 remainder = value % 128 modValue = value - remainder Assume we have the following value (shown in binary) value: 1110 1001 1101 1110 remainder: 101 1110 modValue: 1110 1001 1000 0000 a = decimal value 96 binary value of 110 0001 The embedded result is with the a hidden in the sound sample is: 1110 1001 1110 0001 character = 'a' asciiNum = ord (character) # number of 96 finalValue = modValue + asciiNum