Group Admins

  • Profile picture of Karim
  • Profile picture of Jean

OpenMusic

Public Group active 2 hours, 34 minutes ago

User group for OpenMusic and computer-aided composition. Visit the Forum for discussions.

save-as-etf and OM6.12

Author 2 Subscribed Users |
Profile photo of Jimmie
Jimmie

Hi,

It seems that OM6.12 is not seeing/recognizing the template.etf it has enclosed in its own package (Resources folder). I tried to create a new Resources folder in the main folder of the app, as it was in earlier versions (I did so for 6.11 and it worked), but no success with 6.12. You can see the error message attached.

Thanks for any help!

Jimmie

Attachments:
  1. Capture-d’écran-2018-02-01-à-12.36.56

    Capture-d’écran-2018-02-01-à-12.36.56.png

  2. Capture-d’écran-2018-02-01-à-12.36.56

    Capture-d’écran-2018-02-01-à-12.36.56.png

February 1, 2018 at 18:38 #24966
Profile photo of Jean
Jean

Hi Jimmie,

That’s partly caused by the relocation of the .app in recent macOS versions.

Can you try with OM 6.13 ?

Jean

February 1, 2018 at 18:42 #24969
Profile photo of Jimmie
Jimmie

Hi Jean,

Thank you!, it actually works in 6.13. The reason why I am stil with 6.12 is because OM-Tristan has not been updated yet to load properly on 6.13 (and I’m not sure I would know how to edit the code myself, as it has been discussed in an earlier thread)…

Is there any affordable fix at hand, either for the template with 6.12, or the edit to do in OM-Tristan?

J.

February 1, 2018 at 18:49 #24970
Profile photo of Jean
Jean

(and I’m not sure I would know how to edit the code myself, as it has been discussed in an earlier thread)

Why not just try it :)
– Open the file TMlibrarie-OM.lisp with a Text editor of your choice (or from the OM Listener: cmd+O),
– Search (cmd+F) and remove all definitions (defmethod … ) of mc->n mc->n1, n->mc, n->mc1.
– Save the file. Restart.
=> you’re a hacker now !

http://forumnet.ircam.fr/fr/user-groups/openmusic/forum/topic/om-6-13-error-whlie-loading-omtristan-3-3/

February 1, 2018 at 18:57 #24971
Profile photo of Jimmie
Jimmie

Indeed, you are absolutely right :)

Just to be sure, though: do I delete only the expressions you mention (like ‘mc->n’) or the whole lines and paragraphs containing them?

February 1, 2018 at 19:11 #24972
Profile photo of Jean
Jean

In Lisp a function (or “method”) definition is formatted as

(defun/defmethod name_of_the_function (arguments)
[body of the function]
)

Every opening parenthesis has a corresponding closing parentheis (otherwise there’s a syntax error in the program)

=> just find the closing parenthesis corresponding to the opening “defun” or “defmethod” and remove the whole definition.

(this would usually roughly corresponds to a text “paragraph”)

February 1, 2018 at 19:16 #24973
Profile photo of Jimmie
Jimmie

Ok, I did it and at least the library now loads without error.

Just to make sure, since I don’t want to have erased too much things : I paste an example of a paragraph I deleted – everything from (defun… to midic)), and the next line starts at (om: :defmethod! mc->n…). Is that correct? I assumed that all that was not justified to the left was part of the same definition…

Thank you again!
Jimmie

Attachments:
  1. Capture-d’écran-2018-02-01-à-13.25.59

    Capture-d’écran-2018-02-01-à-13.25.59.png

  2. Capture-d’écran-2018-02-01-à-13.25.59

    Capture-d’écran-2018-02-01-à-13.25.59.png

February 1, 2018 at 19:32 #24974

You must be logged in to reply to this topic.

Log in now