An open API service indexing awesome lists of open source software.

https://github.com/hohonuuli/dna-music

Some Scala code to convert fasta gene sequences into music
https://github.com/hohonuuli/dna-music

Last synced: 3 months ago
JSON representation

Some Scala code to convert fasta gene sequences into music

Awesome Lists containing this project

README

        

What?:

Some code to convert Gene sequences into songs.

Why?:

1) 'Cause I can
2) Haven't you ever wondered if genes would make good songs.

How?:

import hohonuuli.fasta._

// val f = new FastaNucleicAcidSeq(fastaString) // nucleic acid format
// val f = new FastaProteinSeq(fastaString) // amino acid format

val f = new FastaSeq(fastaString) // for ACGTU only
val s = new BasicSong(f)
DNAPlayer.play(s)

// DNAPlayer.save(s) // to save as midi file