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.

dictum and length to rest

Featured Replies

I would like to change with dictum the first event in the first bar ( or whatever) to a rest of the same length.

I tried several things but could not do it.

 

(setf omn2 '((5q fs4 p - bb3 f3 e4 -3q g4 c5 s eb5 mf a5 cs6 gs6)
(5q gs6 f cs6 a5 eb5 - -s c5 g4 e4)))

 

 (dictum '( :do -5q :bar 1 :event  1 ) omn2)  ;does not work.  The length and not the rest is set.

;=>((5q fs4 p - bb3 f3 e4 -3q g4 c5 s eb5 mf a5 cs6 gs6) (5q gs6 f cs6 a5 eb5 - -s c5 g4 e4))

 

 (dictum '( :do -q :bar 1 :event  1 ) omn2)  ;same here

;=> ((q fs4 p -5q bb3 f3 e4 -3q g4 c5 s eb5 mf a5 cs6 gs6) (5q gs6 f cs6 a5 eb5 - -s c5 g4 e4))

 

A function to change a length to the same rest I did not find. 

 

Anyone any idea how to do that. 

 

Maybe a dictum option like :do :rest would be possible  (or something like this)

 

Probably there  is an easy way and I didn't find it.

No dictum expert but try this.

 

(dictum '((:bar 1 :event  1  :do (gen-pause x))) omn2)

 

Jesper

  • Author

Thank you. Works.

I was searching in the assistant for a function with "rest" in it. Didn't think about searching for "pause". 

 

But:

(dictum '( :do -q :bar 1 :event  1 ) omn2)

should either throw an error if rests are not supported or change the event to a rest and not to a length.

And an option to  maybe ":do - :bar 1 :event 1" (or something like it) would be nice if you want to change for the same rest-length .

 

Rolf

Found a few other ways.

 

Jesper

 

(setf r1 (dictum '((:bar 1 :event 1 :do (gen-pause x))) omn2))
(setf r2 (dictum '((:bar 1 :event 1 :do (- (omn-encode (car x))))) omn2))
(setf r3 (dictum '((:bar 1 :event 1 :do (length-to-rest (car x) x))) omn2))
(setf r4 (dictum '((:bar 1 :event 1 :do (length-invert x))) omn2))
 

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

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.