OpenNoteBlockStudio icon indicating copy to clipboard operation
OpenNoteBlockStudio copied to clipboard

Generate from MIDI Fails

Open PaxiTheAlchemist opened this issue 5 years ago • 4 comments

Describe the bug

Upon uploading a MIDI file to onbs, the application errors

To Reproduce

Steps to reproduce the behavior:

  1. Launch obns
  2. From the startup dialog, click "Generate song out of MIDI file"
  3. Select the attached MIDI file (located within the provided zip due to GitHub not being able to accept MIDIs)
  4. Error Should appear

Expected behavior

MIDI should open within onbs without issue

Additional context

Crash log:

___________________________________________
############################################################################################
ERROR in
action number 1
of Draw Event
for object obj_controller:

Push :: Execution Error - Variable Index [255] out of range [128] - -1.midi_ins(101477,255)
at gml_Script_open_midi
############################################################################################
gml_Script_open_midi (line -1)
gml_Script_draw_window_greeting
gml_Script_draw_windows
gml_Script_control_draw
gml_Object_obj_controller_Draw_0 (line -1)

Version: 3.9.1 Win10

PaxiTheAlchemist avatar Oct 26 '21 21:10 PaxiTheAlchemist

this is because this midi uses a custom/unknown instrument, try another midi

ghost avatar Oct 28 '21 06:10 ghost

Ah, I see. in that case, what if there was a way to modify an unknown "track" whereas the user could choose an instrument to replace the unknown instrument prior to generation. Obviously, I do not expect this to be implemented right away, but this would be a good solution to put into the application. Examples of this sort of thing being used are on various other midi parsing applications and platforms

PaxiTheAlchemist avatar Oct 28 '21 08:10 PaxiTheAlchemist

quand j'importe mon fichier midi et qu'il le converti il me le converti qu'avec un seul instrument (la harpe) sa me soule je vois plein de gent le faire est ils on 10000 instrument ses soulant .

labananerandom avatar Feb 07 '22 13:02 labananerandom

When I import my midi file and it converts it, it only converts it with one instrument (the harp).

labananerandom avatar Feb 07 '22 13:02 labananerandom