Creating mlys scripts

Is anyone able to generate mlys scrips with the save-script command? I always get the following error: “Error: Foreign function |
modalys_set_variable_internal_name | trying
to call to unresolved external function

I am on Modalys 3.5.1b4, and also tried it previously on 3.5.0. My macOS: 10.14.5 (though I’ve tried it on several other earlier OSs). My Modalisp script is dead simple. My save-script command looks like this:
(save-script “/Users/mus/bichord.mlys”)

Apologies: this is a repeat question, but I have yet to have it resolved after months!
Is my problem local only? Or does this feature just not work anymore? Could it have something to do with my filepath? Terminal confirms that’s a viable location…

Any help is much appreciated.

Hi Per,

This is fixed in the latest release (see today’s message).

Best, and thank you for your patience,

Hi Robert,
Thanks so much for fixing this! Initial tests of the mlys script system look great!
EXCEPT - I now can’t render audio in Modalisp with the (run) and (play) commands. I get an ERROR: error playing sound dialog.
I tried it with my own scripts, and with ex1 - plucked string.lisp, same problem.


Hmm… That is wee queer. Not seen that one.

  1. Which mac OS are you running these days? (checked on 10.12.6 & 10.13.6).
  2. What does ModaLisp’s listener exactly tell?


I’m on 10.14.5, and don’t think I’ve tried this since upgrading to that some time ago.
When evaluating ex 1 (which runs 2 secs of audio), the listener says:
Generating samples…
[t 0.08, step 3688] Info: pluck: contact
[t 0.19, step 8326] Info: pluck: end contact! (perforation)
[t 1.00, step 44100] … 1.00 seconds until end (load = 1)
[t 2.00, step 88200] … 0.00 seconds until end (load = 1)
… finished computing 2.00 second(s) of sound.

I tried Playing Last Synthesis too, and received the same error. I also tried saving it, and that worked fine, I was able to play the saved AIFF in another app.
Hope that helps!

Hi Per,

Thanks for the details. It’s good to hear that the synthesis in itself does happen.
It is being inquired… ( and I really suspect something linked to 10.14).

Stay tuned!

Hi Per (and Jailin, who seems to have the same problem),

Unfortunately I have not been able to reproduce the “error playing sound” situation so far (even under 10.14). This is kind of frustrating for me.
Have you tried installing Modalys on another machine, just for testing purpose?..