You are not logged in.

#1 2015-12-05 16:04:53

Ambyjkl
Member
Registered: 2015-12-05
Posts: 33

[SOLVED] Wine: Trouble with MIDI

Hi, this is my first post here smile
I am having some issues with setting up midi in my wine installation. My wine version is 1.8-rc2 (the latest version in the repositories) as of 5 December 2015. I am using fluidsynth to play midi and I have tried using this guide:

http://wiki.winehq.org/MIDI

Fluidsynth works flawlessly outside of wine but doesn't seem to work in wine. I have also tried timidity++ but that failed to work with wine as well. When I do this:

aconnect -o

I get this:

client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
client 128: 'FLUID Synth (290)' [type=user]
    0 'Synth input port (290:0)'

So according to the guide I set the CurrentInstrument registry entry to "#1". But nothing happened. All other kinds of sound work though. Btw I am using the alsa driver.
Please help

Last edited by Ambyjkl (2015-12-11 18:44:55)

Offline

#2 2015-12-10 18:22:55

schmidtbag
Member
From: NH, USA
Registered: 2011-02-08
Posts: 347

Re: [SOLVED] Wine: Trouble with MIDI

A few things:
1.  Why are you running fluidsynth in wine?  There's a linux-native version of the program
2.  According to that wine link you supplied, it seems there should be no other audio source playing.  Can you confirm this?
3.  Are you running pulseaudio?  Running it could help, but so could disabling it.
4.  Have you checked this out:
https://wiki.archlinux.org/index.php/FluidSynth

Offline

#3 2015-12-11 09:27:30

Ambyjkl
Member
Registered: 2015-12-05
Posts: 33

Re: [SOLVED] Wine: Trouble with MIDI

schmidtbag wrote:

A few things:
1.  Why are you running fluidsynth in wine?  There's a linux-native version of the program
2.  According to that wine link you supplied, it seems there should be no other audio source playing.  Can you confirm this?
3.  Are you running pulseaudio?  Running it could help, but so could disabling it.
4.  Have you checked this out:
https://wiki.archlinux.org/index.php/FluidSynth

Thanks for replying smile
1. I am not running fluidsynth "in" wine. Wine's midi synthesizer uses the midi synthesizer present natively in arch like fluidsynth and timidity (from what I understood).
2. There is no other audio source playing in the background for sure. Either it is this midi player in wine or aplaymidi outside of wine but not both simultaneously.
3. I hate pulseaudio since it troubles me some way or the other and I have completely uninstalled it for good. I am using alsa.
4. Yes, I used that wiki page to setup fluidsynth as an alsa daemon and it runs perfectly. I am using the FluidR3_GM2-2.sf2 soundfont that comes with the soundfont-fluid package.

PS: I am checking out your website. Seems cool.

Last edited by Ambyjkl (2015-12-11 09:34:16)

Offline

#4 2015-12-11 09:37:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: [SOLVED] Wine: Trouble with MIDI

I don't think you need to set CurrentInstrument to #1 in this case (fluidsynth is device #0 which is the default already anyway), so this might be your problem. Also it might be beneficial to try with the program they mention in the wiki first, it might be that the player you try to use uses the DirectMusic API which isn't well supported according to that article

Online

#5 2015-12-11 18:43:30

Ambyjkl
Member
Registered: 2015-12-05
Posts: 33

Re: [SOLVED] Wine: Trouble with MIDI

V1del wrote:

I don't think you need to set CurrentInstrument to #1 in this case (fluidsynth is device #0 which is the default already anyway), so this might be your problem. Also it might be beneficial to try with the program they mention in the wiki first, it might be that the player you try to use uses the DirectMusic API which isn't well supported according to that article

Deleting the registry key did the trick. Thanks a lot! Marking as solved.

Offline

#6 2015-12-12 09:47:35

Ambyjkl
Member
Registered: 2015-12-05
Posts: 33

Re: [SOLVED] Wine: Trouble with MIDI

Well, actually, there is one more thing I want to clear. I am trying to get music working in 3D Pinball Space Cadet (that awesome game from Windows XP). The music is a midi, but even though midi is now working in Wine, it isn't working in that game. This is quite weird. Any suggestions?

Offline

#7 2015-12-15 21:02:22

ColdPie
Member
Registered: 2007-09-18
Posts: 47

Re: [SOLVED] Wine: Trouble with MIDI

Ambyjkl wrote:

Well, actually, there is one more thing I want to clear. I am trying to get music working in 3D Pinball Space Cadet (that awesome game from Windows XP). The music is a midi, but even though midi is now working in Wine, it isn't working in that game. This is quite weird. Any suggestions?

If I remember right, the game has an INI file or something in its directory, which lets you choose between MIDI and WAV. Try reading through it and tweaking some settings, or googling around for them and see if you can figure it out.

Offline

Board footer

Powered by FluxBB