Skip to content
View in the app

A better way to browse. Learn more.

Learn more

All previous rewrite functions used together

Featured Replies

Ciao, Opusmoders

All previous rewrite functions used in conjunction for transformations.

Ciao !

https://opusmodus.com/forums/topic/4097-rewrite-len-function/#comment-14209

(setf expressao-omn '((s eb4 d4 e a4 -s s eb4) (h eb4 a4 -s eb4 d4 -s)

(e. d4 a4 eb4 d4)

(-q e f4 s c5 qs fs4)))

image.png

(rewrite-pit

(rewrite-dyn

(rewrite-len expressao-omn

'(h -e s q -h q -q s s s))

'(pp< ff mf fff p < < fff ppp fff mf fff p))

'(c4 g5))

image.png

https://opusmodus.com/forums/topic/4097-rewrite-len-function/#comment-14209

Hi Julio. You could get the same results with omn-replace I think.

Jesper

;; Exemplo 1: Dinâmicas simples

(setf expressao-omn '((s eb4 d4 e a4 -s s eb4 tie) (h eb4 a4 -s eb4 d4 -s tie) (e. d4 a4 eb4 d4) (-q e f4 s c5 qs fs4)))

(rewrite-dyn expressao-omn '(p mf ff))

;;slightly different

(omn-replace :velocity '(p mf ff) expressao-omn)

;; with span the same

(omn-replace :velocity (span expressao-omn '(p mf ff)) expressao-omn)

(rewrite-dyn expressao-omn '(ff > p p< ff> pp ff p p< ff p mf ppp p < ff))

(omn-replace :velocity (span expressao-omn '(ff > p p< ff> pp ff p p< ff p mf ppp p < ff)) expressao-omn)

  • Author

Thanks, Jesper
I did not remember that one. Mine have the advantage of having the embedded span, so we can have a more elegant code.

Best,

Julio

Create an account or sign in to comment

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.