English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 21 February 2021, 15:12   #1
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
tool to stop MT32 sound

When quitting a whdload game with quitkey on a sierra MT32 game when MT32 replay is active, the sound remains.


Is there a command to send (using serial.device) to stop the midi sound?
jotd is offline  
Old 21 February 2021, 16:39   #2
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
Perhaps sending a midi controller message.
Those are three bytes.
First byte is status byte and channel, second byte is controller number and third byte value.

I´ll try with "All Sound Off" or "All Notes Off" messages.


All Sound Off:
B0 78 00

All Notes Off:
B0 7B 00

Hope it helps.
tolkien is offline  
Old 21 February 2021, 18:39   #3
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
it does. What is really funny is that when restarting whdload on any game that uses kickstart, the sound stops... It means that kickstart stops midi at startup.

Is there a way to do that programmatically using serial.device ?
jotd is offline  
Old 21 February 2021, 19:36   #4
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
I have only do midi stuff with camd.library but anyway, you only have to send those bytes and the mt32 knows what to do...I hope!
tolkien is offline  
Old 21 February 2021, 20:34   #5
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
I have made a quick test in amiblitz with my raspberry mt32 emu and...doesnt work.
MT32 is pre general midi and perhaps doesnt understand those commands.
Will have to look a solution. :/
tolkien is offline  
Old 21 February 2021, 20:37   #6
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,986
Is it enough to open and then close serial device?
Galahad/FLT is offline  
Old 21 February 2021, 20:46   #7
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
@Galahad: worth a try.
jotd is offline  
Old 21 February 2021, 20:48   #8
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
Sorry...dont know what happend before.
Yes, open serial, send "b0 7b 00" and close serial.
But I think you have to send it to each channel.
"b0 7b 00"
"b1 7b 00"
"b2 7b 00"
"b3 7b 00"
...
tolkien is offline  
Old 21 February 2021, 21:03   #9
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
Jotd...could you test a file I uploaded to the zone?
tolkien is offline  
Old 21 February 2021, 22:56   #10
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
yeah. It works very well! thanks. Maybe you could share the source? Bert could be interested in integrating it with whdload

In the meantime, integrating it to s:whdload-cleanup works fine.
jotd is offline  
Old 21 February 2021, 23:14   #11
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
I have code it in a hurry in amiblitz but I'll post it tomorrow so someone can code it in a proper manner.
Happy it works for you.
tolkien is offline  
Old 23 June 2021, 00:51   #12
Wepl
Moderator
 
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 866
The latest WHDLoad beta contains a workaround for this problem. The sound should be stopped on exit.
http://www.whdload.de/whdload/whd187.lha
Wepl is offline  
Old 23 June 2021, 02:52   #13
cloverskull
Registered User
 
Join Date: Sep 2018
Location: California
Posts: 322
Not sure if this is useful information but I have a hardware PC hooked up to a hardware MT32 and I frequently have this problem as well
cloverskull is offline  
Old 23 June 2021, 09:33   #14
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
@Wepl: that's great!

@cloverskull I'm sure there are tools to stop the MT32 from your PC. Of course whdload will be of no help here
jotd is offline  
Old 23 June 2021, 14:14   #15
spudje
Registered User
 
Join Date: Dec 2014
Location: Netherlands
Posts: 1,406
This is originally for MT32-Pi, but maybe it has some command included you can use as well https://github.com/gmcn42/mt32-pi-control
spudje is offline  
Old 23 June 2021, 19:14   #16
cloverskull
Registered User
 
Join Date: Sep 2018
Location: California
Posts: 322
Quote:
Originally Posted by jotd View Post
@cloverskull I'm sure there are tools to stop the MT32 from your PC. Of course whdload will be of no help here
Yep, noted! :P My intent here was to suggest that this isn’t an issue unique to WHDLoad but rather seems to be common to the MT32 in general.
cloverskull is offline  
Old 09 July 2021, 07:07   #17
slaapliedje
Registered User
 
slaapliedje's Avatar
 
Join Date: Jul 2010
Location: Utah, USA
Posts: 516
This is an actual bug in the MT32, and it does it on pretty much every platform. Can be rather annoying and as pointed out, it can be worked around.
slaapliedje is offline  
Old 09 July 2021, 08:27   #18
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
Bert has added this feature in whdload now.
jotd is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
What tool was used to disassemble Seka and Sound Tracker redblade Coders. General 2 24 October 2020 23:05
Looking for Games with Roland Mt32 support Zurgs_Galaxy support.Games 1 16 August 2020 08:22
add midi/MT32 support jotd HOL suggestions and feedback 24 26 April 2020 10:58
How to setup Roland MT32 emulation? Retrofan support.WinUAE 17 15 April 2019 01:27
Games that supported Roland MT32 on Amiga? ancalimon request.Old Rare Games 9 04 December 2009 00:53

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:50.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11569 seconds with 13 queries