< Back to IRCAM Forum

Rhythm and dynam. problem xml

Thx Petr,

So our last hope is Jean’s answer. He’s away for now and will respond am sure, about this.

Best
K

no, I can’t see any reason why it should work differently on Windows than Mac/Linux.

My guess is that the patch file is actually not loaded (maybe installed in the wrong location – are there several versions of OM installed ?)
It is easy to test, for instance evaluating note-types in the listener and see if karim’s correction has been applied (i.e. 62 replaced by 64)

Alternatively you can also load the .lisp file directly from the Listener (Lisp/Load File… or Open File + Lisp/Eval All)

ps. @petr for the dynamics you can for instance redefined om::midi-vel-to-mxml-vel so that it returns the same value:

(defun om::midi-vel-to-mxml-vel (vel) vel)

Jean, I load the .lisp karim´s file (directly from the Listener,see attach), restarted OM. Unfortunately, the situation is the same.
Am I doing something wrong? P.

lisp-loaded.jpg

You must not Quit/Restart OM after loading the file manually.
Or you need to reload it just after you restart.

ok: got it (I hope)
There was a wrong package name in the previous file.
Please remove any
“mxml-fix.lisp” you may have before and use this one instead (in …/OM 6.10/paches/)

mxml-fix2.lisp (224 Bytes)

Jean, I deleted file “mxml-fix.lisp” and put your file “mxml-fix2.lisp” in folder: program files …/OM 6.10/paches/. Unfortunately, the situation is the same.
Am I doing something wrong? P.

Did you restart ?

If so, please try th efollowing:

  • Go to the OM general preferences and check the “Enable Listener Input” option
  • In the top part of the Listener, type mxml::note-types + ENTER
    => what do you read ?

Jean, I did it, see attached. please, Petr

desktop-with-OM-pref-and-listener.jpg

please type the whole word: “mxml::note-types
thanks

Jean, I did it, see atach… Dear Jean and Karim, thank you for your help, now everything is fine, XML export is correct. Greetings and thanks from Prague to Paris, PetrH

everOK.jpg

Dear Jean, one more about dynamic - about diferend value in OM and XML export. You wrote “ps. @petr for the dynamics you can for instance redefined om::midi-vel-to-mxml-vel so that it returns the same value:(defun om::midi-vel-to-mxml-vel (vel) vel)”. How to understand? that means, put “(defun om::midi-vel-to-mxml-vel (vel) vel)” to listener with required value? For example “(defun om::midi-vel-to-mxml-vel (10 20 30 50) vel)” and after that Enter? (I tryed it, but it is probably bad way). Sorry for the silly question, thank you very much, Petr H.

What I am suggesting you is to redefine the function that converts the dynamics so as it returns the same input value [f(x)=x]
To do so you need to evaluate the expression “(defun mxml::midi-vel-to-mxml-vel (vel) vel)” as is in the listener (note the “mxml” replacing “om” which was wrong in my previous post).
Alternatively you can put this other attached file in the OM 6.10/patches/ folder

xml-vel-hack.lisp (58 Bytes)

Jean, great, thank you very much, it works, PetrH