Code Monkey home page Code Monkey logo

uncommon-musical-scales's Introduction

Nerdy background:

Most Western music is composed of seven modes (scales; e.g. Lydian, Ionian etc.) that are a set of 8 notes from one note (let's say A) to the next A along (this end point is called the octave, from the Greek root oct-, meaning 8). 

The number of notes in between one note (again, let's say A) to the next A along(its octave) is 11 (don't trust my word for it, count yourselves using the note 'line' below!; # means sharp (the black keys on a keyboard)).

A  A#  B  C  C#  D   D#  E   F   F#   G    G#   A (the octave) 

With a little combination maths, we can calculate that there are 462 ways in which we could make the journey from a note to its octave. My question is, what do the other 455 modes sound like?
 
(Okay, some bands love to use unusual combinations (Tool, Primus etc.), and technically, about 30 modes have significant usage if we include gypsy/bebop modes - so, if you're lucky, you've heard up to 7% of the possible scales. I wouldn't stand for that)  

--------------------------------------------------------------
*For curious and scientifically-critical (CSC) sorts, here's the maths:
       n!            11!
-------------- =   ------------ = 462
(n - p)!  x p!     (11-6)! x 6!

where:
n = number of notes to choose from (this is 11, since there are 11 notes between A and the next A along)
p = number of steps (this is 6, since the first and last notes (A and the next octave note (a higher pitch A must definitely be in our scale so we can discount them from our calculation).

#also, to anyone asking why a combination and not a permutation, well, the order we choose the notes in isn't important. 
If we did do this as a permutation calculation, we would be working out the number of melodies we could make with 8 notes, which would be pretty awesome, and I invite the CSC lot to do cool projects on unusual melodies. Do it! Share it on GitHub! Be avant-garde!
--------------------------------------------------------------

The 'All combinations from A1 to A2 listed.csv' contains all 462 combinations from A1(the first A on a keyboard) to its octave (A2).

I want to structure the data into midi files (using python 3.7 then Sonic pi?) which can be shared and used to make some funky, prog rocky jam.

The first steps of the structuring stuff are in 'read all combinations.py'.

Happy jamming!

Volodymyr (Vlad) Chapman
13/01/2019

uncommon-musical-scales's People

Contributors

volodymyrchapman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.