Skip to content
View in the app

A better way to browse. Learn more.

Opusmodus Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

shift-length-proportions / morph

Featured Replies

shift-length-proportions 

 

a bit like gen-morph for LENGTHS. every item of a length-list will change linear till the endpattern is reached.

 

 


;;; subfunction

(defun compare (start end &key (step 1/32))
  (list (loop 
          for i in start
          for j in end
          
          when (/= i j)
          collect (if (> i 0)
                    (if (< i j)
                      (+ i step)
                      (- i step))
                    (if (> i j)
                      (- i step)
                      (+ i step)))
                    
          else collect i)
        end))


;;; mainfunction

(defun shift-length-proportions (start end &key (step 1/32) (rnd-pick nil))
  (let ((seq))
    (progn 
      (setf seq
            (progn 
              (setf start (omn :length start)
                    end (omn :length end))
              (append (list start)
                      (loop until (equal start end)
                        collect (setf start (car (compare start end :step step)))))))
  (if (or (null rnd-pick) (equal rnd-pick 'all))
    seq
    (rnd-sample rnd-pick seq)))))
  

;;; EXAMPLES

(shift-length-proportions '(1/32 7/32 1/16 3/16 1/4 -1/2) '(1/16 1/16 1/16 1/16 1/16 -1/2) :step 1/32)
(shift-length-proportions '(1/16 1/16 1/16 1/16 1/16 -1/2) '(1/16 7/32 1/16 3/16 1/4 -1/2)  :step 1/32)


(shift-length-proportions '(1/32 7/32 1/16 3/16 1/4 -1/2) '(1/16 1/16 1/16 1/16 1/16 -1/2) :step 1/32 :rnd-pick 3)
(shift-length-proportions '(1/32 7/32 1/16 3/16 1/4 -1/2) '(1/16 1/16 1/16 1/16 1/16 -1/2) :step 1/32 :rnd-pick 4)
(shift-length-proportions '(e q h e.. s -h) '(q q q q q -h) :step 1/32 :rnd-pick 3)


 

Create an account or sign in to comment


© 2014-2026 Opusmodus™ Ltd. All rights reserved.
Product features, specifications, system requirements and availability are subject to change without notice.
Opusmodus, the Opusmodus logo, and other Opusmodus trademarks are either registered trademarks or trademarks of Opusmodus Ltd.
All other trademarks contained herein are the property of their respective owners.

Powered by Invision Community

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.