Help with DOS and Midilink

demonic
Posts: 2
Joined: Thu Mar 11, 2021 7:35 pm

Help with DOS and Midilink

Unread post by demonic »

Hello all,

I am not sure what I am missing here but when I go into UART Mode -> MIDI I have no option for TCP Remote. only local and UDP. I have looked into the file /media/fat/linux/MidiLink.INI but can see nothing odd also I am on the latest everything but still stumped. by the ways I really want to get one my old terminal Applications running as I have been running a virtual BBS for few years now on world-group and tcp connection to a majorbbs with 100s of door games to play and about 500 members. feel free to check it out if you want to relive some old BBS games or play some majormud.

Telnet demonsnet.com
website: http://www.demonsnet.com

Thanks,
demonic
Posts: 2
Joined: Thu Mar 11, 2021 7:35 pm

Re: Help with DOS and Midilink

Unread post by demonic »

Hello,

I got this working if anyone else has this issue by patching the image from this thread patch file linux_img_update.tar.gz. now I can see the remote menus and everything is working.

https://misterfpga.org/viewtopic.php?f= ... .gz#p18136

Cheers,
gibs
Posts: 66
Joined: Sun May 09, 2021 11:04 pm
Has thanked: 8 times
Been thanked: 14 times

Re: Help with DOS and Midilink

Unread post by gibs »

Hello,
I have a problem with midilink and munt : I get no sound.
I have launched the midilink script to update.
then I launch monkey island 2 with option r (for the roland).

UART MODE is set to:
Connection : midi
midilink: local
Type:Munt
Baud:31250

If I set Type to FSYNTH/SC55 & Reset UART then I get the music, but if I rollback to Munt, I still get no music. :o
bbond007
Top Contributor
Posts: 519
Joined: Tue May 26, 2020 5:06 am
Has thanked: 85 times
Been thanked: 198 times

Re: Help with DOS and Midilink

Unread post by bbond007 »

gibs wrote: Fri Jun 18, 2021 7:22 am
If I set Type to FSYNTH/SC55 & Reset UART then I get the music, but if I rollback to Munt, I still get no music. :o
Did you install the CM-32L or MT-32 ROMS?

there should be a soundfont_installer.sh you can run.

they should reside in /media/fat/linux/mt32-rom-data

to see why MUNT is failing you can start MidiLink manually via SSH:

Code: Select all

#uartmode 0
#midilink MUNT
gibs
Posts: 66
Joined: Sun May 09, 2021 11:04 pm
Has thanked: 8 times
Been thanked: 14 times

Re: Help with DOS and Midilink

Unread post by gibs »

bbond007 wrote: Fri Jun 18, 2021 2:29 pm
gibs wrote: Fri Jun 18, 2021 7:22 am
If I set Type to FSYNTH/SC55 & Reset UART then I get the music, but if I rollback to Munt, I still get no music. :o
Did you install the CM-32L or MT-32 ROMS?

there should be a soundfont_installer.sh you can run.

they should reside in /media/fat/linux/mt32-rom-data

to see why MUNT is failing you can start MidiLink manually via SSH:

Code: Select all

#uartmode 0
#midilink MUNT
Thanks for the answer.
The MT32 roms are downloaded by the script and in the directory.

Code: Select all

/root# uartmode 0
ttyS1: 0
/root# midilink MUNT
midilink: /lib/libasound.so.2: no version information available (required by midilink)
MiSTer MidiLink 3.3 BB7
CORE --> 'MENU'
Checking for --> '/media/fat/linux/MidiLink.INI' : TRUE
Settings:
  - MIDILINK_PRIORITY  --> -20
  - MUNT_OPTIONS       --> ''
  - MUNT_ROM_PATH      --> '/media/fat/linux/mt32-rom-data'
  - MP3_VOLUME         --> Default (don't set)
  - MUNT_VOLUME        --> Default (don't set)
  - MUNT_CPU_MASK      --> 1
  - FSYNTH_CPU_MASK    --> 1
  - FSYNTH_VOLUME      --> Default (don't set)
  - MODEM_VOLUME       --> Default (don't set)
  - MIXER_CONTROL      --> Master
  - FSYNTH_SOUNTFONT   --> '/media/fat/linux/soundfonts/SC-55.sf2'
  - UDP_SERVER         --> '192.168.10.130'
  - UDP_SERVER_PORT    --> 1999
  - UDP_BAUD           --> Default (don't change)
  - UDP_BAUD_ALT       --> Undefined
  - MIDI_BAUD          --> Default (don't change)
  - UDP_SERVER_FILTER  --> FALSE
  - UDP_FLOW           --> (0) Diasble Flow-control
  - TCP_BAUD           --> Default (don't change)
  - TCP_BAUD_ALT       --> Default (don't change)
  - MIDI_BAUD          --> Default (don't change)
  - UDP_SERVER_FILTER  --> FALSE
  - UDP_FLOW           --> (0) Diasble Flow-control
  - TCP_BAUD           --> Default (don't change)
  - TCP_BAUD_ALT       --> Default (don't change)
  - TCP_DTR            --> (1) Normal
  - TCP_QUIET          --> (0) Normal
  - TCP_FLOW           --> (3) RTS/CTS
  - TCP_ATH_DELAY      --> 900
  - TCP_SERVER_PORT    --> 23
  - TCP_TERM_ROWS      --> 23
  - TCP_TERM_UPLOAD    --> '/media/fat/UPLOAD'
  - TCP_TERM_DOWNLOAD  --> '/media/fat'
  - TCP_TERM_MP3       --> '/media/fat/MP3'
  - TCP_TERM_MIDI      --> '/media/fat/MIDI'
  - TCP_TERM_SYNTH     --> FluidSynth
  - TCP_TERM_TRANS     --> NONE
  - TCP_SOUND          --> TRUE
  - TCP_SOUND_DIAL     --> Software
  - TCP_SOUND_RING     --> Software
  - TCP_SOUND_CONNECT  --> Software
  - USB_SERIAL_BAUD    --> Default (don't change)
  - USB_SERIAL_MODULE  --> ''
  - DELAYSYSEX         --> TRUE
  - MT32_LCD_MSG       --> 'MiSTer MidiLink! BB7'

Setting task priority --> -20
Killing --> mpg123
Killing --> aplaymidi
Killing --> fluidsynth
Killing --> mt32d
Checking for --> '/dev/snd/pcmC0D0p' : TRUE
Starting --> mt32d
taskset: failed to execute mt32d: No such file or directory
Looking for MUNT port (1 / 2)
Looking for MUNT port (2 / 2)
ERROR: Unable to find Synth MIDI port after several attempts :(
/root#

in /root I have mt32d but not executable.
I did a : chmod 755 mt32d
then I launch : ./mt32d
then when I launch : midilink MUNT the message is a bit different :)

Code: Select all


Killing --> mpg123
Killing --> aplaymidi
Killing --> fluidsynth
Killing --> mt32d
Checking for --> '/dev/snd/pcmC0D0p' : TRUE
Starting --> mt32d
Looking for MUNT port (1 / 2)
Looking for MUNT port (2 / 2)
ERROR: Unable to find Synth MIDI port after several attempts :(

and the installation script:

Code: Select all

/media/fat/Scripts# ./midilink_updater.sh
Checking Internet...
Found MT-32 ROM directory
Found SoundFont directory
Found MP3 directory
Found MIDI directory
SC-55 Soundfont found
MT-32/CM-32 ROMS found
Remounting Linux Filesystem
Setting uartmode 0
ttyS1: 0
Removing old MidiLink
Removing old MLinkUTIL
Downloading MidiLink
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   129  100   129    0     0    440      0 --:--:-- --:--:-- --:--:--   496
100   140  100   140    0     0    306      0 --:--:-- --:--:-- --:--:--   306
100 61536  100 61536    0     0  81098      0 --:--:-- --:--:-- --:--:-- 81098
Downloading MLinkUTIL
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   130  100   130    0     0    530      0 --:--:-- --:--:-- --:--:--   553
100   141  100   141    0     0    333      0 --:--:-- --:--:-- --:--:-- 35250
100 18296  100 18296    0     0  26054      0 --:--:-- --:--:-- --:--:-- 26054
Setting permissions : /sbin/midilink, /sbin/mlinkutil
Rebooting in:
3
2
1

bbond007
Top Contributor
Posts: 519
Joined: Tue May 26, 2020 5:06 am
Has thanked: 85 times
Been thanked: 198 times

Re: Help with DOS and Midilink

Unread post by bbond007 »

bingo!
gibs wrote: Fri Jun 18, 2021 9:13 pm

Code: Select all

taskset: failed to execute mt32d: No such file or directory
I'm not sure what happened.

Make sure you have mt32d in /sbin

Now I remember, I had helped someone with this (or something similar) before and they had a mt32d.old in /sbin/ but no mt32d

You really don't need to run that updater script, as the SD image has the most current MidiLink, so if all else fails, just replace /media/fat/linux.img with the one from the SD installer program, but it seems like you understand the shell enough that you'll get it going without resorting to that...

The script is more for people helping me test new features.

Also, for Monkey Island, if you have tempo issues, you can use a MT-32 soundfont (with FSYNTH) as that game uses the default MT-32 soundbank.

Good luck!
gibs
Posts: 66
Joined: Sun May 09, 2021 11:04 pm
Has thanked: 8 times
Been thanked: 14 times

Re: Help with DOS and Midilink

Unread post by gibs »

bbond007 wrote: Sat Jun 19, 2021 12:58 am bingo!
gibs wrote: Fri Jun 18, 2021 9:13 pm

Code: Select all

taskset: failed to execute mt32d: No such file or directory
I'm not sure what happened.

Make sure you have mt32d in /sbin

Now I remember, I had helped someone with this (or something similar) before and they had a mt32d.old in /sbin/ but no mt32d
Good luck!
What hapenned is that I though I needed to use the update script to install midilink :)
so before trying to use it I have updated. I read that somewhere that at least I needed to run the update once. (maybe because it install mt32 roms? I don't know)

Code: Select all


/sbin# mv mt32d_old mt32d
/sbin# uartmode 0
ttyS1: 0
/sbin# midilink MUNT
midilink: /lib/libasound.so.2: no version information available (required by midilink)
MiSTer MidiLink 3.3 BB7
CORE --> 'MENU'
Checking for --> '/media/fat/linux/MidiLink.INI' : TRUE
Settings:
  - MIDILINK_PRIORITY  --> -20
  - MUNT_OPTIONS       --> ''
  - MUNT_ROM_PATH      --> '/media/fat/linux/mt32-rom-data'
  - MP3_VOLUME         --> Default (don't set)
  - MUNT_VOLUME        --> Default (don't set)
  - MUNT_CPU_MASK      --> 1
  - FSYNTH_CPU_MASK    --> 1
  - FSYNTH_VOLUME      --> Default (don't set)
  - MODEM_VOLUME       --> Default (don't set)
  - MIXER_CONTROL      --> Master
  - FSYNTH_SOUNTFONT   --> '/media/fat/linux/soundfonts/SC-55.sf2'
  - UDP_SERVER         --> ''
  - UDP_SERVER_PORT    --> 1999
  - UDP_BAUD           --> Default (don't change)
  - UDP_BAUD_ALT       --> Undefined
  - MIDI_BAUD          --> Default (don't change)
  - UDP_SERVER_FILTER  --> FALSE
  - UDP_FLOW           --> (0) Diasble Flow-control
  - TCP_BAUD           --> Default (don't change)
  - TCP_BAUD_ALT       --> Default (don't change)
  - MIDI_BAUD          --> Default (don't change)
  - UDP_SERVER_FILTER  --> FALSE
  - UDP_FLOW           --> (0) Diasble Flow-control
  - TCP_BAUD           --> Default (don't change)
  - TCP_BAUD_ALT       --> Default (don't change)
  - TCP_DTR            --> (1) Normal
  - TCP_QUIET          --> (0) Normal
  - TCP_FLOW           --> (3) RTS/CTS
  - TCP_ATH_DELAY      --> 900
  - TCP_SERVER_PORT    --> 23
  - TCP_TERM_ROWS      --> 23
  - TCP_TERM_UPLOAD    --> '/media/fat/UPLOAD'
  - TCP_TERM_DOWNLOAD  --> '/media/fat'
  - TCP_TERM_MP3       --> '/media/fat/MP3'
  - TCP_TERM_MIDI      --> '/media/fat/MIDI'
  - TCP_TERM_SYNTH     --> FluidSynth
  - TCP_TERM_TRANS     --> NONE
  - TCP_SOUND          --> TRUE
  - TCP_SOUND_DIAL     --> Software
  - TCP_SOUND_RING     --> Software
  - TCP_SOUND_CONNECT  --> Software
  - USB_SERIAL_BAUD    --> Default (don't change)
  - USB_SERIAL_MODULE  --> ''
  - DELAYSYSEX         --> TRUE
  - MT32_LCD_MSG       --> 'MiSTer MidiLink! BB7'

Setting task priority --> -20
Killing --> mpg123
Killing --> aplaymidi
Killing --> fluidsynth
Killing --> mt32d
Checking for --> '/dev/snd/pcmC0D0p' : TRUE
Starting --> mt32d
mt32d: /lib/libasound.so.2: no version information available (required by mt32d)
mt32d: /lib/libasound.so.2: no version information available (required by mt32d)
MT-32 emulator ALSA address is 128:0
Buffer resize: Requested 40 msec got 40 msec / 60 periods
Set thread priority to -20
Starting MT-32 core
Set thread priority to -20
MT-32 emulator ready
Setting /dev/ttyS1 to 31250 baud.
Setting DCD (/dev/ttyS1) --> TRUE
Opening ALSA address --> 128:0
MIDI debug messages enabled.
---------------------------------------------

[00000000] SEQU OUT [30] --> f0 41 10 16 12 20 00 00 4d 69 53 54 65 72 20 4d 69 64 69 4c 69 6e 6b 21 20 42 42 37 7f f7
Starting --> local MIDI loop :)
[00000000] SEQU OUT [01] --> 00
LCD: MiSTer MidiLink! BB7


:D
gibs
Posts: 66
Joined: Sun May 09, 2021 11:04 pm
Has thanked: 8 times
Been thanked: 14 times

Re: Help with DOS and Midilink

Unread post by gibs »

Well I have experimented with MUNT, now I want to use FSYNTH, but I also get an error message :

Code: Select all

/root# uartmode 0
ttyS1: 0
/root# midilink FSYNTH
midilink: /lib/libasound.so.2: no version information available (required by midilink)
MiSTer MidiLink 3.3 BB7
CORE --> 'MENU'
Checking for --> '/media/fat/linux/MidiLink.INI' : TRUE
Settings:
  - MIDILINK_PRIORITY  --> -20
  - MUNT_OPTIONS       --> ''
  - MUNT_ROM_PATH      --> '/media/fat/linux/mt32-rom-data'
  - MP3_VOLUME         --> Default (don't set)
  - MUNT_VOLUME        --> Default (don't set)
  - MUNT_CPU_MASK      --> 1
  - FSYNTH_CPU_MASK    --> 1
  - FSYNTH_VOLUME      --> Default (don't set)
  - MODEM_VOLUME       --> Default (don't set)
  - MIXER_CONTROL      --> Master
  - FSYNTH_SOUNTFONT   --> '/media/fat/linux/soundfonts/SC-55.sf2'
  - UDP_SERVER         --> '192.168.1.130'
  - UDP_SERVER_PORT    --> 1999
  - UDP_BAUD           --> Default (don't change)
  - UDP_BAUD_ALT       --> Undefined
  - MIDI_BAUD          --> Default (don't change)
  - UDP_SERVER_FILTER  --> FALSE
  - UDP_FLOW           --> (0) Diasble Flow-control
  - TCP_BAUD           --> Default (don't change)
  - TCP_BAUD_ALT       --> Default (don't change)
  - MIDI_BAUD          --> Default (don't change)
  - UDP_SERVER_FILTER  --> FALSE
  - UDP_FLOW           --> (0) Diasble Flow-control
  - TCP_BAUD           --> Default (don't change)
  - TCP_BAUD_ALT       --> Default (don't change)
  - TCP_DTR            --> (1) Normal
  - TCP_QUIET          --> (0) Normal
  - TCP_FLOW           --> (3) RTS/CTS
  - TCP_ATH_DELAY      --> 900
  - TCP_SERVER_PORT    --> 23
  - TCP_TERM_ROWS      --> 23
  - TCP_TERM_UPLOAD    --> '/media/fat/UPLOAD'
  - TCP_TERM_DOWNLOAD  --> '/media/fat'
  - TCP_TERM_MP3       --> '/media/fat/MP3'
  - TCP_TERM_MIDI      --> '/media/fat/MIDI'
  - TCP_TERM_SYNTH     --> FluidSynth
  - TCP_TERM_TRANS     --> NONE
  - TCP_SOUND          --> TRUE
  - TCP_SOUND_DIAL     --> Software
  - TCP_SOUND_RING     --> Software
  - TCP_SOUND_CONNECT  --> Software
  - USB_SERIAL_BAUD    --> Default (don't change)
  - USB_SERIAL_MODULE  --> ''
  - DELAYSYSEX         --> TRUE
  - MT32_LCD_MSG       --> 'MiSTer MidiLink! BB7'

Setting task priority --> -20
Killing --> mpg123
Killing --> aplaymidi
Killing --> fluidsynth
Killing --> mt32d
Checking for --> '/dev/snd/pcmC0D0p' : TRUE
Starting --> fluidsynth
Looking for FluidSynth port (1 / 13)
Looking for FluidSynth port (2 / 13)
Looking for FluidSynth port (3 / 13)
Looking for FluidSynth port (4 / 13)
Looking for FluidSynth port (5 / 13)
Looking for FluidSynth port (6 / 13)
Looking for FluidSynth port (7 / 13)
Looking for FluidSynth port (8 / 13)
Looking for FluidSynth port (9 / 13)
Looking for FluidSynth port (10 / 13)
Looking for FluidSynth port (11 / 13)
Looking for FluidSynth port (12 / 13)
Looking for FluidSynth port (13 / 13)
ERROR: Unable to find Synth MIDI port after several attempts :(
bbond007
Top Contributor
Posts: 519
Joined: Tue May 26, 2020 5:06 am
Has thanked: 85 times
Been thanked: 198 times

Re: Help with DOS and Midilink

Unread post by bbond007 »

maybe /sbin/fluidsynth or your soundfont is corrupted...

try and start fluidsynth manually to see if that offers any clues:

Code: Select all

#fluidsynth -is -a alsa -m alsa_seq /media/fat/linux/soundfonts/SC-55.sf2
gibs
Posts: 66
Joined: Sun May 09, 2021 11:04 pm
Has thanked: 8 times
Been thanked: 14 times

Re: Help with DOS and Midilink

Unread post by gibs »

yep, the SC-55.sf2 size was 0Ko. I don't know why because at a time it was working :)
Thanks
Post Reply