diff options
Diffstat (limited to 'content/posts/2022-07-05-what-would-dna-sound-if-synthesized.md')
| -rw-r--r-- | content/posts/2022-07-05-what-would-dna-sound-if-synthesized.md | 8 |
1 files changed, 4 insertions, 4 deletions
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 cf0755f..136b9f4 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 | |||
| @@ -156,8 +156,8 @@ WAV files here are using short, 16 bit, signed integers for the sample size. | |||
| 156 | So, we multiply the floating-point data we have by 32767, the maximum value for | 156 | So, we multiply the floating-point data we have by 32767, the maximum value for |
| 157 | a short integer. | 157 | a short integer. |
| 158 | 158 | ||
| 159 | > It is theoretically possible to use the floating point -1.0 to 1.0 data | 159 | > It is theoretically possible to use the floating point -1.0 to 1.0 data |
| 160 | > directly in a WAV file, but not obvious how to do that using the wave module | 160 | > directly in a WAV file, but not obvious how to do that using the wave module |
| 161 | > in Python. | 161 | > in Python. |
| 162 | 162 | ||
| 163 | ## Generating Spectograms | 163 | ## Generating Spectograms |
| @@ -192,7 +192,7 @@ gnuplot audio.gpi | |||
| 192 | And input file `audio.gpi` that would be passed to gnuplot looks something like | 192 | And input file `audio.gpi` that would be passed to gnuplot looks something like |
| 193 | this. | 193 | this. |
| 194 | 194 | ||
| 195 | ``` | 195 | ```txt |
| 196 | # set output format and size | 196 | # set output format and size |
| 197 | set term png size 1000,280 | 197 | set term png size 1000,280 |
| 198 | 198 | ||
| @@ -358,7 +358,7 @@ if done properly. It could replace random note generator with something more | |||
| 358 | intriguing, biological, natural. | 358 | intriguing, biological, natural. |
| 359 | 359 | ||
| 360 | I actually find the results fascinating. I took some time and listened to this | 360 | I actually find the results fascinating. I took some time and listened to this |
| 361 | music of nature. Even though it's quite the same, it's also quite different. | 361 | music of nature. Even though it's quite the same, it's also quite different. |
| 362 | The subtle differences on repeat kind of creates music on its own. Makes you | 362 | The subtle differences on repeat kind of creates music on its own. Makes you |
| 363 | wonder. It kind of puts Occam’s Razor in its place. Nature for sure loves to | 363 | wonder. It kind of puts Occam’s Razor in its place. Nature for sure loves to |
| 364 | make things as energy efficient as possible. | 364 | make things as energy efficient as possible. |
