JulioHerrlein Posted April 30, 2021 Share Posted April 30, 2021 Dear Friends, Is there some way to automatically opening a MIDI FILE (related to the last snippet/score generated) from Opusmodus to other application (Musescore, Sibelius) ? Something similar to this solution ? last-score-to-musescore solution, but for last midi files ? Like this post ? But for midi file? Many thanks in advance ! Much needed now. Best, Julio Quote Link to comment Share on other sites More sharing options...
opmo Posted April 30, 2021 Share Posted April 30, 2021 *last-score* is snippet therefore you should be able to open the it in any publishing app. JulioHerrlein 1 Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted April 30, 2021 Author Share Posted April 30, 2021 Thanks, Janusz ! But I need the Midi File to get the VSL articulations from it. I take the notated part from the XML, using (last-score-to-musescore) wich makes musescore open "automagically" the XML I´d like to have the same thing for Export/Last Score to Midi... without having to save midi file in disk first, then opening to Musescore. Just the command and boom ! Like I have with the XML. Then I will cut just the articulation keyswitches part and paste alongside the XML part. Best ! Julio Quote Link to comment Share on other sites More sharing options...
opmo Posted April 30, 2021 Share Posted April 30, 2021 I will make a function for it. (midi-to-editor) JulioHerrlein and lviklund 2 Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted April 30, 2021 Author Share Posted April 30, 2021 Many thanks, Janusz If possible, add the idea of filtering tracks, for picking specific tracks on rendering the files, like a keyword :tracks (midi-to-editor :tracks '(0 2 3 5)) For rendering/saving just some tracks It would be AWESOME !! Quote Link to comment Share on other sites More sharing options...
opmo Posted April 30, 2021 Share Posted April 30, 2021 This you will need to do before. (midi-to-editor) ;is using the default editor(midi-to-editor "filename") ;specific midifile (not *last-score*)(midi-to-editor :application Musescore) ;*last-score* midi will open in Musescorethe default will be: (defparameter *default-notation-editor* "Sibelius") which you can changed to your editor application. The same I will do to the musicxml:(musicxml-to-editor) JulioHerrlein 1 Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted April 30, 2021 Author Share Posted April 30, 2021 Thank you, Janusz Yes, I already have some user defined things, like this: (defparameter *snippet-clef-default* :treble-down8) (defun last-score-to-musescore () (compile-score *last-score* :output :musicxml :file "temp-last-score") (musicxml-to-editor "temp-last-score" :application "/Applications/MuseScore3.app")) Thanks !! I will try this to see if works ! (defun last-midi-to-musescore () (compile-score *last-score* :output :midi :file "temp-last-midi") (midi-to-editor "temp-last-midi" :application "/Applications/MuseScore3.app")) Quote Link to comment Share on other sites More sharing options...
opmo Posted April 30, 2021 Share Posted April 30, 2021 This will work. JulioHerrlein 1 Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted April 30, 2021 Author Share Posted April 30, 2021 Now, I just need the midi-to-editor function to make it work. Thank you ! Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted May 1, 2021 Author Share Posted May 1, 2021 I tried using the musicxml-to-editor (defun last-midi-to-musescore () (compile-score *last-score* :output :midi :file "temp-last-midi") (musicxml-to-editor "temp-last-midi" :application "/Applications/MuseScore3.app")) Like above, but the musicxml gives an error with midi files... How about to create a generic-file-to-editor choice, to send any type of file to other auxiliary apps ? Best ! Julio Quote Link to comment Share on other sites More sharing options...
opmo Posted May 2, 2021 Share Posted May 2, 2021 In the next update: MUSICXML-TO-EDITOR The MUSICXML-TO-EDITOR function opens a MusicXML file or the last compiled score (DEF-SCORE, PS or snippet) in any notation editor like Sibelius, Dorico, MuseScore etc... In Opusmodus the default editor is set to Sibelius: (defparameter *default-notation-editor* "Sibelius.app") To change the default editor you need to replace the "Sibelius.app" string with the name of your own editor and paste the expression into the ‘User Source.lisp’ file which you will find in the ~/Opusmodus/Extensions directory. For example: (defparameter *default-notation-editor* "Dorico 3.5.app") (defparameter *default-notation-editor* "MuseScore 3.app") Examples: To open the last compiled score (DEF-SCORE, PS or snippet) in the notation editor: (musicxml-to-editor) To open the 2nd instrument from the last compiled score (DEF-SCORE, PS or snippet) in the notation editor: (musicxml-to-editor :instrument 2) To open a MusicXML file in the notation editor: (musicxml-to-editor "file-name") To open the file in Finale: (midi-to-editor "file-name" :application "Finale") Should the application not open you can use the identifier keyword with the bundle-identifier. For example the Sibelius 7.5 version identifier is "com.avid.Sibelius75" (musicxml-to-editor "file-name" :identifier "com.avid.Sibelius75") MIDI-TO-EDITOR The MIDI-TO-EDITOR function opens a MIDI file or the last compiled score (DEF-SCORE, PS or snippet) in any notation editor like Sibelius, Dorico, MuseScore etc... In Opusmodus the default editor is set to Sibelius: (defparameter *default-notation-editor* "Sibelius.app") To change the default editor you need to replace the "Sibelius.app" string with the name of your own editor and paste the expression into the ‘User Source.lisp’ file which you will find in the ~/Opusmodus/Extensions directory. For example: (defparameter *default-notation-editor* "Dorico 3.5.app") (defparameter *default-notation-editor* "MuseScore 3.app") Examples: To open the last compiled score (DEF-SCORE, PS or snippet) in the notation editor: (midi-to-editor) To open the 2nd instrument from the last compiled score (DEF-SCORE, PS or snippet) in the notation editor: (midi-to-editor :instrument 2) To open MIDI file in the notation editor: (midi-to-editor "file-name") To open the file in Finale: (midi-to-editor "file-name" :application "Finale") Should the application not open you can use the identifier keyword with the bundle-identifier. For example the Sibelius 7.5 version identifier is "com.avid.Sibelius75" (midi-to-editor "file-name" :identifier "com.avid.Sibelius75") Stephane Boussuge, lviklund and JulioHerrlein 2 1 Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted May 3, 2021 Author Share Posted May 3, 2021 This is amazing, Janusz !! Many thanks ! Looking forward to this update ! Best ! Julio opmo 1 Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted May 5, 2021 Author Share Posted May 5, 2021 Any release date for the update ? Best ! Julio Quote Link to comment Share on other sites More sharing options...
opmo Posted May 5, 2021 Share Posted May 5, 2021 Possibly next week. JulioHerrlein 1 Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted May 5, 2021 Author Share Posted May 5, 2021 Thanks a lot ! Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted May 23, 2021 Author Share Posted May 23, 2021 One remark, It´s important, in the midi export, to filter things by TRACK and not only BY instrument. The only reason I need midi files is to take the articulation keyswitches. A string quartet midi file opens in Musescore like four piano staves. The upper stave are the notes and the lower are the keyswitches. I just delete the treble clef notes and get the bass clef keyswitches to paste onto my xml version of the same snippet / score, etc. I have a blank template with the staves for voices and staves for keyswitches. I paste the keyswitches slightly earlier (like a 64th or 32nd note earlier) to activate the keyswitches before the note attacks. It´s kind of weird and labourious but the playback is magnific and worth the effort. So, something like this would be cool (musicxml-to-editor :track (2 4 6 8)) Even cooler with an option of playing a little earlier (like a 64th note earlier (musicxml-to-editor :track (2 4 6 8) :offset -1/64) Best ! Julio Quote Link to comment Share on other sites More sharing options...
opmo Posted May 23, 2021 Share Posted May 23, 2021 Instrument means track. JulioHerrlein 1 Quote Link to comment Share on other sites More sharing options...
JulioHerrlein Posted May 23, 2021 Author Share Posted May 23, 2021 Beautiful ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.