maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   MIDI on n900 through default player! (https://talk.maemo.org/showthread.php?t=50301)

ivnvir 2010-04-17 17:47

MIDI on n900 through default player!
 
After searching and waiting for timidity and reading the tip from the user Matan, i've got MIDI working :D

Here it goes:

Ctrl + Shift + X (open terminal)

1) sudo gainroot
2) apt-get install wildmidi
3) apt-get install freepats (18mb or so with instruments)
4) edit "/usr/share/applications/defaults.list" with your favorite editor and put "audio/midi" and "audio/mid" on the "Media Player MIME Types" list (just copy any line, change the mime)

Done :D

Now just open the MIDI files with file manager.

bennypr0fane 2010-05-04 23:15

Re: MIDI on n900 through default player!
 
Hello,
freepats isn't available ("but is referred to by another application"). What does this mean? Is it maybe in extras devel (cause i have that disabled)?

ivnvir 2010-05-05 23:36

Re: MIDI on n900 through default player!
 
Quote:

Originally Posted by bennypr0fane (Post 643581)
Hello,
freepats isn't available ("but is referred to by another application"). What does this mean? Is it maybe in extras devel (cause i have that disabled)?

I don't know exactly where is it, anyway I was able to install it only by "apt-get", and yeah, I have all maemo repositories installed.

F2thaK 2010-05-05 23:50

Re: MIDI on n900 through default player!
 
haha rockin the MIDI tunes

jtsavola 2010-05-11 18:14

Re: MIDI on n900 through default player!
 
Quote:

Originally Posted by ivnvir (Post 615025)
After searching and waiting for timidity and reading the tip from the user Matan, i've got MIDI working :D

4) edit "/usr/share/applications/defaults.list" with your favorite editor and put "audio/midi" and "audio/mid" on the "Media Player MIME Types" list (just copy any line, change the mime)

Hello,

Would like to have MIDIs playing too but Maemo or Unix is unknown are for me. Can I somehow access default.list from PC through laptop. There is no /usr... folders visible for windows explorer or N900 file manager...

So how can I edit defaults.list?

rambo 2010-05-11 19:39

Re: MIDI on n900 through default player!
 
Quote:

Originally Posted by jtsavola (Post 653946)
Would like to have MIDIs playing too but Maemo or Unix is unknown are for me. Can I somehow access default.list from PC through laptop. There is no /usr... folders visible for windows explorer or N900 file manager...

Through the PC you only have very limited view of the device (so you can't mess it up by editing the wrong files).

I would say become root and use vi but that would be dangerous if you don't know what you're doing.

Someone (tm) needs to make a simple metapackage that depends on the pats and wildmidi and on postinstall adds the correct lines to the defaults.list. This I can do.

I wonder how to make the tracker aware of MIDI files so they could be browsed directly from media player (like MOD-support does it)

TNiga 2010-05-11 19:56

Re: MIDI on n900 through default player!
 
Quote:

Originally Posted by jtsavola (Post 653946)
Hello,

Would like to have MIDIs playing too but Maemo or Unix is unknown are for me. Can I somehow access default.list from PC through laptop. There is no /usr... folders visible for windows explorer or N900 file manager...

So how can I edit defaults.list?

You can access the file with some sftp client (for example http://winscp.net/eng/index.php ) if you have ssh daemon (openSSH) installed and running on your N900.

rambo 2010-05-11 20:51

Re: MIDI on n900 through default player!
 
Ok, made a trivial package: http://maemo.org/packages/view/midisupport/ once that hits the repo you can use it install the dependencies and "edit" the defaults.list file.

Now if someone would have time to figure out how to get tracker to index the MIDI files (hint: ask the mod-support maintainer) I would be happy to give this "project" to someone who actually would have time for it.

jtsavola 2010-05-12 15:24

Re: MIDI on n900 through default player!
 
Thanks Rambo,

I installed Midisupport package but still have massage "Audio codec not supported"...

rambo 2010-05-12 15:47

Re: MIDI on n900 through default player!
 
Quote:

Originally Posted by jtsavola (Post 655308)
Thanks Rambo,

I installed Midisupport package but still have massage "Audio codec not supported"...

Sorry, I must admit I didn't actually test playing any files just that the install/uninstall goes correctly. But the package should do exactly as per the instructions above, if they're missing something then I cannot help.

I guess we should ping Matan.

Patola 2010-05-12 18:03

Re: MIDI on n900 through default player!
 
Quote:

Originally Posted by bennypr0fane (Post 643581)
Hello,
freepats isn't available ("but is referred to by another application"). What does this mean? Is it maybe in extras devel (cause i have that disabled)?

Yes, it is in extras-devel:

Code:

[user@n900 user]% grep 'Package: freepats' /var/lib/apt/lists/*
grep: /var/lib/apt/lists/lock: Permission denied
/var/lib/apt/lists/repository.maemo.org_extras-devel_dists_fremantle_free_binary-armel_Packages:Package: freepats
[user@n900 user]%


Nipperoid 2010-05-12 18:23

Re: MIDI on n900 through default player!
 
worked perfectly, thanks

rambo 2010-05-15 20:06

Re: MIDI on n900 through default player!
 
Quote:

Originally Posted by rambo (Post 655328)
Sorry, I must admit I didn't actually test playing any files just that the install/uninstall goes correctly. But the package should do exactly as per the instructions above, if they're missing something then I cannot help.

"works for me", I did install wildmidi and freepats separately beforehand though, but that should not matter at all.

Maybe there is some dependency I happen to have installed but was not listed in the instructions since the poster did not know about it (and also happened to have it installed already). ?

Edit: typo fix

rambo 2010-05-15 20:15

Re: MIDI on n900 through default player!
 
Btw, renamed the package to "midi-support" for reasons explained in changelog.

mikec 2010-05-16 06:55

Re: MIDI on n900 through default player!
 
You can also run from the command line like so
$wildmidi Dancing_Queen.mid

works a treat , just need to build a python binding to wildmidi and we are away.:D

also
$wildmidi -h

for additional options

ivnvir 2010-05-18 11:25

Re: MIDI on n900 through default player!
 
I was playing some Deep Purple's midi and noticed that there's no "rock organ" patch!

Try it: http://www.thehighwaystar.com/rosas/midi/HW_STAR.MID

You can't hear the organ.

Anyone noticing similar problems with other instruments?

mr_jrt 2010-05-31 18:15

Re: MIDI on n900 through default player!
 
Quote:

Originally Posted by ivnvir (Post 663939)
I was playing some Deep Purple's midi and noticed that there's no "rock organ" patch!

Try it: http://www.thehighwaystar.com/rosas/midi/HW_STAR.MID

You can't hear the organ.

Anyone noticing similar problems with other instruments?

Yeah, I think it's missing the xylophone from: darklich.mid

ivnvir 2010-06-20 01:53

Re: MIDI on n900 through default player!
 
Guys I've got a working patch set, with all instruments:

download http://www.anime.net/~goemon/timidity/goemon.tgz

in x-terminal:

gzip -d goemon.tgz
tar -xvf goemon.tar
mv goemon/goemon.cfg /etc/wildmidi
mv goemon /opt/midi/

edit goemon.cfg and make the "dir" line point to /opt/midi/goemon

to make it default patch set, in /etc/wildmidi:

mv wildmidi.cfg wildmidi.cfg.bkp
mv goemon.cfg wildmidi.cfg

if you wanna try it without making it default:
wildmidi -c /etc/wildmidi/goemon.cfg MIDIFILE.MID

To hear the changes in media player you'll have to restart the n900!

That's it! Hope midi-support package creator put this also, and give me credits, as he haven't yet, even that I came with the first solution... :)

ivnvir 2010-06-20 02:03

Re: MIDI on n900 through default player!
 
Some instruments from this lib sustains strangelly, so maybe we should try something else... still, these are the steps to install any patch kit GUS/PAT cpmpatible...

Any finds please post here!

ivnvir 2010-06-21 19:53

Re: MIDI on n900 through default player!
 
got it working with eawpats, just used the timidity.cfg...

if anyone is interested I'll put download links and instructions... now we have all instruments and with some decent quality :)

sacal 2010-06-21 22:15

Re: MIDI on n900 through default player!
 
Quote:

Originally Posted by ivnvir (Post 724037)
got it working with eawpats, just used the timidity.cfg...

if anyone is interested I'll put download links and instructions... now we have all instruments and with some decent quality :)

Well that's great news.
I am interested so if you could post links and instructions .... :o
Thanks.

ivnvir 2010-06-22 16:58

Re: MIDI on n900 through default player!
 
Well,

the instructions are basically what I've posted before:

you'll have to download the pats files, save it anywhere you want, open the .cfg file and point the "dir" directive to the point you've saved it.

to use it with wildmidi:

wildmidi -c /path/to/cfgFile.cfg <midi>

to make it definitive (for playin' in media player, for example)
cd /etc/wildmidi/
mv wildmidi.cfg wildmidi.cfg.bkp
cp /path/to/cfgFile.cfg wildmidi.cfg

restart device.

As long as I remember, that's it.
If you have any problems, please let me know.

(note: it works with any pats pack, for exemplo: eawpats, goemon...)

sacal 2010-06-22 21:39

Re: MIDI on n900 through default player!
 
Thank you for your instructions.

As to the version of eawpats to use is this v12 ok

http://distfiles.gentoo.org/distfile...12_full.tar.gz

or did you use another one ?

ivnvir 2010-06-23 01:05

Re: MIDI on n900 through default player!
 
sacal, I've got it here:
http://youfailit.net/pub/idgames/sounds/eawpats.zip
30mb

vinsci 2010-06-26 00:00

Re: MIDI on n900 through default player!
 
Quote:

Originally Posted by ivnvir (Post 615025)
After searching and waiting for timidity and reading the tip from the user Matan, i've got MIDI working :D

Here it goes:

Ctrl + Shift + X (open terminal)

1) sudo gainroot
1.5) apt-get update
2) apt-get install wildmidi
3) apt-get install freepats (18mb or so with instruments)
4) edit "/usr/share/applications/defaults.list" with your favorite editor and put "audio/midi" and "audio/mid" on the "Media Player MIME Types" list (just copy any line, change the mime)

Done :D

Now just open the MIDI files with file manager.

You forgot a step: apt-get update ensures that all information on available packages and dependencies is up to date.

rambo 2010-07-04 10:39

Re: MIDI on n900 through default player!
 
Quote:

Originally Posted by ivnvir (Post 724037)
got it working with eawpats, just used the timidity.cfg...

if anyone is interested I'll put download links and instructions... now we have all instruments and with some decent quality :)

if you write good enough step-by-step instructions I can update the (trivially simple) package I made, make sure to specify all requirements (like for example extra decoders support if it's required).

david_galicia 2010-07-24 16:23

Re: MIDI on n900 through default player!
 
For those who still get the "unsupported codec" message after installing midi-support, try installing the extra decoders support package afterwards. It should then work.

I noticed the extra decoders package clears some kind of cache at the end of the install. This step may be the magic that gets media player to play midi.

I hope this bit helps.

RobbieThe1st 2010-08-08 09:00

Re: MIDI on n900 through default player!
 
I have to say, it works great!
The sound font isn't the best, but the fact that it works out of the box... I'm impressed!

(Trying to get MIDI on a Linux desktop on the other hand...)

anthonie 2010-09-10 11:54

Re: MIDI on n900 through default player!
 
Perhaps this is the wrong place, and if so, I´m happy to start a new thread.

I am looking for a way to play some online midi tutorials from a site called wholenote, found here

http://www.wholenote.com/

I select lesson followed by the classical section (but any choice should do), select one of the lessons after which the tab appears as well as the playbutton but no sound. If anyone has any pointers, that would be greatly appreciated.

regards,
anthonie


All times are GMT. The time now is 21:59.

vBulletin® Version 3.8.8