Weeklybeats 2018 was a 52 week long music project in which artists composed and publicly released 1 song a week for the entire year. Enjoy this archive of over 3,700 music compositions by over 260 artists.
Sign up or Login to give feedback or chat up on the forums.

WeeklyBeats.com / Music / Devieus's music / Mr. Markov I Presume

Mr. Markov I Presume

By Devieus on April 18, 2018 9:02 am

Markov chains, named after mathematician Andrey Andreyevich Markov, is a form of finite state machine that has no terminators and weighted connections. Read all about it here if you're so inclined, it's fun for comp-sci nerds but otherwise you needn't bother.

Basically it's a system of weighted decisions depending on the current state, or choosing an option based on the previous decision's outcome, which is basically the definition of procedural generation. And I used it for note lengths in the lead track, as it was always destined to be.

Say the note length of the current note is a half note, there'll be a 10% chance of the next note being a sixteenth, but if the current note's length is an eighth there'll be a 20% chance instead. That's the basic gist of it.

So that should settle the note length issue, maybe next time I'll bring back the harmony.

This submission is licensed by author under CC Attribution Share Alike (BY-SA)

  • Play
  • Download
April 23, 2018 12:14 am

Woah, loving how you're bringing logic-based systems into music, interesting study!

April 23, 2018 12:32 am
Mortistar wrote:

Woah, loving how you're bringing logic-based systems into music, interesting study!

Music theory can get quite intense.

April 23, 2018 12:48 am

Love that MML sound :>

April 23, 2018 1:14 am

cool, Did you write code to generate the note outcome or did you compose it yourself?

April 23, 2018 1:30 am
gpsychosis wrote:

Love that MML sound :>

MML is just a notation, Macrotune is providing the sounds.

yobkiss wrote:

cool, Did you write code to generate the note outcome or did you compose it yourself?

Composing is all the code does actually.

April 23, 2018 3:52 pm

I am always puzzled that math can sound so beautyfull...

April 23, 2018 3:57 pm

Eyyy, markov chains. Nifty outcome!

April 23, 2018 9:35 pm
theGuen wrote:

I am always puzzled that math can sound so beautyfull...

Music in any form is math at the end of the day.

scottux wrote:

Eyyy, markov chains. Nifty outcome!

onezero suggested it. I'm sorta opposed to the idea, but note lengths are starting to require a binding in chains.

April 23, 2018 10:00 pm

I like how music can be approached from a really analytical direction or a really intuitive one and awesome results can be achieved either way. 

April 24, 2018 3:09 am

Really smooth interlocking of the melodic and percussion lines. Kudos!

April 25, 2018 9:36 am
CosmicCairns wrote:

I like how music can be approached from a really analytical direction or a really intuitive one and awesome results can be achieved either way.

I imagine there're at least a few approaches more, but at least with analytical, you know what you're going to get.

Jim Wood wrote:

Really smooth interlocking of the melodic and percussion lines. Kudos!

Thanks, next time I'll be adding some manner of harmony.

April 25, 2018 2:24 pm

It's very interesting to read about the theory behind the generation, thanks for including it in the description! If I understand correctly, does it also mean that the song will be different every time that it is composed?

April 25, 2018 3:59 pm
Gab Manette wrote:

It's very interesting to read about the theory behind the generation, thanks for including it in the description! If I understand correctly, does it also mean that the song will be different every time that it is composed?

Yes. Such is the nature of all procedural generation, not just Markov chains.

April 25, 2018 4:13 pm
Devieus wrote:
Gab Manette wrote:

It's very interesting to read about the theory behind the generation, thanks for including it in the description! If I understand correctly, does it also mean that the song will be different every time that it is composed?

Yes. Such is the nature of all procedural generation, not just Markov chains.

Very cool smile Do you take the first one out or do you run it a few times and pick one?

April 25, 2018 4:40 pm
Gab Manette wrote:
Devieus wrote:
Gab Manette wrote:

It's very interesting to read about the theory behind the generation, thanks for including it in the description! If I understand correctly, does it also mean that the song will be different every time that it is composed?

Yes. Such is the nature of all procedural generation, not just Markov chains.

Very cool smile Do you take the first one out or do you run it a few times and pick one?

The program is still very much a work in progress, so I set up some goals and put those in. I then run the program and debug it until it outputs something that meets the goals. That's the one I go for. The output I put into Macrotune, process that output in Magix Video Sound Cleaning Lab for some effects and call it a day.

But the program itself I run as little as needed, running it a second time won't reliably produce better results, just different results.

April 27, 2018 4:52 pm

I'm not sure if I'm doing something wrong but this is the second track I've had trouble getting to play.  It plays 3 notes then goes to silence and if I shuffle around the track it plays the same buffered 3 notes.  I tried in Safari & Firefox and even my phone.  Downloading the track also didn't allow me to hear it.  yikes Last week's track I heard with no problem but 'a timely matter' was the other track I couldn't get to play past the first note also. Me confusededed

April 29, 2018 12:59 am
Tone Matrix wrote:

I'm not sure if I'm doing something wrong but this is the second track I've had trouble getting to play.  It plays 3 notes then goes to silence and if I shuffle around the track it plays the same buffered 3 notes.  I tried in Safari & Firefox and even my phone.  Downloading the track also didn't allow me to hear it.  yikes Last week's track I heard with no problem but 'a timely matter' was the other track I couldn't get to play past the first note also. Me confusededed

Those times I used the same exporter with the same settings. It should work in Vivaldi.

April 29, 2018 1:46 pm
Tone Matrix wrote:

I'm not sure if I'm doing something wrong but this is the second track I've had trouble getting to play.  It plays 3 notes then goes to silence and if I shuffle around the track it plays the same buffered 3 notes.  I tried in Safari & Firefox and even my phone.  Downloading the track also didn't allow me to hear it.  yikes Last week's track I heard with no problem but 'a timely matter' was the other track I couldn't get to play past the first note also. Me confusededed

Exact same for me too.

April 29, 2018 11:59 pm

Yes, I can't get it to play.  Also, second one of your tracks this happened with.  The first was on April 1st so I thought it was an April Fools prank. 

April 30, 2018 5:08 am
Ryan wrote:
Tone Matrix wrote:

I'm not sure if I'm doing something wrong but this is the second track I've had trouble getting to play.  It plays 3 notes then goes to silence and if I shuffle around the track it plays the same buffered 3 notes.  I tried in Safari & Firefox and even my phone.  Downloading the track also didn't allow me to hear it.  yikes Last week's track I heard with no problem but 'a timely matter' was the other track I couldn't get to play past the first note also. Me confusededed

Exact same for me too.

NWSPR wrote:

Yes, I can't get it to play.  Also, second one of your tracks this happened with.  The first was on April 1st so I thought it was an April Fools prank.


Maybe it's time to set T80 on the case.

You need to login to leave a comment.
Login Sign-up