TomTolleson Posted October 31, 2021 Share Posted October 31, 2021 Hello, I have a MIDI file which I'm able to play fine in OpusModus. When I attempt to use File > Export > MIDI to score I receive the following error: "The operation couldn’t be completed. The value NIL is not of the expected type (OR CONS INTEGER)." I've tried a variety of export settings, all result in the same error. My goal is to import a score in some format (MIDI, MusicXML) and convert to OMN. Thank you, Tom Quote Link to comment Share on other sites More sharing options...
opmo Posted October 31, 2021 Share Posted October 31, 2021 Please send me the midi file and I will have a look. Quote Link to comment Share on other sites More sharing options...
TomTolleson Posted October 31, 2021 Author Share Posted October 31, 2021 Thanks! Here you go. It was generated from Ableton. I'm also including a MusicXML of the MIDI pitches from Musescore if that reference is helpful. MIDI vocal pacing.mid VocalpacingXML.musicxml Quote Link to comment Share on other sites More sharing options...
opmo Posted October 31, 2021 Share Posted October 31, 2021 Thanks for the files. Quote Link to comment Share on other sites More sharing options...
opmo Posted October 31, 2021 Share Posted October 31, 2021 In the midi file there is no tempo set. We will add 120 as a default if midi without one. We are patching other apps bugs, there should be no midi files without a tempo parameters - no time no music This will be fixed in the next update. TomTolleson 1 Quote Link to comment Share on other sites More sharing options...
TomTolleson Posted October 31, 2021 Author Share Posted October 31, 2021 Great thanks! I'l add tempo to the file. Quote Link to comment Share on other sites More sharing options...
TomTolleson Posted November 14, 2021 Author Share Posted November 14, 2021 Hello again! So I've been working with this midi file and still getting no luck. I used miditocsv converter in python and I can see the tempo information there as 500000 ms (120bpm). Still having no luck and receiving the same error. I'm attaching both files. One possible solution - converting the MIDI to OMN in Python or LISP? I just need the pitch and duration (including rests) information. I'm happy to attemp this but I don't want to reinvent the wheel if there is already a wheel available. I'm attaching my files again. 0, 0, Header, 1, 2, 480 1, 0, Start_track 1, 0, SMPTE_offset, 32, 0, 0, 0, 0 1, 0, Time_signature, 3, 2, 24, 8 1, 0, Tempo, 500000 1, 0, End_track 2, 0, Start_track 2, 0, Title_t, "Lead" 2, 0, Program_c, 0, 80 2, 0, Control_c, 0, 7, 100 2, 0, Control_c, 0, 10, 64 2, 0, Note_on_c, 0, 55, 70 2, 0, Control_c, 0, 1, 70 2, 2375, Note_off_c, 0, 55, 0 2, 2885, Note_on_c, 0, 53, 72 2, 2885, Control_c, 0, 1, 72 2, 3340, Note_off_c, 0, 53, 0 ... so on and so forth (see complete data in attached file)... 2, 171816, End_track 0, 0, End_of_file pacing.mid example_converted.csv Quote Link to comment Share on other sites More sharing options...
opmo Posted November 14, 2021 Share Posted November 14, 2021 It works, no problem here. Midi to Score: input: pacing.mid ;; MIDI Import | Opusmodus Version 2.2.26790 | 2021-11-14 19:45:26 (def-score +imported (:title "+IMPORTED" :composer nil :copyright nil :key-signature '((c maj)) :rewrite-lengths 't :time-signature '((3 4)) :tempo '((120))) (lead :omn '(#|1|# (h. g3 tie) #|2|# (h g3 -q) #|3|# (q f3 q. g3 -e) #|4|# (e. f3 -s h d3 tie) #|5|# (q.. d3 -q -s) #|6|# (-q ds3 s e3 -e.) #|7|# (h g3 q f3 tie) #|8|# (e. f3 -s h d3 tie) #|9|# (q d3 - g3 tie) #|10|# (q g3 q. f3 -e) #|11|# (h. g3 tie) #|12|# (q g3 h^s) #|13|# (s f3 -q.. s d3 -e.) #|14|# (-h.) #|15|# (-q e. b2 -s e. d3 -s) #|16|# (q d3 h f3 tie) #|17|# (e f3 - e. ds3 -s q g3 tie) #|18|# (h. g3 tie) #|19|# (s g3 -q.. q d3) #|20|# (z^h. b2 tie s e3 -he.) #|21|# (q^z b2 - s as2 -e.) #|22|# (-h q gs2) #|23|# (-s he. as2 tie) #|24|# (h as2 -q) #|25|# (q fs2 a2 as2 tie) #|26|# (h. as2 tie) #|27|# (q^s as2 - d3) #|28|# (q f3 h g3 tie) #|29|# (h. g3 tie) #|30|# (q g3 -h) #|31|# (-h.) #|32|# (-h.) #|33|# (-h q g3 tie) #|34|# (q^z g3 e. f3 -s q g3) #|35|# (e. f3 -s q d3 -) #|36|# (q a2 d3 s f3 -e.) #|37|# (hs f3 -e.) #|38|# (-q d3f3 -) #|39|# (-q g3 f3 tie) #|40|# (q f3 z^h c3 tie s d3 -q..) #|41|# (q..^z c3 -s as2 -e.) #|42|# (-h.) #|43|# (h.^s g2) #|44|# (-q. e ds2 q g2) #|45|# (q.^s as2 z^e cs3 z^q. d3 tie s c3 -qs) #|46|# (h^z d3 -q) #|47|# (q gs3 h f3) #|48|# (e f3 s d3f3 - d3 tie) #|49|# (he. d3 -s) #|50|# (-e. q as2 as2 -s) #|51|# (-e. q c3 qs tie) #|52|# (q. c3 -) #|53|# (-h q c3 tie) #|54|# (q^z c3 h as2) #|55|# (h g2 -q) #|56|# (q g2 b2 -e as2 tie) #|57|# (q as2 e a2 q. tie) #|58|# (q a2 h g2 tie) #|59|# (q g2 b2 as2) #|60|# (q a2 h as2 tie) #|61|# (q as2 -h) #|62|# (e. f3 qs d3 -q) #|63|# (q. g3 e3) #|64|# (q gs3 h g3 tie) #|65|# (q.. g3 -q -s) #|66|# (-h q f3) #|67|# (h. g3 tie) #|68|# (qs g3 -q..) #|69|# (-h.) #|70|# (-h.) #|71|# (-h.) #|72|# (q e3 e3 f3) #|73|# (he f3 -e) #|74|# (-q ds3 q^s e3) #|75|# (h. c3 tie) #|76|# (h. c3) #|77|# (-q cs3 cs3 tie) #|78|# (h. cs3 tie) #|79|# (q..^s cs3 qs as2 tie) #|80|# (q^z as2 ds3 ds3) #|81|# (q d3 cs3 d3 tie) #|82|# (h d3 q) #|83|# (q ds3 d3 ds3 tie) #|84|# (q ds3 -h) #|85|# (-h q fs3) #|86|# (q fs3 g3 fs3) #|87|# (h. g3) #|88|# (-h s a3 -e.) #|89|# (q g3 - ds3) #|90|# (q ds3 h fs2 tie) #|91|# (h fs2 -q) #|92|# (q fs2 h tie) #|93|# (q fs2 - gs2) #|94|# (q a2 a2 a2) #|95|# (h. gs2) #|96|# (-h.) #|97|# (-h q c3) #|98|# (q b2 h cs3 tie) #|99|# (h cs3 q c3) #|100|# (q ds3 g3 as3) #|101|# (h. g3) #|102|# (-q e3 ds3) #|103|# (hs g3 -e.) #|104|# (q as3 h g3 tie) #|105|# (s g3 -e. q^s f3 fs3) #|106|# (q f3 f3 d3 tie) #|107|# (q d3 -h) #|108|# (q c3 b2 -) #|109|# (q b2 b2 c3 tie) #|110|# (e.^z c3 -s q a2 a2) #|111|# (q c3 - b2) #|112|# (-q s c3 -q..) #|113|# (q as2 cs3 as2) #|114|# (h as2 -q) #|115|# (-h q cs3 tie) #|116|# (q cs3 as2 s cs3 -e.) #|117|# (q as2 a2 -) #|118|# (q f2 h gs2 tie) #|119|# (h. gs2 tie) #|120|# (q gs2)) :channel 1 :sound 'gm :program 'lead-1-square :volume 100 :pan 64 :controllers (1 '((70 577/384) (72 91/384) (55 191/384) (68 25/96) (67 577/384) (64 23/96) (71 95/384) (62 49/48) (71 569/384) (63 49/96) (74 245/192) (65 41/192) (75 677/384) (68 97/384) (71 47/192) (72 91/384) (67 3/4) (68 1/4) (64 581/384) (79 23/96) (68 21/128) (57 421/384) (62 3/4) (67 29/96) (56 551/384) (64 101/384) (75 91/384) (69 677/384) (64 49/192) (70 767/192) (68 33/64) (71 15/64) (72 47/96) (63 49/96) (74 15/64) (68 103/384) (65 91/384) (79 97/96) (70 145/192) (67 23/96) (75 197/384) (67 197/384) (64 23/48) (72 397/384) (64 13/12) (63 49/384) (77 9/32) (63 63/128) (70 31/384) (56 43/384) (46 305/384) (72 47/192) (59 1/2) (64 65/384) (51 7/24) (55 29/128) (62 1) (52 1/4) (60 1/2) (58 1/4) (70 149/96) (66 199/384) (69 63/128) (70 3/4) (63 1/4) (73 3/8) (59 3/8) (65 1/8) (59 81/128) (67 281/384) (72 25/96) (66 1/4) (71 95/384) (77 481/384) (75 3/16) (53 9/16) (78 73/192) (53 71/192) (76 2) (70 1/4) (75 15/4) (68 1/4) (71 23/96) (59 95/384) (70 389/384) (69 101/384) (70 29/128) (72 169/96) (73 107/384) (70 379/192) (80 95/384) (69 1/4) (76 95/384) (74 31/128) (62 73/96) (66 1/4) (73 1/4) (66 1/4) (62 3/2) (66 1/4) (64 1/2) (69 1/4) (72 5/4) (73 1/4) (68 1/2) (63 1/4) (74 1/4) (66 5/4) (67 1/4) (76 1) (74 1/4) (64 1/4) (61 1/4) (70 9/4) (69 1/4) (81 1/4) (72 1) (79 1/4) (63 1/4) (72 1/4) (65 15/64) (70 65/64) (55 1/4) (67 1/4) (72 3/4) (73 1/4) (67 3/4) (68 1/4) (75 1/4) (72 1/4) (63 1/4) (68 1) (73 1/4) (70 1/2) (71 1/4) (73 1/4) (67 1/2) (78 1/4) (73 1/4) (68 63/128) (71 65/128) (62 1/2) (75 1/4) (71 1/4) (73 1/4) (74 5/4) (69 283/384) (66 101/384) (67 1/4) (80 1/2) (76 1/4) (72))))) Quote Link to comment Share on other sites More sharing options...
TomTolleson Posted November 19, 2021 Author Share Posted November 19, 2021 Thank you! There must be something weird on my end. It's happening in Macs using both Catalina and Big Sur. I'll post back if I find the cause. Thanks again! Quote Link to comment Share on other sites More sharing options...
opmo Posted November 20, 2021 Share Posted November 20, 2021 What OM version you are using, 2.2.26790 ? Quote Link to comment Share on other sites More sharing options...
TomTolleson Posted January 11, 2022 Author Share Posted January 11, 2022 Hello! Sorry I'm just seeing your question. I'm using version 2.2.26813 Executing the lines (midi-to-omn "/Users/tom/intermediate/midi/progression.mid" :instrument 1 :bars '(1..8) :quantize '(1 2 4 8)) Returns this error in the listener: > Error: There is no applicable method for the generic function: > #<standard-generic-function mts-track-info-tempos #x302000A6CCBF> > when called with arguments: > (nil) > While executing: #<ccl::standard-kernel-method no-applicable-method (t)>, in process Listener-2(9). > Type cmd-/ to continue, cmd-. to abort, cmd-\ for a list of available restarts. > If continued: Try calling it again > Type :? for other options. 5 > Hope that helps! I'm still unable to save MIDI to score. Thanks, Tom Quote Link to comment Share on other sites More sharing options...
opmo Posted January 11, 2022 Share Posted January 11, 2022 Please send me the midi file. progression.mid Quote Link to comment Share on other sites More sharing options...
TomTolleson Posted January 13, 2022 Author Share Posted January 13, 2022 Here you go! Tom progression.mid I have a lot of other files to load though as I output them from Musescore and other applications. It seems to be a bit of a sticking point in my workflow that it's not working with any of my MIDI files. Here's a file I currently need to convert to OMN. track1_percs.mid Quote Link to comment Share on other sites More sharing options...
TomTolleson Posted January 14, 2022 Author Share Posted January 14, 2022 Actually, what I'm finding works well is just to load the MIDI into Musescore and use the Midi Entry function under the Tools menu in OM to record the pitches. So my workflow is fine. JulioHerrlein 1 Quote Link to comment Share on other sites More sharing options...
opmo Posted January 22, 2022 Share Posted January 22, 2022 Your midi file dose not include tempo and time-signature values. Please check your Musescore setup - something is wrong there. Quote Link to comment Share on other sites More sharing options...
opmo Posted January 23, 2022 Share Posted January 23, 2022 We added default time-signature value (4 4) if none. Next update 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.