Jump to content
Sign in to follow this  
opmo

Opusmodus 1.2.23227

Recommended Posts

Opusmodus 1.2.23227


I have devoted few days to extend our functions verbose. All function will print now more information with the parameters of the variables and keywords used. I think this will help with you with your work and will speed up the learning of the various functions options.

 

Examples:

(add-sine-waves
 4 24 1 0.6
 :modulation
 (gen-sine 24 1 (sort-asc '(0.5 0.4 0.3 0.6 0.2 0.9))
           :modulation (gen-sine 24 1 0.9 :phase 180)))

;; Listener
gen-sine, res: 24 freq: 1 amplitude: 0.9 phase: 180 modulation: nil float-format: single-float
gen-sine, res: 24 freq: 1 amplitude: (0.2 0.3 0.4 0.5 0.6 0.9) phase: nil modulation: t float-format: single-float
add-sine-waves, niter: 4 res: 24 freq: 1 amplitude: 0.6 phase: nil modulation: t float-format: single-float
=> (0.0 0.3163039 0.65313345 0.99170077 1.2972221 1.5567598 1.4981123 1.5781916 1.5118134 1.2951372
    1.0774696 0.9499778 1.3709285 1.4553853 1.4857507 1.1464057 1.0752162 1.4443256 0.89989895
    0.93597645 1.102749 1.5229248 1.1551269 0.73289376)
(pitch-figurate 2 '(c4 as3 b3 fs4 e4 f4) :seed 65)

;; Listener
? pitch-figurate, count: 2 interval: ? variant: nil parallel-invert: nil ambitus: piano seed: 65
=> (c4 bb3 b3 fs4 e4 fs4 f4 fs4)
(gen-binary-rnd 3 8 1 3 :seed 89)

;; Listener
? gen-binary-rnd, size: 3 level: 8 low: 1 high 3 start: nil rotate: 0 seed: 89
=> ((0 1 1 1 0 0 0 1) (1 1 1 0 1 0 0 0) (0 1 1 1 0 0 0 1))

 

Best wishes,

JP


 

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  

×