Group Admins

  • Profile picture of Karim
  • Profile picture of Jean


Public Group active 10 hours, 16 minutes ago

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

How to set the single float format once for all in OM

Author 2 Subscribed Users |
Profile photo of Francesco Vitale
Francesco Vitale

this is a problem that’s been haunting me for a long time. For reasons unknown to me, OM keeps outputting real numbers data ending with a “F0″ by default. For this reason, every time I start OM, I have to type in the listener the command OpenMusic 1 > (setf *read-default-float-format* ‘single-float). How can I set this choice for floats as default, and make it working once for all? Thanks for your kind concern.

March 19, 2017 at 18:41 #21943
Profile photo of Jean

Hi — in principle *read-default-float-format* is set to ‘single-float by default in OM.
You should maybe check in some code you might be loading (user folder ? OM/patches/ ? some external library ?) if this is not changed somewhere..

March 30, 2017 at 17:36 #22039
Profile photo of Francesco Vitale
Francesco Vitale

Dear Jean,
maybe there’s some .lisp file in the OM/patches folder that causes OM to start with the F0 floats. Shall I set the command setf *read-default-float-format* ‘single-float in the preferences file of the workspace?

March 30, 2017 at 17:48 #22040

You must be logged in to reply to this topic.

Log in now