Jump to content
View in the app

A better way to browse. Learn more.

Opusmodus

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.

Simulation of a Cellular Automaton with Pitch-List-Plot

Featured Replies

Fixed intervals: each generation extracts a predefined interval-sequence. Within the simulation loop—which runs and visualizes multiple generations—users can choose whether to display intervals or absolute pitches.

With every generation (or evaluation), the initial binary sequence is modified. This dynamic updating makes the specific behavior of each rule more apparent, allowing for clearer comparisons between different cellular automaton rules.

(progn
  ;; set rule number
  ;(setf rule 12)
  (setf rule (random 257))
  ;; set n simulations
  (setf sims 5)

  (loop repeat sims
        do (progn
             (setf intervals  (pitch-to-interval (rnd-air :group :symmetric :type :pitch :seed 1234)))
             
             
             (setf seq (cellular-automaton rule 200 (gen-binary-rnd 1 11 1 3)))
             (setf positions (loop for i in seq
                                   collect (position-item 1 i)))
             
             (setf ilist (loop for i in positions
                               collect (position-filter i intervals)))
             
             (setf plist  (loop for i in ilist collect (interval-to-pitch i)))
             (setf plist2  (interval-to-pitch (flatten ilist))))
        
        ;; intervals
      ; do (list-plot (flatten ilist)  :join-points nil :style :fill)
      
      ;; pitches every gen starting on c4  
      ;do (pitch-list-plot (flatten plist)  :join-points t :style :fill))
      
      ;; pitches all (without gen restart)
      do (pitch-list-plot (flatten plist2)  :join-points t :style :fill)
      do (sleep 1)))

Create an account or sign in to comment


Copyright © 2014-2025 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

Important Information

Terms of Use Privacy Policy

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.