December 30, 2025Dec 30 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
December 30, 2025Dec 30 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/YiniUvDrvIwWorks after having rendered via score or ps.
December 30, 2025Dec 30 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 youpatrick
December 30, 2025Dec 30 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 Folderor (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