You are not logged in.

#1 2005-11-08 11:52:04

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

midi on ac97?

does anyone know how to get midi working on an onboard realtek ac97? I've managed to get finale 2006 working under crossover, and it would be nice to be actually be able to listen to the scores.

I suspect this has to do with soundfonts of some sort, but I've no clue where to get them and how to install them :?

Offline

#2 2005-11-08 14:16:19

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: midi on ac97?

hmm.. this is surprising. The midi from within wine, while running finale, works after setting the sound driver to alsa (instead of oss). That is, i get sound when playing the score. BUT, I've never managed to have midi files playing in linux, or have rosegarden play scores. I always thought this was due to missing soundfonts (that I've never been able to find anywhere). How come midi output works under wine? I'm just confused now...

Offline

#3 2005-11-08 15:01:12

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: midi on ac97?

reboot and do ls /dev | grep -i sequencer

bet you get no result....

start wine

repeat above bet you get a result...

the sequencer device is needed for midi playback but for some reason does not get created by default, and if you try and play a midi file without it will bomb, but should work if /dev/sequencer is set up correctly, that is as far as I've got tho unsure how to correctly set it up...
wine is making the correct calls from the M$ software and patching the device.. cant find much info tho most googles show up stuff about soundfonts which seams irrelevant as wine dont install anythin extra..

Offline

#4 2005-11-08 20:05:48

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: midi on ac97?

Try: modprobe snd-seq-oss

Here, it creates the /dev/sound/sequencer and dev/sound/sequencer2 devices. These are accessed with symlinks: /dev/sequencer and  /dev/sequencer2. Therefore you might need to restart udev after modprobing. IIRC, I can play midi.

There are also other modules that you might try if the above doesn't work:
snd-seq-device.ko
snd-seq-instr.ko
snd-seq-midi-emul.ko
snd-seq-midi-event.ko
snd-seq-midi.ko
snd-seq-virmidi.ko
snd-seq.ko


EDIT: Midi doesn't work :? . I get a

No instrument mapped to tone bank 0, program 0 - this instrument will not be heard
No instrument mapped to tone bank 0, program 4 - this instrument will not be heard
No instrument mapped to tone bank 0, program 32 - this instrument will not be heard
No instrument mapped to tone bank 0, program 50 - this instrument will not be heard
No instrument mapped to tone bank 0, program 51 - this instrument will not be heard
No instrument mapped to tone bank 0, program 71 - this instrument will not be heard
No instrument mapped to tone bank 0, program 73 - this instrument will not be heard
No instrument mapped to drum set 0, program 36 - this instrument will not be heard
No instrument mapped to drum set 0, program 40 - this instrument will not be heard
No instrument mapped to drum set 0, program 42 - this instrument will not be heard
No instrument mapped to drum set 0, program 43 - this instrument will not be heard
No instrument mapped to drum set 0, program 49 - this instrument will not be heard
No instrument mapped to drum set 0, program 51 - this instrument will not be heard

message.

Offline

#5 2005-11-08 22:17:56

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: midi on ac97?

Hmm... that's all very interesting...

I haven't rebooted yet; so I don't know how thing look before wine starts. But right now I do have /dev/sequencer and /dev/sequencer2, although I can still not play any midi files...

I'm really curious now as of what wine actually does...

Offline

#6 2005-11-08 22:19:40

sh__
Member
Registered: 2005-07-19
Posts: 271

Re: midi on ac97?

nightfrost: Some versions of windows (at least xp pro) come with a software synthesizer, that might be the reason you can play midi files with wine.

On linux, you would normally need a soundfont and a software synthesizer like fluidsynth or timidity. You might find some useable sounfonts at http://www.sf2midi.com or http://www.hammersound.net.

Offline

#7 2005-11-08 22:21:25

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: midi on ac97?

thanks alot smile I'll check those links out

Offline

#8 2005-11-08 23:59:09

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: midi on ac97?

sh__ wrote:

On linux, you would normally need a soundfont and a software synthesizer like fluidsynth or timidity. You might find some useable sounfonts at http://www.sf2midi.com or http://www.hammersound.net.

Thanks, I can play midi now smile Still have to get more soundfonts to get all the instruments.

Offline

#9 2005-11-09 04:50:08

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: midi on ac97?

You can get this soundfont: ftp://sf2midi.com/sgm128/SGM180v1.5.zip
It's quite big (79MB) but has all required instrument to play the midi files on my system. big_smile

$ unzip SGM180v1.5.zip
$ wine SGM-180 v1.5.sfArk.exe

The file you want is 'SGM-180 v1.5.sf2'. Install it somewhere (I've removed the space from the name) and add:

soundfont /path/to/SGM-180v1.5.sf2

to /etc/timidity++/timidity.cfg

HTH.

Offline

#10 2005-11-09 14:01:01

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: midi on ac97?

That's great! I couldn't really find a good soundfont myself. I'll try this out. Maybe one should write a PKGBUILD for the soundfont and put it in the AUR...

Offline

#11 2005-11-09 17:01:34

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: midi on ac97?

nightfrost wrote:

That's great! I couldn't really find a good soundfont myself. I'll try this out.

Yeah, I tried downloading some individual soundfonts for percussions, bass, piano, strings, etc but there was always something missing. Plus some of them sounded "strange".

nightfrost wrote:

Maybe one should write a PKGBUILD for the soundfont and put it in the AUR...

Maybe I'll do one tonight or sometime this week.

Offline

#12 2005-11-09 22:06:37

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: midi on ac97?

I can't get it working. Still no sound. I have to check more into it, before I post the problems; so far there's just no sound and I don't know where to start the debugging.

Also /dev/sequencer seems to exist after a fresh boot.

Snowman; what sound card do you use?

Offline

#13 2005-11-09 23:56:08

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: midi on ac97?

On-board Intel sound card:
00:1f.5 Multimedia audio controller: Intel Corp.|ICH4 845G/GL Chipset AC'97 Audio Controller (snd-intel8x0)

I use timidity++ as midi player.

Offline

#14 2005-11-10 08:23:06

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: midi on ac97?

Hmmm... I have the exact same device.

I'm getting timidity to play now (after a reboot); but I'm still not getting a sound out of rosegarden. Do you know how to load the soundfont without using timidity.

sfxload [soundfont] gives me this:

No AWE synth device is found

Offline

#15 2005-11-10 09:13:43

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: midi on ac97?

I've never used rosegarden. Check if it has a config file or an options menu of some kind. I might try rosegarden myself as the interface looks nice.

Here's a quick PKGBUILD. I have no interest uploading it in AUR (it's somewhat too trivial). However, feel free to do so.

pkgname=sgm180
pkgver=1.5
pkgrel=1
pkgdesc="A balanced,good quality GM soundfonts"
url="http://www.geocities.jp/shansoundfont/"
license=""
depends=()
makedepends=('wine')
source=(ftp://sf2midi.com/sgm128/SGM180v1.5.zip)
md5sums=('0345903bf8433f913f6a31c787b88e75')

build() {
  cd $startdir/src
  yes | wine SGM-180 v1.5.sfArk.exe
  install -D -m644 SGM-180 v1.5.sf2 $startdir/pkg/usr/share/soundfonts/SGM-180v1.5.sf2
}

Offline

#16 2005-11-10 11:38:40

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: midi on ac97?

Thanks for the PKGBUILD. I might upload it to the AUR, cause if it's there at least people will find a proper soundfont without having to go through the hassle of looking through various sites and so on...

anyway, rosegarden does seem pretty nice indeed; I haven't really started to use it yet. It has an option for loading soundfonts, but it utilizes an external sound font loader; in my case sfxload. But like you can see in my previous post sfxload doesn't load the soundfont. Hence, my question if there's any other way to load a soundfont...

Offline

#17 2005-11-10 12:07:46

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: midi on ac97?

Alright! Got it working. The thing is sfxload & asfxload only work with awe and emu10k. What I had to use to get midi working with rosegarden, was qsynth. It loads the soundfont and sends the communicates with jack. So now it all works smile Thanks a lot for the help.

So; do you think I should upload the PKGBUILD? I don't mind maintaining it...

Offline

#18 2005-11-10 19:18:28

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: midi on ac97?

Glad you got it to work. I did check out rosegarden but couldn't make it work. I didn't tried it with qsynth though. Anyway, timidity works quite well and suites my needs.

About the PKGBUILD, I don't see any problem. However I don't think it will go in any official repo. BTW, it creates a 156MB package!

Offline

#19 2005-11-10 20:16:04

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: midi on ac97?

Yeah, one can't help to think whether there's more economic way of compiling a soundfont..

also, it feels really awkward  that it has to makedepend on wine; I'm gonna see if there's a better way of doing it. Perhaps, it might be possible to host an extracted version of the package...

Offline

#20 2005-11-10 21:16:03

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: midi on ac97?

nightfrost wrote:

Yeah, one can't help to think whether there's more economic way of compiling a soundfont..

I don't understand what you mean by economic way. Technically, we are not compiling the soundfont. We just decompress it. tongue

nightfrost wrote:

also, it feels really awkward  that it has to makedepend on wine; I'm gonna see if there's a better way of doing it. Perhaps, it might be possible to host an extracted version of the package...

The wine dependency is needed because the soundfont is compressed in an auto-extracting sfArk archive.  Hosting the extracted soundfont is a bad idea, IMHO. Uncompressed, it is 176MB big. I think most people (like myself) would prefer downloading the 80 MB SGM180v1.5.zip file plus the 12MB for wine.  Even the Arch package is big ( 156MB). Bandwith-wise, the PKGBUILD using the SGM180v1.5.zip file is the best solution.

Offline

#21 2005-11-10 21:36:06

sh__
Member
Registered: 2005-07-19
Posts: 271

Re: midi on ac97?

I didn't try these soundfonts, but they are supposed to be just gzipped sf2 files:

http://www.personalcopy.com/linuxfiles.htm

Offline

#22 2005-11-10 23:06:28

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: midi on ac97?

Snowman wrote:

I don't understand what you mean by economic way. Technically, we are not compiling the soundfont. We just decompress it. tongue

Yeah; I actually meant earlier in the chain; that the sf2-files could be created differently (I have no idea how they work, but I guess they're raw sound. Would mp3-soundfonts or, better yet, ogg-soundfonts be possible?). With economic I just meant smaller, i.e. less space-consuming smile

Snowman wrote:

The wine dependency is needed because the soundfont is compressed in an auto-extracting sfArk archive.  Hosting the extracted soundfont is a bad idea, IMHO. Uncompressed, it is 176MB big. I think most people (like myself) would prefer downloading the 80 MB SGM180v1.5.zip file plus the 12MB for wine.  Even the Arch package is big ( 156MB). Bandwith-wise, the PKGBUILD using the SGM180v1.5.zip file is the best solution.

I was just thinking I could decompress the file and recompress with tar + bz2, and put on a server for public use, the PKGBUILD could use that file, and there would be no need for wine smile I'm just concerned with licensing issues and whatnot.

sh__ wrote:

I didn't try these soundfonts, but they are supposed to be just gzipped sf2 files:

http://www.personalcopy.com/linuxfiles.htm

Thanks. I'll check these out smile

Offline

#23 2005-11-11 00:03:39

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: midi on ac97?

nightfrost wrote:

Yeah; I actually meant earlier in the chain; that the sf2-files could be created differently (I have no idea how they work, but I guess they're raw sound. Would mp3-soundfonts or, better yet, ogg-soundfonts be possible?).

I have no clue about that.

nightfrost wrote:

With economic I just meant smaller, i.e. less space-consuming smile  I was just thinking I could decompress the file and recompress with tar + bz2, and put on a server for public use, the PKGBUILD could use that file, and there would be no need for wine smile I'm just concerned with licensing issues and whatnot.

I see. The other way to do it would be to forget the SGM180v1.5.zip soundfont.  Someone could go to the links sh__ posted in this thread and manually pick a nice soundfonts of each class: drums/percussions, guitar, bass, piano, organ, wind, strings, etc and make a PKGBUILD installing all these. You might gain on space as these individual soundfont files are more or less 1MB big.  It is more tedious but there could be some space gain.  You could make a basic PKGBUILD with ~10-20 soundfonts and add soundfonts by user request.

As for licencing issues for SGM180v1.5.zip, the website and the readme file don't mention anything about licencing. I *think* a PKGBUILD would be OK as you don't redistribute the soundfont. Each user download the soundfont and install it on their system.

Offline

#24 2005-11-11 12:10:00

sh__
Member
Registered: 2005-07-19
Posts: 271

Re: midi on ac97?

There is a reasonably sized soundfont that has a fairly large set of instruments and doesn't need wine for unpacking. The unpacked size is about 28Mb, but it still sounds nice (although I have no hifi ears  wink ). Here is a quick pkgbuild:

pkgname=unison
pkgver=1.00
pkgrel=1 
pkgdesc="A lean and clean GM/GS soundbank" 
url="http://www.personalcopy.com" 
license="" 
depends=() 
source=(ftp://ftp.personalcopy.net/pub/Unison.sf2.gz)

build() { 
  cd $startdir/src 
  install -D -m644 Unison.sf2 $startdir/pkg/usr/share/soundfonts/Unison.sf2
}

Offline

#25 2005-11-12 12:50:37

nightfrost
Member
From: Sweden
Registered: 2005-04-16
Posts: 647

Re: midi on ac97?

I'll upload this package to the AUR. But how about adding groups=('soundfonts'), and change pkgname to soundfont-unison? This way, it will make things easier if we decide to add more soundfont-PKGBUILDs.

Like this:

pkgname=soundfont-unison
pkgver=1.00
pkgrel=1
pkgdesc="A lean and clean GM/GS soundbank"
url="http://www.personalcopy.com"
license=""
depends=()
groups=('soundfonts')
source=(ftp://ftp.personalcopy.net/pub/Unison.sf2.gz)

build() {
  cd $startdir/src
  install -D -m644 Unison.sf2 $startdir/pkg/usr/share/soundfonts/Unison.sf2
} 

Offline

Board footer

Powered by FluxBB