diff options
Diffstat (limited to '_posts/2022-07-05-what-would-dna-sound-if-synthesized.md')
| -rw-r--r-- | _posts/2022-07-05-what-would-dna-sound-if-synthesized.md | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/_posts/2022-07-05-what-would-dna-sound-if-synthesized.md b/_posts/2022-07-05-what-would-dna-sound-if-synthesized.md index 7aaac68..6efe559 100644 --- a/_posts/2022-07-05-what-would-dna-sound-if-synthesized.md +++ b/_posts/2022-07-05-what-would-dna-sound-if-synthesized.md | |||
| @@ -178,7 +178,7 @@ An example spectrogram of Ludwig van Beethoven Symphony No. 6 First movement. | |||
| 178 | <source src="/assets/posts/dna-synthesized/symphony-no6-1st-movement.mp3" type="audio/mpeg"> | 178 | <source src="/assets/posts/dna-synthesized/symphony-no6-1st-movement.mp3" type="audio/mpeg"> |
| 179 | </audio> | 179 | </audio> |
| 180 | 180 | ||
| 181 |  | 181 | {:loading="lazy"} |
| 182 | 182 | ||
| 183 | The other option could also be in combination with | 183 | The other option could also be in combination with |
| 184 | [gnuplot](http://www.gnuplot.info/). This would require an intermediary step, | 184 | [gnuplot](http://www.gnuplot.info/). This would require an intermediary step, |
| @@ -233,7 +233,7 @@ spectrogram based on a WAV file. | |||
| 233 | <source src="/assets/posts/dna-synthesized/quote/out.mp3" type="audio/mpeg"> | 233 | <source src="/assets/posts/dna-synthesized/quote/out.mp3" type="audio/mpeg"> |
| 234 | </audio> | 234 | </audio> |
| 235 | 235 | ||
| 236 |  | 236 | {:loading="lazy"} |
| 237 | 237 | ||
| 238 | ### Mouse | 238 | ### Mouse |
| 239 | 239 | ||
| @@ -245,7 +245,7 @@ here](http://ftp.ensembl.org/pub/release-106/fasta/mus_musculus/dna/). | |||
| 245 | <source src="/assets/posts/dna-synthesized/mouse/out.mp3" type="audio/mpeg"> | 245 | <source src="/assets/posts/dna-synthesized/mouse/out.mp3" type="audio/mpeg"> |
| 246 | </audio> | 246 | </audio> |
| 247 | 247 | ||
| 248 |  | 248 | {:loading="lazy"} |
| 249 | 249 | ||
| 250 | ### Bison | 250 | ### Bison |
| 251 | 251 | ||
| @@ -257,7 +257,7 @@ here](http://ftp.ensembl.org/pub/release-106/fasta/bison_bison_bison/cdna/). | |||
| 257 | <source src="/assets/posts/dna-synthesized/bison/out.mp3" type="audio/mpeg"> | 257 | <source src="/assets/posts/dna-synthesized/bison/out.mp3" type="audio/mpeg"> |
| 258 | </audio> | 258 | </audio> |
| 259 | 259 | ||
| 260 |  | 260 | {:loading="lazy"} |
| 261 | 261 | ||
| 262 | ### Taurus | 262 | ### Taurus |
| 263 | 263 | ||
| @@ -269,7 +269,7 @@ here](http://ftp.ensembl.org/pub/release-106/fasta/bos_taurus/cdna/). | |||
| 269 | <source src="/assets/posts/dna-synthesized/taurus/out.mp3" type="audio/mpeg"> | 269 | <source src="/assets/posts/dna-synthesized/taurus/out.mp3" type="audio/mpeg"> |
| 270 | </audio> | 270 | </audio> |
| 271 | 271 | ||
| 272 |  | 272 | {:loading="lazy"} |
| 273 | 273 | ||
| 274 | ## Making a drummer out of a DNA sequence | 274 | ## Making a drummer out of a DNA sequence |
| 275 | 275 | ||
| @@ -282,11 +282,11 @@ Elektron is connected to my MacBook via USB cable and audio out is patched to a | |||
| 282 | Sony Bluetooth speaker I have that supports 3.5 mm audio in. Elektron doesn't | 282 | Sony Bluetooth speaker I have that supports 3.5 mm audio in. Elektron doesn't |
| 283 | have internal speakers. | 283 | have internal speakers. |
| 284 | 284 | ||
| 285 |  | 285 | {:loading="lazy"} |
| 286 | 286 | ||
| 287 |  | 287 | {:loading="lazy"} |
| 288 | 288 | ||
| 289 |  | 289 | {:loading="lazy"} |
| 290 | 290 | ||
| 291 | For communicating with Elektron, I choose `pygame` Python module that has MIDI | 291 | For communicating with Elektron, I choose `pygame` Python module that has MIDI |
| 292 | built in. With this, it was rather simple to send notes to the device. All I did | 292 | built in. With this, it was rather simple to send notes to the device. All I did |
| @@ -295,7 +295,7 @@ was map MIDI notes to the actual Nucleotides. | |||
| 295 | Before all of this I also checked Audio MIDI Setup app under MacOS and checked | 295 | Before all of this I also checked Audio MIDI Setup app under MacOS and checked |
| 296 | MIDI Studio by pressing ⌘-2. | 296 | MIDI Studio by pressing ⌘-2. |
| 297 | 297 | ||
| 298 |  | 298 | {:loading="lazy"} |
| 299 | 299 | ||
| 300 | The whole script that parses and send notes to the Elektron looks like this. | 300 | The whole script that parses and send notes to the Elektron looks like this. |
| 301 | 301 | ||
