Skip to content
View in the app

A better way to browse. Learn more.

Opusmodus

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Command to include in def-score or at the end of code to automaticcaly store the evaluation as indexed midi file to a predefine folder

Featured Replies

Hello

i am looking to find a way to include a Command in def-score or at the end of code to automatically store the evaluation as indexed midi file to a predefined folder .

Thank you

Patrick

I have this in the user source extensions.

;; Export last score to midi in working space folder with
;; incremental number, can be easily used for drag-drop 
;; inside an Ableton Live session
;;
(defun write-midi ()
  "Export last score by writing as midi"
       (compile-score *last-score*
                      :output :midi
                      :file (workspace-file "v.mid")
                      :if-exists :new-index))

Inspired by @Stephane Boussuge here https://youtu.be/YiniUvDrvIw

Works after having rendered via score or ps.

  • Author

Thank you , but if i want the file to be store for example there User/patrickmimran/desktop/Test/ how should i express it .

With this command it saves it to the midi folder of opusmodus , (compile-score 'pat :file "pat" :new-index t) it works well but how may i write a path like User/patrickmimran/desktop/Test/ to save it there ?

Thank you

patrick

Like this, I guess, if you want the file name to be Test.

Jesper

(defun write-midi ()

"Export last score by writing as midi"

(compile-score last-score

:output :midi

:file "/Users/patrickmimran/Desktop/Test.mid"

:if-exists :new-index))

Or if Test is a Folder

or (defun write-midi (filename-string)

"Export last score by writing as midi"

(compile-score *last-score*

:output :midi

:file "/Users/patrickmimran/Desktop/Test/v.mid"

:if-exists :new-index))

Create an account or sign in to comment


Copyright © 2014-2026 Opusmodus™ Ltd. All rights reserved.
Product features, specifications, system requirements and availability are subject to change without notice.
Opusmodus, the Opusmodus logo, and other Opusmodus trademarks are either registered trademarks or trademarks of Opusmodus Ltd.
All other trademarks contained herein are the property of their respective owners.

Powered by Invision Community

Important Information

Terms of Use Privacy Policy

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.