Jump to content
Sign in to follow this  
  • entries
    5
  • comments
    10
  • views
    4,800

Short example of tendency masking

Stephane Boussuge

1,058 views

Tendency masking is first described by the composer G.M. Koenig.

It is a random selection between two envelope based boundaries.

I have tried to reproduce here this technique for pitch and length selection in a very simple way.

;;; First, boundary description
(setf highb (gen-palindrome '(6 6 6 7 8 8 9 10 10 11 12 13 14 15 16 16 16)))
(setf lowb (gen-palindrome '(6 6 6 5 4 4 3 3 3 2 2 2 2 1 1 1 1)))

;;; Plotting
(list-plot (list highb lowb) :join-points t)

;;; Random pitch selection between boundary
(setf pitch (integer-to-pitch 
             (mapcar (lambda (x y) (rnd-range x y)) highb lowb))) 

;;; Random length selection between boundary
(setf len  (vector-to-length 
            '1/16
            1 8
            (mapcar (lambda(x y) (rnd-range x y)) highb lowb)))

;;; OMN Assembly
(setf phrase (make-omn
              :pitch pitch
              :length len))

SB.



3 Comments


Recommended Comments

Thank you Stephane! How would it be possible to use it as a filter of an already existing set of pitches and replace the out-of-boundary values with pauses? 

 

Share this comment


Link to comment
;;; First, boundary description
(setf amb (gen-ambitus-series '(-30 42)
                    (vector-smooth 0.2 (gen-white-noise 12 :seed 23))
                    (vector-smooth 0.2 (gen-white-noise 12 :seed 24))))



;;; Generating the pitch set for apply filtering on it.

(setf some-mat (make-omn
                :pitch (rnd-sample 256 (make-scale 'c2 48))
                :length (euclidean-rhythm (gen-repeat 32 12)
                                          1 12 's :type 2)
                ))

;; Filtering
(setf p1 (mapcar (lambda(x) (ambitus-filter x some-mat)) amb)) 

 

SB.

Share this comment


Link to comment

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
×