We hope to convert the existing music into DNA sequence, transform the DNA into organism to mutate, and re-extract the fragment for sequencing, expecting to recognize the variations. To realize this, we exploited a set of codes based on commands, where each hexon corresponds to a manipulation command for operating music.
In order to convert the music to DNA, what we need first is an initial piece of music. When coding the music off the shelf, we set a fixed length passage composed of Center C of quarter note with appropriate quantity as the default. The length of this piece of music is fixed at 16 bars, each containing 4 beats (i.e. 16 semiquavers), which allows us to localize the specific note by using the fist four bases of the hexon. The concrete positioning method is that the former pair of bases locates a specific bar of the composition, and the latter pair of bases locates a specific 16th note of this bar. Note that we are here to operate the whole note where the 16th note is located (e.g. if this note is a quarter note, and we fixed the position on any sample point within this quarter note, which lasts a semiquaver, we will operate on the whole quarter note), solving the problem of encoding based on pitch sampling.
Localization
codon | number | codon | number |
---|---|---|---|
AA | 1 | AT | 2 |
AG | 3 | AC | 4 |
GA | 5 | GT | 6 |
GG | 7 | GC | 8 |
CA | 9 | CG | 10 |
CC | 11 | CT | 12 |
TA | 13 | TG | 14 |
TC | 15 | TT | 16 |
Finally, the last pair of bases of the hexon corresponds to one of the 16 manipulations on a note, including pitch and rhythm. The specific correspondence between hexon codon and manipulation is as follows:
Operation
Bases | Manipulation | notes |
---|---|---|
AA | skip | do nothing |
AT | skip | do nothing |
AG | skip | do nothing |
AC | empty | If the note is currently non-rest, change it to a rest; if the note is currently a rest, change it to the center C |
TA | +1 key | Raise the pitch of the note by one semitone |
TT | +1 in scale | Raise the pitch of the note by a note in the C major diatonic scale (CDEFGAB) |
TG | +1 in chord | Raise the pitch of the note by one note within the C major arpeggio (CEG) |
TC | +8 in scale | Raise the pitch of the note by an octave |
GA | -1 key | Decrease the pitch of the note by one semitone |
GT | -1 in scale | Decrease the pitch of the note by a note in the C major diatonic scale |
GG | -1 in chord | Decrease the pitch of the note by one note within the C major arpeggio |
GC | -8 in scale | Decrease the pitch of the note by an octave |
CA | divide | Split the note into two notes equally |
CT | eat after | Merge the note with the next note, wet the pitch of the note as the pitch of the former note |
CG | eat before | Merge the note with the previous note, set the pitch of the note as the pitch of the former note |
CC | cut | Split the note into three notes, the first 1/4 is a note, the middle 1/2 is a note, and the last 1/4 is a note |
Since successively raising or decreasing the pitch of note may cause the pitch to be too high or too low, which results in undesirable consequences, we stipulate that if any operation leads to a pitch out of the scope of C3-C6 (Center C is C4), it will be considered as invalid operation (i.e. do nothing).