Generating Melodies With Markov Chains In Ruby

A Markov Chain is essentially a finite state machine that we can get to generate output based on probability from previous input. It’s probably one of simplest generative systems. It’s especially fun to use for things like generating sentences that sound semi-coherent from gigantic inputs like a Shakespeare play.Let’s get an array of notes from a MIDI file with midilib.
Generating Melodies With Markov Chains In Ruby #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/generating-melodies-with-markov-chains-in-ruby

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles