Skip 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.

pitch swapping with iteration

Featured Replies

Hello, I am Tamas and kind of new in Opusmodus, but learning pretty quickly. It is probably in easy case but I'm stuck at the moment:

I ha a rising c major scale, and then I always want to swap only 2 pitches at a time from the scale. At the next evaluation I want to repeat the same process but already with the previously processed new scale. Is there any way to automate this process because I only came up with this idea which is I am sure the most beginner solution 🙂 

 

(setf scale '(c3 d3 e3 f3 g3 a3 b3))

(setf first (position-swap (rnd-sample 2 '(0 1 2 3 4 5 6) :norep t) scale))
(setf second (position-swap (rnd-sample 2 '(0 1 2 3 4 5 6) :norep t) first))
(setf third (position-swap (rnd-sample 2 '(0 1 2 3 4 5 6) :norep t) second))
(setf fourth (position-swap (rnd-sample 2 '(0 1 2 3 4 5 6) :norep t) third))

(list first second third fourth)

 

Thank you all in advance! 

All the best, Tamas

With :seq set to T you will get what you are looking for:

 

(setf scale '(c3 d3 e3 f3 g3 a3 b3))

(setf pos (gen-loop 4 (rnd-sample 2 '(0 1 2 3 4 5 6) :norep t)))
=> ((6 0) (0 4) (5 4) (0 2))

(position-swap pos scale :seq t)
=> ((e3 d3 c3 f3 g3 a3 b3)
    (e3 d3 g3 f3 c3 a3 b3)
    (e3 b3 g3 f3 c3 a3 d3)
    (c3 b3 g3 f3 e3 a3 d3))

Create an account or sign in to comment


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

Important Information

Terms of Use Privacy Policy

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.