truj / midica

A Music programming language. Translates source code into MIDI. Includes a player. Supports MIDI-Karaoke. Includes a MIDI analyzer.
https://www.midica.org/
Mozilla Public License 2.0
111 stars 13 forks source link

Unsupported instrument #71

Closed severak closed 3 years ago

severak commented 3 years ago

I am not able to play anything or to save is as audio.

Error message is:

Unsupported instrument: Piano 1 bank #0 preset#

Also when this message is thrown, it looks like it's improssible to close player window.

truj commented 3 years ago

Thank you for reporting this. However I need some more information to reproduce the problem.

severak commented 3 years ago

Did you load any soundfont? If yes, which one?

it don't work both with and without soundfont. When I used soundfont, I used tiny_Carillon.sf2 and GeneralUser GS MuseScore v1.442.sf2 (this is from MuseScore website)

Can you provide the file you imported?

https://github.com/truj/midica/blob/master/examples/old_macdonald_had_a_farm.midica

(and some Alda files I have on disc)

Which file extension and Audio Export Settings did you use for the export?

wav

Which OS and Java version do you use?

Windows 7

java version "1.8.0_261" Java(TM) SE Runtime Environment (build 1.8.0_261-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)

truj commented 3 years ago

On Windows I can reproduce the problem. (I use Linux usually.) It occurs in the player as well. Seems to be a gervill-related problem. I'll check that.

truj commented 3 years ago

On windows, gervill uses a default DLS soundbank instead of a default SF2 soundbank. DLS is not yet supported in Midica. Probably it will take me a few days to fix this.

Until then, the following workarounds are possible:

truj commented 3 years ago

I think I fixed it. At least it's now running for me in the following combinations:

Can you please try out if your combination (Windows 7 / Java 1.8) works as well with release 1.4.1

severak commented 3 years ago

Now everything works. Thanks for fixing.