Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbrailey committed May 10, 2020
1 parent 5d24e3c commit 896c02f
Show file tree
Hide file tree
Showing 21 changed files with 79 additions and 221 deletions.
29 changes: 6 additions & 23 deletions content/posts/seed_music.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: '''Seed Music'''
author: "Tom Brailey"
date: '2020-05-01'
categories: ["Music"]
tags: ["seed music", "melody generation", "r", "math-rock"]
---

```{r setup, include=FALSE}
Expand Down Expand Up @@ -103,33 +101,18 @@ I expected that whatever I ended up writing would be somewhat avante-garde. I wa

This was the first plot that came out of my function. An ungodly splattering of notes which I had to coerce into G# Mixolydian (the most popular mode, right?). By the way, as a sort-of-afterthought, I wanted the title to the plot to be a series of random letters to serve as a word-cloud to further encourage my creativity. This part certainly needs some work given that "gyzjsgsfpz awnkbzyvho" doesn't really make me feel anything. Still though, perhaps one day it will spit out something so inspiring that I go on to write a hit-single. We shall see...

```{r, echo = F}
knitr::include_graphics(paste0(here::here(), "/static/images/gyzjsgsfpz awnkbzyvho.png"))
```
![](/posts/seed_music_files/gyzjsgsfpz awnkbzyvho.png)

I then transposed these dots onto a staff, deciding that 13/8 would be a fun meter for this melody. These notes in C major sound truly awful, so I'm glad ggplot2 made me transpose this melody into something else.
```{r, echo = F}
knitr::include_graphics(paste0(here::here(), "/static/images/basic_melody .png"))
```

![](/posts/seed_music_files/basic_melody .png)

Here's where I exert some "creative control" shall we say. Somewhere between that initial transcription and the final melody, some notes were moved around and whatnot, but I really did do my best to stay true to whatever the function gave me. This is what I turned the basic melody into:
```{r, echo = F}
knitr::include_graphics(paste0(here::here(), "/static/images/full_melody.png"))
```

And here is what it sounds like (with a little hi-hat in the background).
![](/posts/seed_music_files/full_melody.png)

```{r include = FALSE}
html_tag_audio <- function(file,
type = "wav")
{
htmltools::tags$audio(controls = NA,
htmltools::tags$source(src = file,
type = glue::glue("audio/{type}",
type = type)))
}
```
And here is what it sounds like (with a little hi-hat in the background).

`r html_tag_audio("Seed 1.wav")`
![](/posts/seed_music_files/Seed 1.wav)

As you can tell, I can't really call a twelve-second excerpt a song. But these four bars give some insight into the flavor of this tune. In any case, I am pretty chuffed that I actually managed to get something workable out of this idea. Seed Music is a project that I will be continuing for the foreseeable future, and I will try to post reguarly my ideas and creations. More to follow!
20 changes: 8 additions & 12 deletions content/posts/seed_music.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: '''Seed Music'''
author: "Tom Brailey"
date: '2020-05-01'
categories: ["Music"]
tags: ["seed music", "melody generation", "r", "math-rock"]
---


Expand Down Expand Up @@ -63,22 +61,20 @@ <h1>theme_music()</h1>

}</code></pre>
<p>And here is an example of what I would be given to work with (note that every time I update my website this image will change):</p>
<pre><code>## Warning: Removed 3 rows containing missing values (geom_point).</code></pre>
<pre><code>## Warning: Removed 3 rows containing missing values (geom_vline).</code></pre>
<pre><code>## Warning: Removed 2 rows containing missing values (geom_point).</code></pre>
<pre><code>## Warning: Removed 2 rows containing missing values (geom_vline).</code></pre>
<p><img src="/posts/seed_music_files/figure-html/unnamed-chunk-4-1.png" width="50%" /></p>
</div>
<div id="so-how-does-it-sound" class="section level1">
<h1>So how does it sound?</h1>
<p>I expected that whatever I ended up writing would be somewhat avante-garde. I wasn’t wrong. Here is an example of how I turned some random data into a really weird 13/8 mathy riff.</p>
<p>This was the first plot that came out of my function. An ungodly splattering of notes which I had to coerce into G# Mixolydian (the most popular mode, right?). By the way, as a sort-of-afterthought, I wanted the title to the plot to be a series of random letters to serve as a word-cloud to further encourage my creativity. This part certainly needs some work given that “gyzjsgsfpz awnkbzyvho” doesn’t really make me feel anything. Still though, perhaps one day it will spit out something so inspiring that I go on to write a hit-single. We shall see…</p>
<p><img src="C:/Users/tbrai/Dropbox/github_private/Website/static/images/gyzjsgsfpz%20awnkbzyvho.png" width="1050" /></p>
<p>I then transposed these dots onto a staff, deciding that 13/8 would be a fun meter for this melody. These notes in C major sound truly awful, so I’m glad ggplot2 made me transpose this melody into something else.
<img src="C:/Users/tbrai/Dropbox/github_private/Website/static/images/basic_melody%20.png" width="271" /></p>
<p>Here’s where I exert some “creative control” shall we say. Somewhere between that initial transcription and the final melody, some notes were moved around and whatnot, but I really did do my best to stay true to whatever the function gave me. This is what I turned the basic melody into:
<img src="C:/Users/tbrai/Dropbox/github_private/Website/static/images/full_melody.png" width="424" /></p>
<p><img src="/posts/seed_music_files/gyzjsgsfpz%20awnkbzyvho.png" /></p>
<p>I then transposed these dots onto a staff, deciding that 13/8 would be a fun meter for this melody. These notes in C major sound truly awful, so I’m glad ggplot2 made me transpose this melody into something else.</p>
<p><img src="/posts/seed_music_files/basic_melody%20.png" /></p>
<p>Here’s where I exert some “creative control” shall we say. Somewhere between that initial transcription and the final melody, some notes were moved around and whatnot, but I really did do my best to stay true to whatever the function gave me. This is what I turned the basic melody into:</p>
<p><img src="/posts/seed_music_files/full_melody.png" /></p>
<p>And here is what it sounds like (with a little hi-hat in the background).</p>
<audio controls>
<source src="Seed 1.wav" type="audio/wav"/>
</audio>
<p><embed src="/posts/seed_music_files/Seed%201.wav" /></p>
<p>As you can tell, I can’t really call a twelve-second excerpt a song. But these four bars give some insight into the flavor of this tune. In any case, I am pretty chuffed that I actually managed to get something workable out of this idea. Seed Music is a project that I will be continuing for the foreseeable future, and I will try to post reguarly my ideas and creations. More to follow!</p>
</div>
7 changes: 1 addition & 6 deletions public/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<meta property="og:description" content="Tom Brailey&#39;s personal website" />
<meta property="og:type" content="website" />
<meta property="og:url" content="/categories/" />
<meta property="og:updated_time" content="2020-05-01T00:00:00+00:00" />
<meta property="og:updated_time" content="2020-03-30T00:00:00+00:00" />



Expand Down Expand Up @@ -149,11 +149,6 @@
<h1 class="title">Categories</h1>
<ul>

<li>
<span class="date">May 1, 2020</span>
<a class="title" href="/categories/music/">Music</a>
</li>

<li>
<span class="date">March 30, 2020</span>
<a class="title" href="/categories/r/">R</a>
Expand Down
11 changes: 1 addition & 10 deletions public/categories/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,11 @@
<description>Recent content in Categories on thomasjbrailey</description>
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<lastBuildDate>Fri, 01 May 2020 00:00:00 +0000</lastBuildDate>
<lastBuildDate>Mon, 30 Mar 2020 00:00:00 +0000</lastBuildDate>

<atom:link href="/categories/index.xml" rel="self" type="application/rss+xml" />


<item>
<title>Music</title>
<link>/categories/music/</link>
<pubDate>Fri, 01 May 2020 00:00:00 +0000</pubDate>

<guid>/categories/music/</guid>
<description></description>
</item>

<item>
<title>R</title>
<link>/categories/r/</link>
Expand Down
80 changes: 30 additions & 50 deletions public/en/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,93 +7,58 @@
<lastmod>2020-05-01T00:00:00+00:00</lastmod>
</url>

<url>
<loc>/categories/</loc>
<lastmod>2020-05-01T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="pt-br"
href="/pt-br/categories/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/categories/"
/>
</url>

<url>
<loc>/tags/math-rock/</loc>
<lastmod>2020-05-01T00:00:00+00:00</lastmod>
</url>

<url>
<loc>/tags/melody-generation/</loc>
<lastmod>2020-05-01T00:00:00+00:00</lastmod>
</url>

<url>
<loc>/categories/music/</loc>
<lastmod>2020-05-01T00:00:00+00:00</lastmod>
</url>

<url>
<loc>/posts/</loc>
<lastmod>2020-05-01T00:00:00+00:00</lastmod>
</url>

<url>
<loc>/tags/r/</loc>
<lastmod>2020-05-01T00:00:00+00:00</lastmod>
</url>

<url>
<loc>/tags/seed-music/</loc>
<lastmod>2020-05-01T00:00:00+00:00</lastmod>
</url>

<url>
<loc>/tags/</loc>
<loc>/</loc>
<lastmod>2020-05-01T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="pt-br"
href="/pt-br/tags/"
href="/pt-br/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/tags/"
href="/"
/>
</url>

<url>
<loc>/</loc>
<lastmod>2020-05-01T00:00:00+00:00</lastmod>
<loc>/posts/cox_proximity/</loc>
<lastmod>2020-03-30T00:00:00+00:00</lastmod>
</url>

<url>
<loc>/categories/</loc>
<lastmod>2020-03-30T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="pt-br"
href="/pt-br/"
href="/pt-br/categories/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/"
href="/categories/"
/>
</url>

<url>
<loc>/posts/cox_proximity/</loc>
<loc>/tags/electoral-proximity/</loc>
<lastmod>2020-03-30T00:00:00+00:00</lastmod>
</url>

<url>
<loc>/tags/electoral-proximity/</loc>
<loc>/tags/making-votes-count/</loc>
<lastmod>2020-03-30T00:00:00+00:00</lastmod>
</url>

<url>
<loc>/tags/making-votes-count/</loc>
<loc>/tags/r/</loc>
<lastmod>2020-03-30T00:00:00+00:00</lastmod>
</url>

Expand All @@ -102,6 +67,21 @@
<lastmod>2020-03-30T00:00:00+00:00</lastmod>
</url>

<url>
<loc>/tags/</loc>
<lastmod>2020-03-30T00:00:00+00:00</lastmod>
<xhtml:link
rel="alternate"
hreflang="pt-br"
href="/pt-br/tags/"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="/tags/"
/>
</url>

<url>
<loc>/tags/power-sharing/</loc>
<lastmod>2020-03-20T00:00:00+00:00</lastmod>
Expand Down
29 changes: 6 additions & 23 deletions public/posts/seed_music.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: '''Seed Music'''
author: "Tom Brailey"
date: '2020-05-01'
categories: ["Music"]
tags: ["seed music", "melody generation", "r", "math-rock"]
---

```{r setup, include=FALSE}
Expand Down Expand Up @@ -103,33 +101,18 @@ I expected that whatever I ended up writing would be somewhat avante-garde. I wa

This was the first plot that came out of my function. An ungodly splattering of notes which I had to coerce into G# Mixolydian (the most popular mode, right?). By the way, as a sort-of-afterthought, I wanted the title to the plot to be a series of random letters to serve as a word-cloud to further encourage my creativity. This part certainly needs some work given that "gyzjsgsfpz awnkbzyvho" doesn't really make me feel anything. Still though, perhaps one day it will spit out something so inspiring that I go on to write a hit-single. We shall see...

```{r, echo = F}
knitr::include_graphics(paste0(here::here(), "/static/images/gyzjsgsfpz awnkbzyvho.png"))
```
![](/posts/seed_music_files/gyzjsgsfpz awnkbzyvho.png)

I then transposed these dots onto a staff, deciding that 13/8 would be a fun meter for this melody. These notes in C major sound truly awful, so I'm glad ggplot2 made me transpose this melody into something else.
```{r, echo = F}
knitr::include_graphics(paste0(here::here(), "/static/images/basic_melody .png"))
```

![](/posts/seed_music_files/basic_melody .png)

Here's where I exert some "creative control" shall we say. Somewhere between that initial transcription and the final melody, some notes were moved around and whatnot, but I really did do my best to stay true to whatever the function gave me. This is what I turned the basic melody into:
```{r, echo = F}
knitr::include_graphics(paste0(here::here(), "/static/images/full_melody.png"))
```

And here is what it sounds like (with a little hi-hat in the background).
![](/posts/seed_music_files/full_melody.png)

```{r include = FALSE}
html_tag_audio <- function(file,
type = "wav")
{
htmltools::tags$audio(controls = NA,
htmltools::tags$source(src = file,
type = glue::glue("audio/{type}",
type = type)))
}
```
And here is what it sounds like (with a little hi-hat in the background).

`r html_tag_audio("Seed 1.wav")`
![](/posts/seed_music_files/Seed 1.wav)

As you can tell, I can't really call a twelve-second excerpt a song. But these four bars give some insight into the flavor of this tune. In any case, I am pretty chuffed that I actually managed to get something workable out of this idea. Seed Music is a project that I will be continuing for the foreseeable future, and I will try to post reguarly my ideas and creations. More to follow!
34 changes: 10 additions & 24 deletions public/posts/seed_music/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,8 @@ <h1 class="title">&#39;Seed Music&#39;</h1>
4-minute read
</span>
</div>
<div class="categories">
<i class="fas fa-folder"></i>
<a href="/categories/music/">Music</a></div>

<div class="tags">
<i class="fas fa-tag"></i>
<a href="/tags/seed-music/">seed music</a>
<span class="separator"></span>
<a href="/tags/melody-generation/">melody generation</a>
<span class="separator"></span>
<a href="/tags/r/">r</a>
<span class="separator"></span>
<a href="/tags/math-rock/">math-rock</a></div>



</div>
</header>

Expand Down Expand Up @@ -243,23 +231,21 @@ <h1>theme_music()</h1>

}</code></pre>
<p>And here is an example of what I would be given to work with (note that every time I update my website this image will change):</p>
<pre><code>## Warning: Removed 3 rows containing missing values (geom_point).</code></pre>
<pre><code>## Warning: Removed 3 rows containing missing values (geom_vline).</code></pre>
<pre><code>## Warning: Removed 2 rows containing missing values (geom_point).</code></pre>
<pre><code>## Warning: Removed 2 rows containing missing values (geom_vline).</code></pre>
<p><img src="/posts/seed_music_files/figure-html/unnamed-chunk-4-1.png" width="50%" /></p>
</div>
<div id="so-how-does-it-sound" class="section level1">
<h1>So how does it sound?</h1>
<p>I expected that whatever I ended up writing would be somewhat avante-garde. I wasn’t wrong. Here is an example of how I turned some random data into a really weird 13/8 mathy riff.</p>
<p>This was the first plot that came out of my function. An ungodly splattering of notes which I had to coerce into G# Mixolydian (the most popular mode, right?). By the way, as a sort-of-afterthought, I wanted the title to the plot to be a series of random letters to serve as a word-cloud to further encourage my creativity. This part certainly needs some work given that “gyzjsgsfpz awnkbzyvho” doesn’t really make me feel anything. Still though, perhaps one day it will spit out something so inspiring that I go on to write a hit-single. We shall see…</p>
<p><img src="C:/Users/tbrai/Dropbox/github_private/Website/static/images/gyzjsgsfpz%20awnkbzyvho.png" width="1050" /></p>
<p>I then transposed these dots onto a staff, deciding that 13/8 would be a fun meter for this melody. These notes in C major sound truly awful, so I’m glad ggplot2 made me transpose this melody into something else.
<img src="C:/Users/tbrai/Dropbox/github_private/Website/static/images/basic_melody%20.png" width="271" /></p>
<p>Here’s where I exert some “creative control” shall we say. Somewhere between that initial transcription and the final melody, some notes were moved around and whatnot, but I really did do my best to stay true to whatever the function gave me. This is what I turned the basic melody into:
<img src="C:/Users/tbrai/Dropbox/github_private/Website/static/images/full_melody.png" width="424" /></p>
<p><img src="/posts/seed_music_files/gyzjsgsfpz%20awnkbzyvho.png" /></p>
<p>I then transposed these dots onto a staff, deciding that 13/8 would be a fun meter for this melody. These notes in C major sound truly awful, so I’m glad ggplot2 made me transpose this melody into something else.</p>
<p><img src="/posts/seed_music_files/basic_melody%20.png" /></p>
<p>Here’s where I exert some “creative control” shall we say. Somewhere between that initial transcription and the final melody, some notes were moved around and whatnot, but I really did do my best to stay true to whatever the function gave me. This is what I turned the basic melody into:</p>
<p><img src="/posts/seed_music_files/full_melody.png" /></p>
<p>And here is what it sounds like (with a little hi-hat in the background).</p>
<audio controls>
<source src="Seed 1.wav" type="audio/wav"/>
</audio>
<p><embed src="/posts/seed_music_files/Seed%201.wav" /></p>
<p>As you can tell, I can’t really call a twelve-second excerpt a song. But these four bars give some insight into the flavor of this tune. In any case, I am pretty chuffed that I actually managed to get something workable out of this idea. Seed Music is a project that I will be continuing for the foreseeable future, and I will try to post reguarly my ideas and creations. More to follow!</p>
</div>

Expand Down
Binary file added public/posts/seed_music_files/Seed 1.wav
Binary file not shown.
Binary file added public/posts/seed_music_files/basic_melody .png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/posts/seed_music_files/figure-html/unnamed-chunk-4-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/posts/seed_music_files/full_melody.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 896c02f

Please sign in to comment.