From 2f5ea5f4982d6276881c9a3342ed8847ebc7d326 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 5 Aug 2023 12:09:37 +0200 Subject: Moved assets to posts --- ...22-07-05-what-would-dna-sound-if-synthesized.md | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'content/posts/2022-07-05-what-would-dna-sound-if-synthesized.md') diff --git a/content/posts/2022-07-05-what-would-dna-sound-if-synthesized.md b/content/posts/2022-07-05-what-would-dna-sound-if-synthesized.md index 968341c..cf0755f 100644 --- a/content/posts/2022-07-05-what-would-dna-sound-if-synthesized.md +++ b/content/posts/2022-07-05-what-would-dna-sound-if-synthesized.md @@ -174,10 +174,10 @@ sox output.wav -n spectrogram -o spectrogram.png An example spectrogram of Ludwig van Beethoven Symphony No. 6 First movement. -![Ludwig van Beethoven Symphony No. 6 First movement](/assets/dna-synthesized/symphony-no6-1st-movement.png) +![Ludwig van Beethoven Symphony No. 6 First movement](/posts/dna-synthesized/symphony-no6-1st-movement.png) The other option could also be in combination with [gnuplot](http://www.gnuplot.info/). This would require an intermediary step, @@ -229,10 +229,10 @@ spectrogram based on a WAV file. ### Niels Bohr quote -![Spectogram](/assets/dna-synthesized/quote/spectogram.png) +![Spectogram](/posts/dna-synthesized/quote/spectogram.png) ### Mouse @@ -241,10 +241,10 @@ can get [genom data here](http://ftp.ensembl.org/pub/release-106/fasta/mus_musculus/dna/). -![Spectogram](/assets/dna-synthesized/mouse/spectogram.png) +![Spectogram](/posts/dna-synthesized/mouse/spectogram.png) ### Bison @@ -253,10 +253,10 @@ get [genom data here](http://ftp.ensembl.org/pub/release-106/fasta/bison_bison_bison/cdna/). -![Spectogram](/assets/dna-synthesized/bison/spectogram.png) +![Spectogram](/posts/dna-synthesized/bison/spectogram.png) ### Taurus @@ -265,10 +265,10 @@ This is part of a taurus genome `Bos_taurus.ARS-UCD1.2.cdna`. You can get here](http://ftp.ensembl.org/pub/release-106/fasta/bos_taurus/cdna/). -![Spectogram](/assets/dna-synthesized/taurus/spectogram.png) +![Spectogram](/posts/dna-synthesized/taurus/spectogram.png) ## Making a drummer out of a DNA sequence @@ -281,11 +281,11 @@ Elektron is connected to my MacBook via USB cable and audio out is patched to a Sony Bluetooth speaker I have that supports 3.5 mm audio in. Elektron doesn't have internal speakers. -![](/assets/dna-synthesized/elektron/IMG_0619.jpg) +![](/posts/dna-synthesized/elektron/IMG_0619.jpg) -![](/assets/dna-synthesized/elektron/IMG_0620.jpg) +![](/posts/dna-synthesized/elektron/IMG_0620.jpg) -![](/assets/dna-synthesized/elektron/IMG_0622.jpg) +![](/posts/dna-synthesized/elektron/IMG_0622.jpg) For communicating with Elektron, I choose `pygame` Python module that has MIDI built in. With this, it was rather simple to send notes to the device. All I did @@ -294,7 +294,7 @@ was map MIDI notes to the actual Nucleotides. Before all of this I also checked Audio MIDI Setup app under MacOS and checked MIDI Studio by pressing ⌘-2. -![](/assets/dna-synthesized/elektron/midi-studio.jpg) +![](/posts/dna-synthesized/elektron/midi-studio.jpg) The whole script that parses and send notes to the Elektron looks like this. @@ -336,7 +336,7 @@ del player pygame.midi.quit() ``` - + All of this could be made much more interesting if I choose different instruments for different Nucleotides, or doing more funky stuff with Elektron. -- cgit v1.2.3