PHP Classes

Scales

Recommend this page to a friend!

      Music theory  >  All threads  >  Scales  >  (Un) Subscribe thread alerts  
Subject:Scales
Summary:list of scales
Messages:3
Author:gggg06
Date:2010-12-02 10:55:32
Update:2010-12-02 20:42:48
 

  1. Scales   Reply   Report abuse  
Picture of gggg06 gggg06 - 2010-12-02 10:55:32
Where can i get a list of possible scales for input and possible chords for input?

  2. Re: Scales   Reply   Report abuse  
Picture of Arturs Sosins Arturs Sosins - 2010-12-02 19:04:58 - In reply to message 1 from gggg06
Scale and chord names consists of note name and scale/chord type.

Method get_notes() returns array with all note values. Although sharp/flat notation doesn't affect other methods (you can use any of them), you can change sharp/flat notation by calling corresponding methods: set_flat() or set_sharp().

Method get_scale_types() returns array with all pre defined and user defined scale type values.

To add custom scale pattern you can use add_scale_type($type, $pattern_array) method.

Method get_chord_types() returns array with all pre defined and user defined chord type values.

You can add custom chord pattern using add_chord_type($type, $pattern_array) method.

If you have any more questions or would like to see code examples, feel free to ask ;)

  3. Re: Scales   Reply   Report abuse  
Picture of gggg06 gggg06 - 2010-12-02 20:42:48 - In reply to message 2 from Arturs Sosins
Thanx, great script!