c0fd97acb3
- delete 'zlib' directory - delete common/arc*.* - remove SUPPORT_ARC - remove SUPPORT_ZLIB |
||
---|---|---|
accessories | ||
bios | ||
cbus | ||
codecnv | ||
common | ||
diskimage | ||
embed | ||
fdd | ||
font | ||
generic | ||
i286c | ||
i286x | ||
i386c | ||
i386hax | ||
io | ||
jni | ||
lio | ||
mem | ||
misc | ||
network | ||
np2tool | ||
romimage | ||
sample | ||
sdl2 | ||
sound | ||
trap | ||
vram | ||
wab | ||
win9x | ||
x11 | ||
.gitignore | ||
calendar.c | ||
calendar.h | ||
common.h | ||
debugsub386.c | ||
debugsub.c | ||
debugsub.h | ||
kai_note.txt | ||
keystat.c | ||
keystat.h | ||
keystat.tbl | ||
LICENSE | ||
nevent.c | ||
nevent.h | ||
np2_thread.c | ||
np2_thread.h | ||
np2_tickcount.c | ||
np2_tickcount.h | ||
np2ver.h | ||
pccore.c | ||
pccore.h | ||
README.md | ||
readme.txt | ||
statsave.c | ||
statsave.h | ||
statsave.tbl | ||
timing.c | ||
timing.h | ||
update.txt |
Neko Project II 0.86 kai
Mar 8, 2020
NP2kai is PC-9801 series emulator
Build and Install
libretro core
for Windows/Linux/macOS
Install tools
- MSYS2 64bit + 64bit console(Windows).
- Install compiler, etc.
Build
- Change directory to sdl2.
$ cd NP2kai/sdl2
- Make.
$ make
Install binary
- Install shared library(.dll or .so or .dylib) to libretro's core directory.
- Locate BIOS files to np2kai in libretro's BIOS directory (libretro/BIOS/np2kai).
for Android/iOS
Install tools
- MSYS2 64bit + 64bit console(Windows).
- Install Android Studio, and NDK. And PATH there.
- Clone libretro-super.
$ git clone --depth 1 https://github.com/libretro/libretro-super.git
Build
- Change directory to libretro-super.
$ cd libretro-super
- Fetch np2kai.
$ ./libretro-fetsh.sh np2kai
- Build.
(Android)
$ ./libretro-build-android-mk.sh np2kai
(iOS)
$ ./libretro-build-ios.sh np2kai
Install binary
- Install shared library(.so or .dylib) to libretro's core directory.
- Locate BIOS files to np2kai in libretro's BIOS directory (libretro/BIOS/np2kai).
NP2 menu is shown F12 or mouse middle button or L2, to swap FDD/HDD diskimages.
Windows
You should NP2fmgen or NP21/W, maybe.
VisualStudio 2019
Install tools
- Install VisualStudio 2019.
- Install NASM and PATH it.
- Locate VST SDK to C:\VST_SDK and run copy_vst2_to_vst3_sdk.bat.
Build
- Open win9x/np2vs2019.
- Set Release/x64.
- Build projects.
- Output np2kai.exe(i286) and np21kai.exe(i386).
Install binary
- Locate .exe file anywhere.
- Locate BIOS files to .exe same filder.
SDL2
Install tools
- Install MSYS2 64bit.
- Run MSYS2 64bit console
- Run follow command.
$ pacman -S git make mingw-w64-x86_64-toolchain mingw-w64-x86_64-ntldd mingw-w64-x86_64-SDL2 mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-SDL2_mixer
Build
- Change directory to sdl2.
$ cd NP2kai/sdl2
- Make.
(i286)
$ make -f Makefile.win
(i386)
$ make -f Makefile21.win
Install binary
- Install.
$ make install
- Locate BIOS files to ~/.config/np2kai(i286) or ~/.config/np21kai(i386).
- Run np2kai(i286) or np21kai(i386).
- NP2 menu is shown F11 or mouse middle button, to swap FDD/HDD diskimages.
SDL1
Install tools
- Install MSYS2 64bit.
- Run MSYS2 64bit console
- Run follow command.
$ pacman -S git make mingw-w64-x86_64-toolchain mingw-w64-x86_64-ntldd mingw-w64-x86_64-SDL mingw-w64-x86_64-SDL_ttf mingw-w64-x86_64-SDL_mixer
Build
- Change directory to sdl2.
$ cd NP2kai/sdl2
- Make.
(i286)
Edit 'SDL_VERSION' in Makefile.win from 2 to 1.
$ make -f Makefile.win
(i386)
Edit 'SDL_VERSION' in Makefile21.win from 2 to 1.
$ make -f Makefile21.win
Install binary
- Install.
$ make install
- Locate BIOS files to ~/.config/np2kai(i286) or ~/.config/np21kai(i386).
- Run np2kai(i286) or np21kai(i386).
- NP2 menu is shown F11 or mouse middle button, to swap FDD/HDD diskimages.
Linux
temporary
It seems slow xnp2kai's dialog now, on Ubuntu GNOME.
(Maybe GTK issue. No problem on Ubuntu MATE.)
This issue is can aboid with follow command when starting
$ dbus-launch --exit-with-session xnp2kai
X11 with SDL2
Install tools
- Install SDL2, etc.
$ sudo apt-get install automake git gtk+-2 build-essential libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libusb-1.0-0-dev
Build
- Change directory to x11.
$ cd NP2kai/x11
- Run autotools script.
$ ./autogen.sh
- Run configure.
(i286)
$ ./configure
(i386)
$ ./configure --enable-ia32
- Make.
$ make
Install binary
- Install.
$ sudo make install
- Locate BIOS files to ~/.config/xnp2kai(i286) or ~/.config/xnp21kai(i386).
- Run xnp2kai(i286) or xnp21kai(i386).
X11 with SDL1
Install tools
- Install SDL, etc.
$ sudo apt-get install automake git gtk+-2 build-essential libsdl1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libusb-1.0-0-dev
Build
- Change directory to x11.
$ cd NP2kai/x11
- Run autotools script.
$ ./autogen.sh
- Run configure.
(i286)
$ ./configure --enable-sdl --enable-sdlmixer --enable-sdlttf --enable-sdl2=no --enable-sdl2mixer=no --enable-sdl2ttf=no
(i386)
$ ./configure --enable-sdl --enable-sdlmixer --enable-sdlttf --enable-sdl2=no --enable-sdl2mixer=no --enable-sdl2ttf=no --enable-ia32
- Make.
$ make
Install binary
- Install.
$ sudo make install
- Locate BIOS files to ~/.config/xnp2kai(i286) or ~/.config/xnp21kai(i386).
- Run xnp2kai(i286) or xnp21kai(i386).
SDL2
Install tools
- Install SDL2, etc.
$ sudo apt-get install git build-essential libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev
Build
- Change directory to sdl2.
$ cd NP2kai/sdl2
- Make.
(i286)
$ make -f Makefile.unix
(i386)
$ make -f Makefile21.unix
Install binary
- Install.
$ sudo make install
- Locate BIOS files to ~/.config/np2kai(i286) or ~/.config/np21kai(i386).
- Run np2kai(i286) or np21kai(i386).
- NP2 menu is shown F11 key or mouse middle button, to swap FDD/HDD diskimages.
SDL1
Install tools
- Install SDL2, etc.
$ sudo apt-get install git build-essential libsdl1.2-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev
Build
- Change directory to sdl2.
$ cd NP2kai/sdl2
- Make.
(i286)
Edit 'SDL_VERSION' in Makefile.unix from 2 to 1.
$ make -f Makefile.unix
(i386)
Edit 'SDL_VERSION' in Makefile21.unix from 2 to 1.
$ make -f Makefile21.unix
Install binary
- Install.
$ sudo make install
- Locate BIOS files to ~/.config/np2kai(i286) or ~/.config/np21kai(i386).
- Run np2kai(i286) or np21kai(i386).
- NP2 menu is shown F11 key or mouse middle button, to swap FDD/HDD diskimages.
macOS
SDL2
Install tools
- Install XCode.
- Install brew.
- Execute follow command.
$ brew install sdl2 sdl2_mixer sdl2_ttf
Build
- Change directory to sdl2.
$ cd NP2kai/sdl2
- Make.
(i286)
$ make -f Makefile.mac
(i386)
$ make -f Makefile21.mac
Install binary
- Install.
$ make install
- Locate BIOS files to ~/.config/np2kai(i286) or ~/.config/np21kai(i386).
- Run np2kai(i286) or np21kai(i386).
- NP2 menu is shown F11 key or mouse middle button, to swap FDD/HDD diskimages.
SDL1
Install tools
- Install XCode.
- Install brew.
- Execute follow command.
$ brew install sdl sdl_mixer sdl_ttf
Build
- Change directory to sdl2.
$ cd NP2kai/sdl2
- Make.
(i286)
Edit 'SDL_VERSION' in Makefile.mac from 2 to 1.
$ make -f Makefile.mac
(i386)
Edit 'SDL_VERSION' in Makefile21.mac from 2 to 1.
$ make -f Makefile21.mac
Install binary
- Install.
$ make install
- Locate BIOS files to ~/.config/np2kai(i286) or ~/.config/np21kai(i386).
- Run np2kai(i286) or np21kai(i386).
- NP2 menu is shown F11 key or mouse middle button, to swap FDD/HDD diskimages.
for Other
GCW Zero (GCW0)
Build
- Change directory into sdl2.
$ cd NP2kai/sdl2
- Make.
$ make -f Makefile.gcw0
or
$ make -f Makefile21.gcw0
Install binary
- Transfer np2kai.opk or np21kai.opk to /media/apps/ .
- BIOS files should locate in ~/.config/np2kai (or np21kai).
Dingux series (RS90 GKD350H)
Build
- Change directory to sdl2.
$ cd NP2kai/sdl2
- Make.
$ make -f Makefile.gkd350h
or
$ make -f Makefile21.gkd350h
Install binary
- Transfer np2kai.opk or np21kai.opk to /media/apps/ .
- BIOS files should locate in ~/.config/np2kai (or np21kai).
About libretro port
BIOS files location
- bios.rom
- font.rom or font.bmp
- itf.rom
- sound.rom
- (bios9821.rom or d8000.rom
But I never see good dump file.) - 2608_bd.wav
- 2608_sd.wav
- 2608_top.wav
- 2608_hh.wav
- 2608_tom.wav
- 2608_rim.wav
BIOS files locate in 'np2kai' directory at BIOS directory (configured by RetroArch).
Configure file (np2kai.cfg) is made in 'np2kai' BIOS directory.
To get BIOS files, you need actual PC-98 machine.
Start MS-DOS on the actual PC-98 and execute the GETBIOS command
(included in the np2tool/np2tool.zip floppy image)
to create BIOS files.
Rhythm sound files are dumped from PC-98 machine with FM sound gen.
You can get sound files from here.
Fonts
NP2kai recommend font is using font.rom.
Windows
You can use 'MS Gothic'. To install add your windows,
'install files Easten Asian languages' at 'language' option.
After installation, 'msgothic.ttc' file's shortcut named 'default.ttf' put in BIOS directory.
(Already exist 'font.tmp', delete this.)
And start NP2kai.
Linux
I recommend use 'Takao Gothic'.
Install with follow command.
After installation, 'TakaoGothic.ttf' file's shortcut put in BIOS directory.
sudo apt install 'fonts-takao-*'
and
ls -n /usr/share/fonts/truetype/takao-gothic/TakaoGothic.ttf BIOSdirectory/default.ttf'
Already exist 'font.tmp', delete this.
And start NP2kai.
You can use 'Noto sans mono CJK', 'MS Gothic'(Japanese) also.
NP2 menu (different libretro menu)
NP2 menu is shown F12 or mouse middle button or L2.
NP2 menu can swap FDD/HDD diskimages.(Swapping HDD need reset.)
Mounting/Swaping Disk and HDD/CD mounting at start
Using libretro contents .m3u file listed floppy disk images,
You can use libretro swap interface.
(This file must be wiritten in UTF-8.)
1st.d88
2nd.d88
3rd.d88
1st image is mouted to FDD1, 2nd image is mouted to FDD2.
(Not suitable when using only one FDD1 drive. Use NP2 menu.)
To swap FDD2 imagefile, libretro menu durling run core,
'Disk Control' -> 'Disk Cycle Tray Status' (eject) -> 'Disk Index' -> 'Disk Cycle Tray Status' (disk set)
So, to swap FDD1 imagefile, libretro 'Option' menu -> 'Swap Disks on Drive' set 'FDD1'
HDD/CD image can't be wiritten in .m3u file
You can write to .cmd file commandline,
(This file must be wiritten in UTF-8.)
np2kai fdilocation/aaa.fdi hdilocation/bbb.hdi isolocation/ccc.iso
'aaa.fdi' is mounted to FDD1,
'bbb.hdi' is mounted to HDD1,
'ccc.iso' is mounted to CD drive.
(Determined by extension)
.m3u files can written in .cmd file.
Then, You can FDs+HD and FDs+CD contents file.
Using mouse (J2M Joypad2Mouse)
Mouse cursor moving is always enable with mouse on PC.
Mouse cursor moving and left-button be able to controled with joypad stick.
Switch Stick2Mouse mode in config to 'L-stick' or 'R-stick(default)'.
- Stick: mouse move
- Thumb: mouse left button
(if you need right-button, enable to J2M and use A button.)
To switch Joy2Mouse/Keyboard mode in config to 'Mouse'.
Mouse cursor is able to move with joypad's digital button also.
- D-UP/DOWN/LEFT/RIGHT: mouse move
- B button: mouse left button
- A button: mouse right button
- R button: mouse speed up durling hold
Using keyboard (J2K Joypad2Keyboard)
Keyboard is able to control with joypad.
Switch Joy2Mouse/Keyboard mode in config to 'Arrows' or 'Keypad' (or 'Manual').
- D-UP/DOWN/LEFT/RIGHT: Arrow key or Keypad(2468) key
- B button: Z key
- A button: X key
- X button: Space key
- Y button: left Ctrl key
- L button: Backspace key
- R button: right Shift key
- Select button: Escape key
- Start button: Return key
By setting Joy2Mouse/Keyboard mode to 'Manual', you can custom keycode for button.
Change 'lrjoybtn' value in system/np2kai/np2kai.cfg.
This value is little endian and 12 values of 16bits(2Bytes) are arranged.
Write the key code of RETROK (see libretro.h) to this value.
The order is D-UP/DOWN/LEFT/RIGHT/A/B/X/Y/L/R/Select/Start.
Tuning performance
- CPU clock
Change "CPU Clock Multiplyer". - Memory size
Change "RAM Size". - Sound device
26K: for old games.
86: for newer games. - Sound Generator (to change need reset)
fmgen: fmgen sound generator.
Default: NP2's default sound generator. - How to set GDC 2.5MHz/5MHz?
- Press End key(assigned Help key) + reset
- Select 'ディップスイッチ2'(DIP switch 2)
- How to key typing?
There are two ways:
- map the 'enable hotkeys' hotkey in settings > input > input hotkey binds and RetroArch will stop listening for hotkeys unless/until you hold that button/key
- enable the "game focus mode" (mapped to scroll_lock by default) and it will send all of your inputs to the core instead of the frontend. However, some people have reported having trouble getting out of game focus mode.
(Thanks hasenbanck)
Keyboard mapping (libretro)
Common
PC-98key | key | problem | menu |
---|---|---|---|
STOP | Pause | ||
COPY | PrintScreen | don't come event | implemented |
v.f1 | can't push | ||
v.f2 | can't push | ||
v.f3 | can't push | ||
v.f4 | can't push | ||
v.f5 | can't push | ||
Kana | can't push | implemented | |
GRPH | RCtrl | ||
NFER | LAlt | ||
XFER | RAlt | ||
HOME/CLR | Home | ||
HELP | End | ||
KP= | KP= | can't push | implemented |
KP. | KP. | don't come event | implemented |
JP106 keyboard(default)
PC-98key | key | info | menu |
---|---|---|---|
¥ |¥ |don't come event | implemented | ||
_ _ | L2? Menu has open? | implemented |
US101 keyboard
PC-98key | key | info | menu |
---|---|---|---|
2 " | 2 @ | two event 0x02,0x2A | |
¥ |\ | | |||
@ ` | ` ~ | don't come event | implemented |
; + | ; : | ||
: * | ' " | ||
_ _ | can't push | implemented |
Keyboard mapping (X11)
Common
PC-98key | key | problem | menu |
---|---|---|---|
STOP | Pause | ||
COPY | can't push | ||
v.f1 | can't push | ||
v.f2 | can't push | ||
v.f3 | can't push | ||
v.f4 | can't push | ||
v.f5 | can't push | ||
Kana | can't push | ||
GRPH | RCtrl | ||
NFER | LAlt | ||
XFER | RAlt | ||
HOME/CLR | Home | ||
HELP | End | ||
KP= | KP= | can't push |
JP106 keyboard(default)
All keys are used, OK.
US101 keyboard
PC-98key | key | info | menu |
---|---|---|---|
2 " | 2 @ | ||
6 & | 6 ^ | ||
7 ' | 7 & | ||
8 ( | 8 * | ||
9 ) | 9 ( | ||
0 |
0 ) | ||
- = | - _ | ||
^ ~ | = + | ||
¥ |\ | | |||
@ ` | [ { | ||
[ { | ] } | ||
; + | ; : | ||
: * | ' " | ||
] } | ` ~ | ||
_ _ | can't push | implemented |
Setting to RetroPie
- Install Japanese font. (umefont need SDL2 port only)
$ sudo apt-get install fonts-droid fonts-horai-umefont
- Locate libretro & SDL2 port files.
$ sudo mkdir /opt/retropie/libretrocores/lr-np2kai
$ sudo cp np2kai_libretro.so /opt/retropie/libretrocores/lr-np2kai/
$ sudo mkdir /opt/retropie/emulators/np2kai
$ sudo cp np2kai /opt/retropie/emulators/np2kai/
$ sudo touch /opt/retropie/emulators/np2kai/np2kai.cfg
$ sudo chmod 666 /opt/retropie/emulators/np2kai/np2kai.cfg
- Write & locate retroarch.cfg.
$ sudo vi /opt/retropie/configs/pc98/retroarch.cfg`
Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
input_remapping_directory = "/opt/retropie/configs/pc98/"
#include "/opt/retropie/configs/all/retroarch.cfg"
- Locate BIOS files.
BIOS files locate in "˜/RetroPie/BIOS/np2kai/" directory.
and "/opt/retropie/emulators/np2kai/" too. - Make shortcut to Japanese font. (SDL2 port only)
$ sudo ln -s /usr/share/fonts/truetype/horai-umefont/ume-ugo4.ttf /opt/retropie/emulators/np2kai/default.ttf
- Add "carbon-mod". (Japanese nize)
$ git clone https://github.com/eagle0wl/es-theme-carbon.git`
$ sudo cp -r ./es-theme-carbon /etc/emulationstation/themes/carbon-mod
- Add to "/etc/emulationstation/es_systems.cfg" writing.
$ sudo nano /etc/emulationstation/es_systems.cfg`
</system>
<system>
<name>pc98</name>
<fullname>PC-98</fullname>
<path>/home/pi/RetroPie/roms/pc98</path>
<extension>.d88 .88d .d98 .98d .fdi .xdf .hdm .dup .2hd .tfd .nfd .hd4 .hd5 .hd9 .fdd .h01 .hdb .ddb .dd6 .dcp .dcu .flp .bin .fim .img .ima .D88 .88D .D98 .98D .FDI .XDF .HDM .DUP .2HD .TFD .NFD .HD4 .HD5 .HD9 .FDD .H01 .HDB .DDB .DD6 .DCP .DCU .FLP .BIN .FIM .IMG .IMA .thd .nhd .hdi .vhd .sln .hdn .hdd .THD .NHD .HDI .VHD .SLN .HDN .HDD .m3u .M3U</extension>
<command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ pc98 %ROM%</command>
<platform>pc98</platform>
<theme>pc98</theme>
<directlaunch/>
</system>
<system>
- Add to "/opt/retropie/configs/pc98/emulators.cfg" writing.
$ cd /opt/retropie/configs
$ sudo mkdir pc98
$ cd pc98
$ sudo nano emulators.cfg
np2kai="/opt/retropie/emulators/np2kai %ROM%"
lr-np2kai="/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-np2kai/np2kai_libretro.so --config /opt/retropie/configs/pc98/retroarch.cfg %ROM%"
<br><br>default="lr-np2kai"
- Launch ES and set "CARBON-MOD" to "THEME-SET".
Informaion
Using CD-ROM drive
To use CD drive with MS-DOS 6.2,
write follow to CONFIG.SYS.
LASTDRIVE=Z
DEVICE=A:¥DOS¥NECCDD.SYS /D:CD_101
And write follow to AUTOEXEC.BAT.
A:¥DOS¥MSCDEX.EXE /D:CD_101 /L:Q
Then, you'll can use CD drive as Q drive.
How many files(0-15)?
This screen is boot as PC-98 ROM BASIC mode.
You succeed to locate BIOS files.
Your floppy/harddisk image isn't mount correctry.
Check selecting image files and restart.
About PC-9801 floppy disk image
NP2 is made according to PC-98 specifications.
Floppy disk types are 720KB(2DD) and 1.23MB(2HD).
The floppy drive differs from the one of the PC/AT on the hardware level.
(There are a few floppies formatted to 1.44MB(2HD) using MS-DOS 6.2.)
A common mistake is to create a floppy disk image with PC/AT.
Some disk imager for PC/AT software is useful, but can't use PC-98 formatted floppy disk.
To read data from PC-98 formatted floppy disk,
You must use Win2000 older and '3-mode' floppy disk drive.
Also, many PC-98 floppy disks are provided with powerful copy guard for DRM.
If you are in the way, you should use WIZARD V3/V5.
It is better to have no obstacle.
And also, you may simply convert the image format.
VFIC (Virtual Floppy Image Converter)
https://www.vector.co.jp/soft/win95/util/se151106.html
Virtual Floppy Drive
https://sites.google.com/site/chitchatvmback/vfd
Hard disk image
DiskExplorer is useful for hard disk image management.
This software can access files in image nicely.
Only FAT is supported, NTFS does not correspond.
DiskExplorer
https://hp.vector.co.jp/authors/VA013937/editdisk/index.html
To use libnvl.so functions (X11)
http://euee.web.fc2.com/tool/nvl/np2kainvl.html
Locate libnvl.so to /usr/local/lib/.
Then we can use follow types HDD image files.
- vmdk
- dsk
- vmdx
- vdi
- qcow
- qcow2
- hdd
Network Card
NP2kai can use NIC that is follow spec.
MELCO LGY-98
IRQ:6
I/O:0x00D0
WAB (Window Accelerator Boards)
NP2kai can use WAB (Window Accelerator Boards).
To use WAB, enable WAB in menu and restart.
WAB Type normally uses 'PC-9821Xe10,Xa7e,Xb10 built-in'.
640x480 256 color support for Windows 3.1
- Switch to directory 'A:¥WINDOWS', then run 'SETUP' command.
- Select display mode '640x480 256色 16ドット(9821シリーズ対応)', or '640x480 256色 12ドット(9821シリーズ対応)' for smaller system font, then complete the changes. You may need Windows 3.1 installation disks when applying changes for the display driver.
- Extract 'EGCN4.DRV' and 'PEGCV8.DRV' from 'MINI3.CAB' in Windows 98 CD.
- Copy extracted 'EGCN4.DRV' and 'PEGCV8.DRV' to 'A:¥WINDOWS¥SYSTEM' directory, so as to replace the original driver files from Windows 3.1 installation disk.
- Type 'win' command to check if the driver works well.
NOTE: Do not run MS-DOS prompt with fullscreen mode, or your screen will get garbled when switching back to Windows environment.
You can use WAB Type 'WAB-S', 'WSN', 'GA-98NB'.
-
WAB-S driver
http://buffalo.jp/download/driver/multi/wab.html -
WSN driver
http://buffalo.jp/download/driver/multi/wgna_95.html -
GA-98NB driver
https://www.iodata.jp/lib/product/g/175_win95.htm
MIDI sound (X11)
External MIDI
NP2kai can use external MIDI sound generator with UM-1.
- Connect UM-1 to USB
- Check you can see 'C4D0' by '$ ls /dev/snd' command
- Open xnp2kai
- Select xnp2kai's menu 'Device' -> 'MIDI option...'
- Set '/dev/snd/C4D0' to 'MIDI-OUT' in ’Device' frame
- Select 'MIDI-OUT device' to 'MIDI-OUT' in ’Assign' frame
- Press 'OK'
- I tried with Touhou 2 (set MIDI option), I can listen MIDI sound.
Timidity++ (software MIDI synthesizer)
NP2kai can software synthesizer Timidity++ as Virtual MIDI.
It seems that Timidity++ is incompatible with PulseAudio.
By changing to ALSA output, I was able to play sound.
- Install Timidity++ and fluid-soundfont-gm
$ sudo apt-get install timidity fluid-soundfont-gm
- Edit timidity.cfg
$ sudo nano /etc/timidity
#source /etc/timidity/freepats.cfg<br>
source /etc/timidity/fluidr3_gm.cfg
- restart timidity
$ sudo service timidity restart
$ aconnect -o
This time, you can see like Timidity port 128:0 to 128:3.
5.
$ timidity -iA -B2,8 -Os &
Run timidity daemon output to ALSA.
$ aconnect -o
This time, you can see like ALSAed Timidity port 129:0 to 129:3.
6.
$ sudo modprobe snd-virmidi
Add virtual MIDI port module.
$ aconnect -o
This time, you can see like VirMIDI 3-0 to 3-3 at 28:0 to 31:0.
7.
$ ls /dev/snd
You can also see VirMIDI 3-0 to 3-3 at midiC3D0 to midiC3D3.
8. Connect VirMIDI 3-0 and ALSAed Timidity port 0.
$ aconnect 28:0 129:0
- Finally set '/dev/snd/midiC3D0' to xnp2kai.
Next boot computer, you command from 4.
Release
- Mar 6, 2020
- [SDL2/X11] fix default.ttf
- [SDL2/X11] fix default.ttf
- Mar 2, 2020
- Using absolute/rerative path in .m3u and .cmd list file
- [lr] not remember last HDD mount
- Using absolute/rerative path in .m3u and .cmd list file
- Feb 18, 2020
- fix V30 and 286 flag register
- fix V30 and 286 flag register
- Feb 4, 2020
- Merge NP21/W rev.70 strongly
- Merge NP21/W rev.70
- update libretro-common
- Merge NP21/W rev.70 strongly
- Jan 29, 2020
- fix X11 no sound (please check 'sounddrv = SDL' in .config/xnp2kai/xnp2kairc)
- fix for GKD350H
- fix for GCW0
- fix X11 no sound (please check 'sounddrv = SDL' in .config/xnp2kai/xnp2kairc)
- Jan 26, 2020
- mod mouse cursor moving.
- mod mouse cursor moving.
- Jan 15, 2020
- Support again SDL1
- fix bool
- Support again SDL1
- Dec 10, 2019
- Merge NP21/W 0.86 rev.69 (rev.21)
- HAXM
- Merge NP21/W 0.86 rev.69 (rev.21)
- Nov 19, 2019
- fix Android makefile
- merge yoshisuga/tvos THANKS!!
- add libretro/tvOS port
- merge part of swingflip/master THANKS!!
- add xx Clasic port
- merge part of yksoft1/emscripten THANKS VERY MUCH!!
- [SDL2 & libretro]
- fix WAB type value
- mod to apply UTF-8
- fix SUPPORT_LARGE_HDD
- WinNT4/200 IDE Fix
- fix Makefile21
- Jul 14, 2019
- Merge NP21/W 0.86 rev.62-63 (rev.20)
- Merge NP21/W 0.86 rev.62-63 (rev.20)
- Jun 23, 2019
- modify default cfg/BIOS location (np2kai or 'np21kai')
- modify default cfg/BIOS location (np2kai or 'np21kai')
- Jun 21, 2019
- Fix SDL2 build and install
- Merge NP21/W 0.86 rev.57-61
...
- Fix SDL2 build and install
- Jan 24, 2019
- Merge NP21/W 0.86 rev.56
- Merge NP21/W 0.86 rev.56
- Jan 13, 2019
- Merge NP21/W 0.86 rev.55
- Merge NP21/W 0.86 rev.55
- Jan 9, 2019
- Merge NP21/W 0.86 rev.53,54
- Merge NP21/W 0.86 rev.53,54
- Dec 22, 2018
- Merge NP21/W 0.86 rev.52
- Merge NP21/W 0.86 rev.52
- Dec 19, 2018
- Merge NP21/W 0.86 rev.51
- Merge NP21/W 0.86 rev.51
- Dec 16, 2018
- Fix WAB
- Fix WAB
- Dec 14, 2018
- Merge NP21/W 0.86 rev.50
- Merge NP21/W 0.86 rev.50
- Dec 10, 2018 (rev.18)
- Merge NP21/W 0.86 rev.48,49
- Merge NP21/W 0.86 rev.48,49
- Nov 29, 2018
- Add MIDI support
- Add MIDI support
- Nov 25, 2018
- Merge NP21/W 0.86 rev.47
- Merge NP21/W 0.86 rev.47
- Oct 28, 2018
- Merge NP21/W 0.86 rev.46
- Merge NP21/W 0.86 rev.46
- Oct 14, 2018
- Merge NP21/W 0.86 rev.45
- Merge NP21/W 0.86 rev.45
- Sep 27, 2018
- Merge NP21/W 0.86 rev.44
- Merge NP21/W 0.86 rev.44
- Aug 22, 2018
- Apply for libnvl.so
- Merge NP21/W 0.86 rev.43
- Apply for libnvl.so
- Jun 27, 2018 (rev.17)
- Merge NP21/W 0.86 rev.42
- Merge NP21/W 0.86 rev.42
- Jun 19, 2018
- Add Joy2Key manual mode
- Merge NP21/W 0.86 rev.41
- Read GP-IB BIOS.(not work)
- Add Joy2Key manual mode
- Apr 26, 2018
- Add build for GCW Zero
- Add build for GCW Zero
- Apr 2, 2018 (rev.16)
- Add WAB (and a little tune)
- Add WAB (and a little tune)
- Mar 18, 2018
- Merge NP21/W 0.86 rev.40
- Merge NP21/W 0.86 rev.40
- Mar 9, 2018
- [X11] add UI
- [SDL2] add and fix UI
- [X11] add UI
- Mar 4, 2018
- refine keyboard map
- refine keyboard map
- Feb 28, 2018
- [SDL2] config file selectable by command line
- [SDL2] config file selectable by command line
- Feb 20, 2018
- FONT.ROM/FONT.BMP can be loaded lower case.
- FONT.ROM/FONT.BMP can be loaded lower case.
- Feb 19, 2018
- [libretro] Apply disk swap interface
- [libretro] Apply disk swap interface
- Feb 17, 2018
- [X11] Mouse moving is more smopothly (Thanks frank-deng)
- Using *.img *.ima type floppy image (Thanks frank-deng)
- [X11] Mouse moving is more smopothly (Thanks frank-deng)
- Feb 14, 2018
- Fix parse CUE sheet (Thanks frank-deng)
- Fix parse CUE sheet (Thanks frank-deng)
- Feb 6, 2018 (rev.15)
- NP2 namespace change to NP2kai
- [SDL2] Locate of config files is ~/.config/np2kai
- [X11] Locate of config files is ~/.config/xnp2kai
- NP2 namespace change to NP2kai
- Feb 5, 2018
- Merge NP21/W 0.86 rev.38
- Merge NP21/W 0.86 rev.38
- Feb 4, 2018
- Add setting Joy to Mouse cursor speed up rasio
- Add setting Joy to Mouse cursor speed up rasio
- Dec 5, 2017
- Default GDC clock is 2.5MHz
- In Joy2Mousem, mouse speed up with R button
- Default GDC clock is 2.5MHz
- Nov 18, 2017
- Merge NP21/W 0.86 rev.37
- Merge NP21/W 0.86 rev.37
- Oct 26, 2017
- Apply to 1.44MB FDD floppy image file
- Apply to 1.44MB FDD floppy image file
- Oct 21, 2017 (rev.14)
- Merge NP21/W 0.86 rev.36
- Mate-X PCM
- Sound Blaster 16
- OPL3 (MAME codes is GPL licence)
- Auto IDE BIOS
- Mate-X PCM
- Merge NP21/W 0.86 rev.36
- Oct 16, 2017 (rev.13)
- Refix BEEP PCM
- Refix BEEP PCM
- Oct 2, 2017 (rev.13)
- remove CDDA mod
- remove CDDA mod
- Sep 20, 2017
- [SDL2] Use SDL2 mixer
- [SDL2] Use SDL2 mixer
- Sep 16, 2017
- Add RaSCSI hdd image file support
- Add RaSCSI hdd image file support
- Sep 14, 2017 (rev.12)
- [libretro] (newest core binary is auto released by buildbot)
- Fix triple fault case
- [libretro] (newest core binary is auto released by buildbot)
- Sep 7, 2017
- Fix BEEP PCM
- Fix BEEP PCM
- Aug 27, 2017 (rev.11)
- Merge NP21/w rev.35 beta2
- [libretro] state save/load
- Merge NP21/w rev.35 beta2
- Aug 23, 2017 (rev.10)
- Merge NP21/w rev.35 beta1
- Merge NP21/w rev.35 beta1
- Aug 22, 2017
- Merge 私家
Merged- AMD-98 Joyport
- S98V3
- Otomichanx2
- V30 patch
- VAEG fix
- CSM voice
Couldn't merged - LittleOrchestra
- MultimediaOrchestra
- WaveRec
- AMD-98 Joyport
- Merge kaiE
- force ROM to RAM
- CDDA fix
- Floppie fix
- Merge 私家
- Aug 21, 2017
- Apply libretro-super build
- Apply libretro-super build
- Aug 17, 2017 (rev.9)
- Apply fmgen
- Apply fmgen
- Aug 3, 2017 (rev.8)
- Apply HRTIMER
- [libretro] input underscore(_) for western keyboard
- [libretro] Add Joy2Key (thanks Tetsuya79)
- Apply HRTIMER
- Jul 24, 2017 (rev.7)
- Apply network
- Apply network
- Jul 18, 2017 (rev.6)
- Jul 17, 2017
- Apply HOSTDRV
- [libretro] Add Joy2Mouse mode (switch at config menu)
- Apply HOSTDRV
- Jul 4, 2017
- rename to 'kai'
- rename to 'kai'
- Jun 28, 2017
- [libretro] Applicate to libretro port
- [libretro] Applicate to libretro port
- Jun 21, 2017
- [X11] Applicate to X11 port
- [X11] Applicate to X11 port
- Jun 20, 2017 (rev.6 beta)
- [NP21] fix for VGA
- [NP21] fix for VGA
- Jun 19, 2017
- [NP21] fix IA-32
- more memory size available
- [NP21] fix IA-32
- Jun 18, 2017
- more avilable FDD/HDD/CD-ROM image
- [NP21] FPU (fpemul_dosbox.c is GPL licence, others is MIT licence)
- more avilable FDD/HDD/CD-ROM image
- Jun 12, 2017
- COM
- MIDI
- JOYSTICK
- IDE (can't use CD-ROM yet)
- SDL_Keycode -> SDL_Scancode
- Save BMP
- State Save
- COM
- Jun 4, 2017
- [NP21] お察しください
- [NP21] お察しください
- Jun 1, 2017
- First release
- First release
Reference
- Neko Project 2 (ねこープロジェクトII)
http://www.yui.ne.jp/np2 - NP2 for Raspberry Pi
https://github.com/irori/np2pi/wiki/NP2-for-Raspberry-Pi - NP2 addon to RetroPie
http://eagle0wl.hatenadiary.jp/entry/2016/10/07/213830 - NP21/W
https://sites.google.com/site/np21win/home - Neko Project 2 (PC98 emulator) port for libretro/RetroArch
https://github.com/meepingsnesroms/libretro-meowPC98