• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

Playing X68000 games with MIDI music

Scheduled Pinned Locked Moved Ideas and Development
midilr-px68kx68000
25 Posts 4 Posters 3.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    Folly @ecto
    last edited by Folly 4 Sept 2024, 14:30 9 Apr 2024, 13:28

    @ecto

    From what I know pulseaudio is the default nowadays.
    Though that part is always a bit of mystery to me.

    I will play with it again if I can.

    Btw. I have a Roland E-38 keyboard and was curious if I could get something out of it.
    With this command :

    aconnect -l
    

    I was able to find the ports and directly connect it from within the configs of lr-pk68k, so without using timidity or munt. (did it on my pi5)

    Sound was a bit better as from timidity with sc55.
    Though it looks like lr-pk68k is not perfect in outputting the midi stream.

    M 1 Reply Last reply 9 Apr 2024, 15:03 Reply Quote 1
    • M
      mitu Global Moderator @Folly
      last edited by mitu 4 Sept 2024, 16:04 9 Apr 2024, 15:03

      @Folly said in Playing X68000 games with MIDI music:

      From what I know pulseaudio is the default nowadays.

      No, PipeWire is the new kid on the block (!), though it offers a PulseAudio compatible API so that programs think they talk to a PulseAudio server.

      F 1 Reply Last reply 9 Apr 2024, 16:48 Reply Quote 1
      • F
        Folly @mitu
        last edited by 9 Apr 2024, 16:48

        @mitu said in Playing X68000 games with MIDI music:

        @Folly said in Playing X68000 games with MIDI music:

        From what I know pulseaudio is the default nowadays.

        No, PipeWire is the new kid on the block (!), though it offers a PulseAudio compatible API so that programs think they talk to a PulseAudio server.

        Ah, good to know, thanks !

        1 Reply Last reply Reply Quote 0
        • F
          Folly @ecto
          last edited by Folly 4 Oct 2024, 16:09 9 Apr 2024, 19:54

          @ecto

          I discovered something but not tested it yet.
          When selecting option 2 MT-32 it uses "LA Format" and when selecting option 3 it uses "GS Format".

          I recon that when using option 3 (SC55) you have to use this in the core options :

          px68k_midi_type = "GS"
          

          Something to test don't you think ?

          Some info over here about GS :
          https://www.cybermidi.com/helpdesk/knowledgebase.php?article=47

          Edit :
          (tests done with selecting option 3 in the game and using timidity with SC55)
          Tested the core option with the midi tree version, as that version has the px68k_midi_type core option, but seems to have no impact.
          Also tested the original lr-pk68k version which doesn't have the px68k_midi_type core option and there seems to be no difference in the sound quality versus the "midi tree version"

          1 Reply Last reply Reply Quote 0
          • K
            kelvfimer @ecto
            last edited by 9 Apr 2024, 20:22

            @ecto Hello pls check the attached cfg file in the url https://www.vogons.org/viewtopic.php?t=21644

            An extract is the following. So I assume you don't set up the bank line, Am I right?

            dir your sf2 folder

            soundfont "DJ Tony's Roland SC-55 1.1.sf2" amp=100 pan= modpitch=0
            soundfont "DJ Tony's Roland SC-55 1.1.sf2" amp=100 pan= fc=8000 q=25
            bank 0
            0 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 0
            1 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 1
            2 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 2
            3 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 3
            4 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 4
            5 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 5
            6 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 6
            7 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 7
            8 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 8
            9 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 9
            10 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 10
            11 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 11
            12 %font "DJ Tony's Roland SC-55 1.1.sf2" 0 12

            1 Reply Last reply Reply Quote 0
            • F
              Folly
              last edited by Folly 4 Nov 2024, 16:05 10 Apr 2024, 19:09

              @ecto @kelvfimer

              As far as I can see now it's quite obvious that the code of both the "original master" and the "midi tree" have issues with midi, revealing in tempo changes.

              I connected my real Roland E-38 synthesizer keyboard to my PI5 and tested MAME and the original lr-px68k.

              On my PI4 it became clear that both "original master" and the "midi tree" have the same issue so I figured I could just use the original master.
              My keyboard detected "GS mode" with both emulators so that is OK.
              This makes it also clear that the "original master" can provide the GS mode.

              With MAME I have almost perfect sound from the keyboard, it sounds really great :-) !
              With lr-px68k I had tempo changes again :-( .

              This makes it clear that the issues are mostly coming from the lr-px68k core.

              Using timidity was also better with MAME but I still have more volume on the right side.
              Seems to be a timidity problem.

              For mame I used this runcommand adding midi and outputting it to my keyboard :

              /opt/retropie/emulators/mame/mame -rompath /home/pi/RetroPie/BIOS/mame\;/home/pi/RetroPie/roms/x68000 -v -c -ui_active -statename x68000/"akumajou dracula (1993)(konami)(disk 1 of 2)" x68000  -flop1 "/home/pi/RetroPie/roms/x68000/akumajou dracula (1993)(konami)(disk 1 of 2).dim" -flop2 "/home/pi/RetroPie/roms/x68000/akumajou dracula (1993)(konami)(disk 2 of 2).dim" -exp1 x68k_midi -midiout 'USB Device 0x1acc:0x0a MIDI 1'
              

              or using basename :

              /opt/retropie/emulators/mame/mame -rompath /home/pi/RetroPie/BIOS/mame\;/home/pi/RetroPie/roms/x68000 -v -c -ui_active -statename x68000/"akumajo" x68000   "akumajo" -exp1 x68k_midi -midiout 'TiMidity port 0'
              

              In the last runcommand you can also see that the option -midiout can also hold the timidity port and can be used in both runcommands.

              1 Reply Last reply Reply Quote 1
              • F
                Folly
                last edited by Folly 4 Nov 2024, 16:03 11 Apr 2024, 08:49

                @kelvfimer

                I tested the first timidity.cfg for DJ Tony's SC-55 sound-font from here.
                Renamed the config to DJ_Tony_Roland_SC-55_1.1.cfg and placed that config inside the timidity.cfg.
                Also used that soundfont.
                Added the proper dir inside DJ_Tony_Roland_SC-55_1.1.cfg :

                dir /usr/share/sounds/sf2
                

                And removed the line holding --rtsyn-latency=0.04 as timidity didn't understand it.

                Now I have a proper sc-55 config and left and right volume is in balance and has proper stereo.

                Edit 1:
                Converting the config for use with the zz_denis soundfont works perfectly.

                Edit 2:
                I can now also confirm that this setup works on my x86_64 VM with running on lr-px68k.
                No timing issues whatsoever so lr-px68k seems to do the job OK on a regular PC's.

                K 1 Reply Last reply 12 Apr 2024, 14:27 Reply Quote 1
                • K
                  kelvfimer @Folly
                  last edited by 12 Apr 2024, 14:27

                  @Folly Cool. So it's also working for you :) .

                  My point is how to set up that timidity.cfg and sd.cfg what's the way to tune it etc.

                  I wanted to have the same for SC88 but I don't find it.

                  My demand to @ecto is help to know how to build the timidity.cfg file and the SCXX.cfg file

                  thx

                  F E 2 Replies Last reply 13 Apr 2024, 08:17 Reply Quote 0
                  • F
                    Folly @kelvfimer
                    last edited by 13 Apr 2024, 08:17

                    @kelvfimer

                    Here is the manual where you might find some useful information.

                    1 Reply Last reply Reply Quote 0
                    • E
                      ecto @kelvfimer
                      last edited by ecto 15 Apr 2024, 09:28

                      @kelvfimer said in Playing X68000 games with MIDI music:

                      My point is how to set up that timidity.cfg and sd.cfg what's the way to tune it etc.

                      As I've written before: The only (uncommented) line in my timidity.cfg is:

                      soundfont "/usr/share/sounds/sf2/SC55.sf2"
                      

                      I have no SC55.cfg of any kind. Maybe my midi output is not configured correctly, but I can hear midi music in several x68000 and pc98 games. They seem so sound correctly, but indeed I also have a slightly irregular midi output (it sometimes slows down for some notes).

                      The only real problem I have are buffer underrun errors in the logs. I'm not sure if that corresponds to the timing issues, but it might.
                      I'm not sure how to get rid of them, but I would think that the midi daemons have to run in or close to real time.

                      1 Reply Last reply Reply Quote 0
                      • topic:timeago-later,7 days
                      • E
                        ecto
                        last edited by 22 Apr 2024, 10:13

                        @Folly @kelvfimer Just a small thing I noticed: the tempo changes with the lr-p68k core seem to have gotten a little better after I changed the cpu frequency in the core settings to 25MHz. Maybe you can try that, too.

                        K 2 Replies Last reply 8 Jun 2024, 19:22 Reply Quote 1
                        • topic:timeago-later,2 months
                        • K
                          kelvfimer @ecto
                          last edited by 8 Jun 2024, 19:22

                          @ecto cool I need to check :) thx for the advice . Only issue for example Castlevania at 25 MHz has glitches and you must run it at 10 MHZ

                          1 Reply Last reply Reply Quote 0
                          • topic:timeago-later,2 months
                          • K
                            kelvfimer @ecto
                            last edited by 27 Jul 2024, 20:08

                            @ecto @Folly I was speaking to a guy that fixed Etoile Princess and added some MIDI enhancement in the Core. The changes are already uploaded to px68k core. So update the core :)

                            K 1 Reply Last reply 30 Dec 2024, 00:04 Reply Quote 2
                            • topic:timeago-later,5 months
                            • K
                              kelvfimer @kelvfimer
                              last edited by 30 Dec 2024, 00:04

                              @Folly @ecto take a look what we got on Emuelec with the different midi platforms in px68k

                              F 1 Reply Last reply 2 Jan 2025, 18:52 Reply Quote 2
                              • F
                                Folly @kelvfimer
                                last edited by Folly 1 Feb 2025, 18:52 2 Jan 2025, 18:52

                                @kelvfimer

                                Nice to hear that this seems to work better.
                                I don't think it depends upon emuelec.
                                It probably works better because of the better computer specs, don't you think ?

                                K 1 Reply Last reply 4 Jan 2025, 22:27 Reply Quote 0
                                • K
                                  kelvfimer @Folly
                                  last edited by kelvfimer 1 Apr 2025, 22:27 4 Jan 2025, 22:27

                                  @Folly nope, it is not related to Emuelec. It is due to we find the proper sf2 and timidity and fluidsythn config files :) It would work in retropie, emuelec or whatever system with retroarch. The cool thins is that it works :)

                                  F 1 Reply Last reply 4 Jan 2025, 22:35 Reply Quote 0
                                  • F
                                    Folly @kelvfimer
                                    last edited by 4 Jan 2025, 22:35

                                    @kelvfimer

                                    Cool !
                                    I agree.

                                    1 Reply Last reply Reply Quote 0
                                    18 out of 25
                                    • First post
                                      18/25
                                      Last post

                                    Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                    Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                                      This community forum collects and processes your personal information.
                                      consent.not_received