Jump to content

Featured Replies

Posted

In the video "Mapping Velocity to Pitch - How To in 100 Seconds", it is demonstrated how to apply MIDI velocities to a composition.

 

However, one might just want to apply a certain velocity curve purely for a playback effect, without getting that many visually excessive dynamic markings in the actual score.

I hope that is possible to achieve right now?

 

Of course, one could later manually remove excessive markings in their preferred notation program. However, this is an inconvenience; moreover, during the compositional process within Opusmodus, you can see how it is an inconvenience to constantly see all those markings.

;;;---------------------------------------------------------
;;; Parameters
;;;---------------------------------------------------------

(setf vect  (vector-smooth 0.23 (gen-noise 128)))
(setf pch   (vector-to-pitch '(e4 g6) vect))
(setf vel   (vector-to-velocity 0.1 0.9 vect))
(setf len   (gen-repeat (length vect) '(s)))

;; Don't use velocity in OMN
(setf omn (filter-change
           (make-omn
            :pitch    pch
            :length   len
            )))

(setf flute omn)

;;;---------------------------------------------------------
;;; Score and Layout
;;;---------------------------------------------------------

(def-score flute
           (:title "Title"
            :composer "Composer Name"
            :copyright "Copyright © "
            :key-signature 'chromatic
            :time-signature '((1 1 1 1) 4)
            :tempo 100
            :layout (flute-layout 'flute))
  
  (flute
   :omn flute
   :channel 1
   :velocity vel ;; BUT USE IT HERE
   :sound 'gm
   :program 'flute
   :volume 95
   :pan 70
   :controllers (91 '(52))
   )
  )

 

  • Author
33 minutes ago, Stephane Boussuge said:
;; Don't use velocity in OMN

Thank you for the code example. This seems to exclude everything, though. What if I do want some markings in my score, is that possible? Even if they are, like, "fake" and unrelated to the actual MIDI velocities under the hood, that would be ok too. Of course, you would normally want some markings, like a "mf" at the start of a measure, etc.

 

Set the :ignore-velocity to T in the def-score instance, this will hide all the velocity symbols in the score:

 

(def-score name
    (:key-signature 'chromatic
     :time-signature '(4 4)
     :tempo 120
     :ignore-velocity t)
. . .)

 

 

 

  • Author
6 minutes ago, opmo said:

this will hide all the velocity symbols in the score

  

See my very post above yours.

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