Search the Community
Showing results for tags 'dynamics'.
-
I would like to algorithmically generate dynamic markings with dynamic indications like mp plus hairpins. The code snippet below shows vector values created with custom envelopes that I would like to translate, and the function velocity-to-dynamic almost does that for me already (vector-to-velocity is primarily there to translate a vector into a list). (velocity-to-dynamic (vector-to-velocity 0.1 0.7 #(0.0 0.07936508 0.15873016 0.23809525 0.31746033 0.39682543 0.4761905 0.5555556 0.63492066 0.71428573 0.79365087 0.8730159 0.952381 0.9259259 0.74074066 0.5555556 0.37037033 0.18518525 0.0))) My problem is that velocity-to-dynamic creates lots of intermediate dynamic indications, where instead I would prefer a long hairpin connecting only the extreme dynamic indications. Instead of (pppp< < ppp< pp< < p< < mp< mf< < f< < ff> > mf> mp> p> ppp> pppp) I would like to get something like the following result, which is much clearer for the performer. (pppp< < < < < < < < < < < < ff> > > > > > pppp) Would it be possible to revise velocity-to-dynamic accordingly, or should I better roll my own? Thanks! EDIT: On second thought, a separate function would likely be better, because that can then be used for all functions that generate hairpins, e.g., also gen-dynamic. Best, Torsten PS: A remaining problem would be how to handle rests, where hairpins will be interrupted. A possible solution could be to keep the output of velocity-to-dynamic as is, and instead be able to specify that the final score generation leaves out intermediate dynamic markings as those shown above, but keeps them for rests. However, that might be tricky to implement. Leaving the proper handling of rests to users and instead to simplify the output of velocity-to-dynamic with a new function is much simpler.
-
Hi, The following OMN script gives the notation below. Is it possible to make the diminuendo end with niente as well, while keeping the visual appearance – the length – of the dim? Kind Regards, Erik '(q a4 0< b4 pp> -q)
-
Hi, In the following code the mf of the first bar won't show up. Any other dynamic symbol in the first bar will work as expected. Are you able to reproduce this on your system? All the best, Erik (setf omn (make-omn :length '((1/8 1/8) (1/2 1/2) (1 1)) :pitch '((g4) (d5) (f5)) :velocity '((mf) (f) (mf)) ) ) => ((e g4 g4) (h d5 f d5) (w f5 mf f5)) ; no dynamic symb in first bar! (setf omn (make-omn :length '((1/8 1/8) (1/2 1/2) (1 1)) :pitch '((g4) (d5) (f5)) :velocity '((pp) (f) (mf)) ) ) => ((e g4 pp g4) (h d5 f d5) (w f5 mf f5)) ; now the dynamic symb shows up in the first bar!
-
I've encountered some unexpected behavior of an OMN-script, maybe I'm missing something? The following code gives the intended result: (e d4 mp> > > > pp -) But in the following context using exactly the same OMN-script (second bar) the hairpin won't display: ((e d4 f> > > >) (e d4 mp> > > > pp -)) Both bars playback as intended though. /Erik Opusmodus 1.1.17944 OS X 10.9.5