Jump to content

MIDI to Score error


Recommended Posts

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

 

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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)))))

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy