Showing Now Playing with Hugo

6th of April, 2022

So I wanted to add "Now playing" footer to my posts so I can share easily the music that I'm listening currently and maybe some people are able to find something new and interesting with that so I implemented a very quick and poor man's implementation for it! Basically I only play with the YouTube's search_query URL parameter and I pass in the song to that from the Hugo post's front matter.

I pass in the current song as a slice in the post's front matter similarly to this:

nowPlaying: ["DAF", "Liebe auf den Erste Blick"]

Then I just parse that in the template:

{{ if .Params.nowPlaying }}
{{ $artist := index .Params.nowPlaying 0 }}
{{ $song := index .Params.nowPlaying 1 }}
{{ $query := querify "search_query" ( printf "%s %s" $artist $song ) "search_type" "videos" }}
<div class="now-playing">
  <p class="no-margin">Now playing:
    <a href="{{ $query | safeURL }}" target="_blank">
      {{ $artist }} - {{ $song }}
{{ end }}

Tags: computers, music

Now playing: DAF - Liebe auf den Erste Blick

Imperial Triumphant - Rotted Futures

3rd of April, 2022

Stumbled upon this weird experimental avant-garde jazz black metal type of band a while ago and have been loving them ever since!

Tags: music

Spotify and the spread of misinformation

27th of January, 2022

So Spotify seems to be a shit show at the moment, at least when it comes to sharing misinformation on their platform. On the center of it all seems to be Joe Rogan. Spotify made a widely reported deal with Joe Rogan for exclusive rights to his podcast in 2020. Weirdly enough, Rogan has also lately been under heavy scrutiny for his idiotic statements about COVID.

In January 2022, 270 medical experts submitted an open letter for Spotify to moderate this misinformation on their platform. Letter was largely prompted because of controversial physician who openly promoted preposterous nonsense on Joe Rogan Experience (JRE).

Few days ago, Neil Young started a protest against Spotify giving them an ultimatum for choosing either Young's music or JRE. And well… neither Young nor 270 medical experts was enough to change Spotify's mind about the subject since they decided that they would rather leave JRE on their platform rather than Young.

This is kind of weird point of view that Spotify has taken in this case since they have already participated in self-regulation before by removing harmful content from their platform. This kind of content has involved music that has been connected one way or another to white supremacy or neo-nazi movements and much more (very much understandably so). Spotify also joined many other streaming platforms by removing another nutjob Alex Jones' podcast InfoWars from their platform for spreading misinformation. But guess misinformation from dear Joe Rogan is not consider harmful by their standards.

Neil Young also wrote:

I sincerely hope that other artists and record companies will move off the SPOTIFY platform and stop supporting SPOTIFY’s deadly misinformation about COVID.

Unfortunately while writing this not many artist have joined him in this endeavor. But this also brings little bit unfortunate truth about the situation, Neil Young can leave Spotify without noticing it too much. Financially, revenue he gets from Spotify would be very minor source of income, especially considering the fact that last year he sold 50% of his publishing rights to the investment fund Hipgnosis, netting him $150m.

Also considering the fact the his fan base is definitely - in general - on the older end of the spectrum. Yours truly is probably on the younger end. So most likely larger portion of his revenue comes from physical products and live show (although latter is probably true for large majority of artists).

Newer artists and bands can't really take this kind of stand against large streaming platform since so much of their audience accesses their music via these means. In most cases, they would like to please Spotify, hoping in getting in one of their playlists and so promoting their music to very large audience.

Any case, if more big artists joins Young, it definitely can have an impact on Spotify since these kind of heavyweight artists are able to give some pressure to these big companies. But only time will tell.

Tags: conspiracies, corporations, music

Music, AI, and the future

28th of July, 2021

Since the discussion about artificial intelligence has become mainstream, I have started to ponder AI's possible impacts on our day-to-day lives. While I work in tech, I come from this "culture and arts" background, at least a little bit. I did some theatre when I was young and have worked with music in one way or another for most of my life. This background has got me thinking about how AI could affect these fields.

We have already seen multiple interdisciplinary works mixing artificial intelligence with various art forms, like drawings, paintings, music etc. Already drawings and paintings generated with AI present a superb quality in those, in which you cannot make a clear distinction from if these were created by AI or an actual human. On the other hand, music is not quite at that level yet, at least in my opinion. At least in the form of an entirely generated song by AI. That being said, I have heard great pieces which utilize both human touch and AI, where AI plays more of a supportive role in the whole work. Similar things can be seen in all creative endeavours where AI could be utilized.

If AI gets used more and more in these creative projects with great success, to me, it raises a question, can human art be entirely replaced with AI? I believe it would be naive to say that it couldn't. But, considering the possible future where we cannot distinguish humans from computers, how could we distinguish this kind of smaller medium like song or book on how it was created or who created it? As a consumer of these kinds of mediums, does it matter if some algorithms made your new favourite novel to provide the same feeling that you might get from reading a regular author's book?

They are taking our jobs

To put it shortly, AI can replace anyone's job who happens to handle bits in one way or another. This means that AI can do it way better than you ever can in these kinds of jobs. So when we talk about "creative jobs", how you can do it better than someone else? Are you possibly better at drawing than someone else? Or can you compose better symphonies than someone else? What makes you better? Is it purely a technical thing, or is there something else? When we talk about painting or drawing's technicality, sure, you could argue that your "pen strokes", etc. might be better than someone else's. But does this make it better art?

Already there has been a trend of AI-generated music populating different streaming platforms. Currently, that music has almost always been something simple, in which AI definitely can excel. This could be called elevator music or Muzak. This kind of music is most likely something that many people wouldn't mind that it's generated with a computer and lacks the human touch. But how would people feel if there were a chart-topping song entirely generated with AI? Again, I believe many people wouldn't like that, other than a few tech geeks who might think it could be cool (me included).

Could then AI fully replace the human touch in our art forms? We might wait for that to happen for a very long time. Still, as I said earlier, it would be naive to think that this couldn't happen, especially in the future, where we have reached a certain level of intelligence where we can't distinguish each other from humans and machines.

So what could this mean for our "blue-collar" artists? What could be the driving force for them to create new art if the audience doesn't know if it was created by computer or human? To me, that seems very grim.

Creative programming

If we can't beat them, join 'em? Right? If we think that this will be the future, while it might not be a very uplifting thing to consider, it'll most likely be very realistic. While I think that AI will have some bad repercussions on our life in the future, I also believe that it can be used for great good. Whether AI is used in health, fighting climate change etc., there are many good use cases. In my opinion, utilizing AI in the arts is also one. Should you create your next song or novel entirely with AI? Possibly no, although GPT-3 has shown some great results on how good text it can write.

I like to write or play music, so I don't want to replace the artificial process that I enjoy so much. So the way I could utilize it in my creative endeavours is by working with it side by side. Possibly, it could generate some ideas for me for my next blog post, novel, poem or whatever. For example, AI could be taught with the text of a long list of your favourite authors or songs by your favourite bands. Based on this knowledge, maybe some of the possible ideas it could generate could then be finished by a human giving the final piece that human touch.


So while the future might look dark and grim for us, maybe we could make some use of it, so at least we might have a little bit of enjoyment. Thankfully we are a long way from this singularity that many people tend to talk about, but the trend has shown to be moving towards that kind of future. So rather than fighting against it, at least personally, I want to make the best use of our technical achievements in one way or another. Who knows if the next big novel or piece is created with AI or some other great technological invention. That being said, I have already found many great ways to utilize AI in my creative projects, so who knows what might come out of those.

Tags: ai, art, computers, music