Jump to content
Sign in to follow this  
AlainJamot

Fibonacci

Recommended Posts

Hi,

 

how can I do to emulate this wonderful Fibonacci function in Symbolic Composer, great to create "background" patterns.

 

'cause the Fibonacci in OM handle just numbers, and not musical events. In scom, it was something like that:

 

note1, note2, note2 + note1...

 

Alain

Share this post


Link to post
Share on other sites

No, it could be used by rythm, dynamic... Of course one can do it by hand but a function is generally faster... when you know how to do it, and it's unfortunately not my case :-)

Share this post


Link to post
Share on other sites

Just use numbers to pitch, lengths etc... conversion.
I would advise you to check the System Function documentation and play with the examples a bit :-)

 

Example:

(setf fib (interval-modus (fibonacci 0 23) :mod 12))
 
(setf pitch (integer-to-pitch fib))
 => (c4 cs4 cs4 d4 eb4 f4 gs4 cs4 a4 bb4 g4 f4
     c4 f4 f4 bb4 eb4 cs4 e4 f4 a4 d4 b4 cs4)

(setf length (vector-to-length 1/16 1 2 fib))
=> (1/16 1/16 1/16 1/16 1/16 1/16 1/8 1/16 1/8 1/8 1/8 1/16
    1/16 1/16 1/16 1/8 1/16 1/16 1/16 1/16 1/8 1/16 1/8 1/16)

(make-omn
 :length length
 :pitch pitch)
=> (s c4 cs4 cs4 d4 eb4 f4 e gs4 s cs4 e a4 bb4 g4
   s f4 c4 f4 f4 e bb4 s eb4 cs4 e4 f4 e a4 s d4 e b4 s cs4)

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×