Release TiMidity++

Discussion in 'Software Releases' started by gruso, Mar 19, 2011.

  1. gruso

    gruso thunderbox

    Joined:
    Feb 28, 2008
    Messages:
    7,461
    Location:
    Sydney, Australia
    Note: This is not to be confused with sebt3's MIDI Installer, which installs scripts + sounds for game music. sebt3's installer is actually a pre-requisite to mine, as it provides sounds & Timidity config. So install it first.


    This release contains a complete build of TiMidity++, however it is focused on the sole task of running as an ALSA daemon. This makes it appear as a MIDI device to a sequencer such as Seq24, turning your MIDIs into musics.


    For now, it needs to be run once per session. It may prompt for your password to load snd-seq, but apart from that will appear to do nothing. After running it, you can launch Seq24 and start playing. (To confirm it's loaded, right click a Seq24 sequence and you should see TiMidity ports under Midi Bus). It currently stutters heavily under not so heavy load... more work to be done.


    Thanks to sebt3 with cameos from Farox and mash-system.


    [update] Now contains GUI. It's late and I'll fix this post up later, in the meantime please see here for full info and download:


    http://www.gp32x.de/board/index.php?/topic/59041-timidity-2-13-2-port


    Seeking expert advice on audio/midi buffering to alleviate the stutter.
     
    Last edited by a moderator: Jan 2, 2016
    Tags:
  2. peelie

    peelie Member

    Joined:
    Apr 6, 2007
    Messages:
    887
    nice one gruso


    PND installs okay and i can see ports in seq24 but still no sound?
     
  3. gruso

    gruso thunderbox

    Joined:
    Feb 28, 2008
    Messages:
    7,461
    Location:
    Sydney, Australia
    This is with your own sequence, or some other pre-made midi file?


    Can you post the contents of /tmp/timidity..out?
     
  4. peelie

    peelie Member

    Joined:
    Apr 6, 2007
    Messages:
    887
    hi was trying to use my own sequence. also when firing up daemon got a strange message about malicious program and mouse? not been able to repeat it.


    -------


    rm: cannot remove `/tmp/cpuspeed': No such file or directory


    not mounted on loop yet, doing so


    LoopMountedon:


    /dev/loop3


    Filetype is Squashfs


    sudo mount -t squashfs /dev/loop3


    mounting union!


    Filesystem is vfat


    [------------------------------]{ App start }[---------------------------------]


    WARNING Guessing APPDATADIR=


    (gksudo:5396): Gdk-CRITICAL **: gdk_draw_pixbuf: assertion `GDK_IS_DRAWABLE (drawable)' failed


    Requested buffer size 32768, fragment size 8192


    ALSA pcm 'default' set buffer size 32768, period size 8192 bytes


    TiMidity starting in ALSA server mode


    Opening sequencer port: 128:0 128:1 128:2 128:3


    Requested buffer size 32768, fragment size 8192


    ALSA pcm 'default' set buffer size 32768, period size 8192 bytes
     
  5. gruso

    gruso thunderbox

    Joined:
    Feb 28, 2008
    Messages:
    7,461
    Location:
    Sydney, Australia
    Mildly out of my depth here. I'm about to try it all on a fresh firmware install. It occurs to me that you are running HF4, wonder if that's a factor?
     
  6. ibisum

    ibisum Well-Known Member

    Joined:
    May 6, 2009
    Messages:
    1,135
    We need aconnectgui to make these ALSA midi connections a lot more sensible ..
     
  7. peelie

    peelie Member

    Joined:
    Apr 6, 2007
    Messages:
    887

    hi tried with my hf5 card but timidity does not want to start -


    sudo /usr/pandora/scripts/pnd_run.sh -m -p /media/PANDORA1/pandora/menu/apps//timidity-alsa-daemon.pnd -e scripts/timidity.sh -b timidity


    not mounted on loop yet, doing so


    LoopMountedon:


    /dev/loop3


    Filetype is Squashfs


    Mounting PND (mount -t squashfs) :


    /dev/loop3 on /mnt/pnd/timidity type squashfs (ro)


    Filesystem is vfat


    Mounting the Union FS using /media/PANDORA1/pandora/appdata/timidity as Write directory:


    mount -t aufs -o exec,noplink,dirs=/media/PANDORA1/pandora/appdata/timidity=rw+nolwh:/mnt/pnd timidity=rr none /mnt/utmp/timidity


    none on /mnt/utmp/timidity type aufs (rw,si=6722a637,noplink)


    none on /mnt/utmp/timidity type aufs (rw,si=6722a637,noplink)


    [------------------------------]{ App start }[---------------------------------]


    WARNING Guessing APPDATADIR=cp: cannot stat `/etc/timidity/timidity.cfg': No such file or directory


    /etc/timidity/eawpats-PANDORA1.cfg: No such file or directory


    timidity: Can't read any configuration file.


    Please check /mnt/utmp/timidity/share/timidity/timidity.cfg


    [-------------------------------]{ App end }[----------------------------------]


    cleanup done
     
  8. gruso

    gruso thunderbox

    Joined:
    Feb 28, 2008
    Messages:
    7,461
    Location:
    Sydney, Australia
    That sounds like you haven't installed sebt3's MIDI package yet. (It's a pre-requisite, but I only edited that into the first post later on - sorry 'bout that.) I just fell into the exact same trap on a fresh HF5 card a minute ago. :)
     
    Last edited by a moderator: Mar 19, 2011
  9. peelie

    peelie Member

    Joined:
    Apr 6, 2007
    Messages:
    887
    ah right thought it may be that! but still no sound!? same message out in in tmp as in HF4.
     
    Last edited by a moderator: Mar 19, 2011
  10. gruso

    gruso thunderbox

    Joined:
    Feb 28, 2008
    Messages:
    7,461
    Location:
    Sydney, Australia
    This is extremely bizarre. With OS version ruled out, maybe something SD related? Here's my timidity.out for comparison:

    sudo /usr/pandora/scripts/pnd_run.sh -m -p /media/GP2X8GB/pandora/desktop//timidity.pnd -e scripts/timidity.sh -b timidity


    not mounted on loop yet, doing so


    LoopMountedon:


    /dev/loop0


    Filetype is Squashfs


    Mounting PND (mount -t squashfs) :


    /dev/loop0 on /mnt/pnd/timidity type squashfs (ro)


    Filesystem is vfat


    Mounting the Union FS using /media/GP2X8GB/pandora/appdata/timidity as Write directory:


    mount -t aufs -o exec,noplink,dirs=/media/GP2X8GB/pandora/appdata/timidity=rw+nolwh:/mnt/pnd/timidity=rr none /mnt/utmp/timidity


    none on /mnt/utmp/timidity type aufs (rw,si=6661c177,noplink)


    none on /mnt/utmp/timidity type aufs (rw,si=6661c177,noplink)


    [------------------------------]{ App start }[---------------------------------]


    WARNING Guessing APPDATADIR=Requested buffer size 32768, fragment size 8192


    ALSA pcm 'default' set buffer size 32768, period size 8192 bytes


    TiMidity starting in ALSA server mode


    Opening sequencer port: 128:0 128:1 128:2 128:3


    Requested buffer size 32768, fragment size 8192


    ALSA pcm 'default' set buffer size 32768, period size 8192 bytes
     
    Last edited by a moderator: Mar 20, 2011
  11. ibisum

    ibisum Well-Known Member

    Joined:
    May 6, 2009
    Messages:
    1,135
    You need aconnectgui to connect MIDI from seq24 to timidity ..
     
  12. gruso

    gruso thunderbox

    Joined:
    Feb 28, 2008
    Messages:
    7,461
    Location:
    Sydney, Australia
    No, working fine here?
     
  13. peelie

    peelie Member

    Joined:
    Apr 6, 2007
    Messages:
    887
    my bad did not realise you had to highlight sequence to get sound!


    cheers gruso for this port :)
     
  14. gruso

    gruso thunderbox

    Joined:
    Feb 28, 2008
    Messages:
    7,461
    Location:
    Sydney, Australia
    Oh, fantastic. :)


    You'll hit performance issues once you start sending lots of simultaneous notes. I've heard similar stutters playing MIDI files from the command line, and the same thing running Cubase in Hatari. I think it's OS/ALSA related.
     
  15. Silent-Hunter

    Silent-Hunter Hardcore Member

    Joined:
    May 29, 2010
    Messages:
    2,986
    Could you port the ncurses player interface too? And maybe mikmod as well?
     
  16. gruso

    gruso thunderbox

    Joined:
    Feb 28, 2008
    Messages:
    7,461
    Location:
    Sydney, Australia
    On the list. :)
     
  17. Silent-Hunter

    Silent-Hunter Hardcore Member

    Joined:
    May 29, 2010
    Messages:
    2,986
    YAY! I also made a request in the general talk development section.
     
  18. gruso

    gruso thunderbox

    Joined:
    Feb 28, 2008
    Messages:
    7,461
    Location:
    Sydney, Australia
    New release, now with GUI (not the one you asked for Silent-Hunter, but a start.)


    I'm short of time right now, but in the OP there's a link to the full thread & download on GP32X.
     
  19. relapse808

    relapse808 Member

    Joined:
    Sep 30, 2008
    Messages:
    127
    Location:
    Phoenix Arizona
    I was hoping this would get Timidity working with this but I still get "cannot open MIDI driver". I know this package wasn't designed for this but it was worth a shot
     
  20. gruso

    gruso thunderbox

    Joined:
    Feb 28, 2008
    Messages:
    7,461
    Location:
    Sydney, Australia
    Do you mean that sebt3's release doesn't work for you? Post all details you can.
     

Share This Page

Loading...