DNA Sequence

This algorithm converts a DNA sequence into a list of numbers. A DNA sequence is composed of four bases: adenine (A), thymine (T), cytosine (C), and guanine (G). The sequence can only contain the letters A, T, C, and G in either uppercase or lowercase; all non-letter characters will be ignored.
learn more

A.   Enter a DNA sequence in the space provided below:

    


B.   Choose how the bases should be grouped:

as single bases
as codons (groups of three bases)


C.   Select the method used to convert groups into values:

assign numbers to bases (A = 0, T = 1, C = 2, G = 3)
count duplications



Next, normalize the algorithm's output by selecting from the options on the right. The values you derive will represent the pitch of each note. Move to Step 3 after making your choices.
learn more
keyboard

Scaling:
Use values from to
perform division operation
perform modulo operation
learn more






Modification:
Convert each to a
Reverse
Invert
learn more


ALGORITHM OUTPUT VALUES



DERIVED PITCH VALUES



Now choose the duration of each note. You can either use uniform durations, or you can normalize the algorithm's output, as you did in Step 2. Proceed to Step 4 when done.
learn more

Use a for the duration of each note
learn more

Scaling:
Use values from to
perform division operation
perform modulo operation
learn more



Modification:
Convert each to a
Reverse
Invert
learn more


ALGORITHM OUTPUT VALUES



DERIVED DURATION VALUES



Click the Play button to listen to the notes with a MIDI player, or click Save MIDI to download a MIDI file, or click the Notate button to see the notes in sheet-music form.
learn more