# Melody improvisation

**URL:** <https://in-thread.sonic-pi.net/t/melody-improvisation/988>\
**Category:** Creations & Ideas\
**Created:** [April 19, 2018, 5:03am UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988 "2018-04-19T05:03:07Z")\
**Posts on this page:** 12\
**Page:** 3

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [July 27, 2020, 3:15pm UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988/42 "2020-07-27T15:15:46Z")

</div>

classical music, indies stuff from 80s and 90s etc.  
Some dissonance stuff : sonic youth as example also Chopin, Debussy, Fauré.  
but not boogie 🙂 (the video sound looks fine to me, even if not "my cup of tea " 🙂 ) and mainly western music  
I don’t know if these details feed the topic… 🙂

---

<div class="post-metadata">

**Author:** ![hitsware](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@hitsware](https://in-thread.sonic-pi.net/u/hitsware)\
**Post date:** [July 27, 2020, 3:36pm UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988/43 "2020-07-27T15:36:27Z")

</div>

Double Hmmmmmm !  
If the tempered version of my piece still sounds  
’ off ’ to you then ???  
Maybe someone will chime in with some insight .  
AND I will reconsider my ’ score ’ …

---

<div class="post-metadata">

**Author:** ![Eli](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/eli/32/116_2.png) [@Eli](https://in-thread.sonic-pi.net/u/Eli)\
**Post date:** [July 27, 2020, 4:08pm UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988/44 "2020-07-27T16:08:14Z")

</div>

I also find that piece of code very ‘off’… dissonant. out of tune  
_screeches nails on blackboard_

Eli…

---

<div class="post-metadata">

**Author:** ![hitsware](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@hitsware](https://in-thread.sonic-pi.net/u/hitsware)\
**Post date:** [July 27, 2020, 6:36pm UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988/45 "2020-07-27T18:36:21Z")

</div>

Triple Hmmmmm …

```ruby
######## A Study in Honky Tonk ##########

a=[18,27,18,30,18,32,18,30]
b=[18,27,18,30,18,33,18,30]
c=[55,62,55,64,55,65,55,64]

loop do
  
  for i in 0..7; puts "just intonation"
    play hz_to_midi(11*a[i]), release: 2
  sleep 0.5; end; sleep 1
  
  for i in 0..7; puts "equal tempered"
    play hz_to_midi(11*a[i]).round, release: 2
  sleep 0.5; end; sleep 1
  
  for i in 0..7; puts "just hitswares folly"
    play hz_to_midi(11*b[i]), release: 2
  sleep 0.5; end; sleep 1
  
  for i in 0..7; puts "tempered hitswares folly"
    play hz_to_midi(11*b[i]).round, release: 2
  sleep 0.5; end; sleep 1
  
  for i in 0..7; puts "official midi numbers"
    play c[i], release: 2
  sleep 0.5; end; sleep 1
  
end

```

[![](https://img.youtube.com/vi/-fa2ZKzfIP0/maxresdefault.jpg "Bill Doggett - Honky Tonk (Part 1 & 2)") ](https://www.youtube.com/watch?v=-fa2ZKzfIP0)

---

<div class="post-metadata">

**Author:** ![Martin](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/martin/32/157_2.png) [@Martin](https://in-thread.sonic-pi.net/u/Martin)\
**Post date:** [July 27, 2020, 8:47pm UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988/46 "2020-07-27T20:47:21Z")

</div>

I like that.

Over there at Lines there is an [thread about microtonal music](https://llllllll.co/t/the-microtonal-thread/21453). It is an interesting and challenging idea that you could say we are somehow spoiled by the tyranny of the well-tempered tuning in western musical culture.

And [this is my currently favorite example](https://www.youtube.com/watch?v=sxbporF6GCw) how microtonality works really well in popular music.

---

<div class="post-metadata">

**Author:** ![hitsware](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@hitsware](https://in-thread.sonic-pi.net/u/hitsware)\
**Post date:** [July 27, 2020, 10:37pm UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988/47 "2020-07-27T22:37:09Z")

</div>

[![](https://img.youtube.com/vi/p3HwqqiVxbE/maxresdefault.jpg "Javanese Gamelan Ensemble - Pelog Barang - Singa Nebah (The Pouncing Lion)") ](https://www.youtube.com/watch?v=p3HwqqiVxbE)

---

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [July 28, 2020, 3:48pm UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988/48 "2020-07-28T15:48:15Z")

</div>

yes but boogie music is not oriental or indian music ? Boogie seems to be a western music no ?  
ps : Listening to Daniel Johnston is awesome too and often “off”.

---

<div class="post-metadata">

**Author:** ![nlb](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/nlb/32/997_2.png) [@nlb](https://in-thread.sonic-pi.net/u/nlb)\
**Post date:** [July 28, 2020, 3:48pm UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988/49 "2020-07-28T15:48:50Z")

</div>

cool stuff not off at all for this style of music.

---

<div class="post-metadata">

**Author:** ![hitsware](https://avatars.discourse-cdn.com/v4/letter/h/a9adbd/32.png) [@hitsware](https://in-thread.sonic-pi.net/u/hitsware)\
**Post date:** [July 28, 2020, 4:58pm UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988/50 "2020-07-28T16:58:42Z")

</div>

> yes but boogie music is not oriental or indian music ?

Right .

> Boogie seems to be a western music no ?

Yes. Some ’ blues ’ intervals could possibly be construed as ’ off ’ though .  
Try ’ Purple Haze ’ ( Jimi Hendrix ) compared to Vivaldi : )

> ps : Listening to Daniel Johnston is awesome too and often “off”.

Thank You … Hadn ’ t heard him … Reminds me of early Bob Dylan .

---

<div class="post-metadata">

**Author:** ![tmcgrath](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/tmcgrath/32/1552_2.png) [@tmcgrath](https://in-thread.sonic-pi.net/u/tmcgrath)\
**Post date:** [August 14, 2020, 6:52pm UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988/51 "2020-08-14T18:52:15Z")

</div>

> [@EarthToAbigail](#):
>
> [https://www.youtube.com/watch?v=0Ueg0nOyXec](https://www.youtube.com/watch?v=0Ueg0nOyXec)

Wow! As a newb and not a musician that was quite the class. Thanks maestro.

---

<div class="post-metadata">

**Author:** ![din](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@din](https://in-thread.sonic-pi.net/u/din)\
**Post date:** [July 28, 2021, 2:04am UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988/52 "2021-07-28T02:04:43Z")

</div>

I’ve been looking all over the internet for music and melody generation.

Music Theory I know little about but I wonder how hard it would be to program something like this.

Not necessarily in sonic pi. But something that I could use to generate notes heck even hard code it to parse for copy in paste into sonic pi.

---

<div class="post-metadata">

**Author:** ![Loopiloop](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/loopiloop/32/2094_2.png) [@Loopiloop](https://in-thread.sonic-pi.net/u/Loopiloop)\
**Post date:** [September 9, 2021, 7:49pm UTC](https://in-thread.sonic-pi.net/t/melody-improvisation/988/53 "2021-09-09T19:49:06Z")

</div>

You might be interested in my current project then.

> [@Some Generative Music Stuff](https://in-thread.sonic-pi.net/t/some-generative-music-stuff/5945):
>
> Hello Sonic Pi community, Here’s a little experiment with generative music. It’s rather monotonus, but I couldn’t figure out a way off reusing generated sections. It is also very resource intensive. Greetings Loop # Melody Maker # Coded by Loopiloop #---options--- #set random seed. play around with this value use\_random\_seed 93847 #root of the key key\_root = rrand\_i(48, 60) #quality of the key key\_qual = :major #chord progression chordprog = (ring :i, :v, :vi, :iv) #---setup--- #pa…

[Previous page](https://in-thread.sonic-pi.net/t/melody-improvisation/988.md?page=2)
