CUzeBox - The new official Uzebox emulator

The Uzebox now have a fully functional emulator! Download and discuss it here.
User avatar
Jubatian
Posts: 1499
Joined: Thu Oct 01, 2015 9:44 pm
Location: Hungary
Contact:

Re: CUzeBox - The new official Uzebox emulator

Post by Jubatian » Mon Aug 31, 2020 10:36 pm

Artcfox wrote:
Sun Aug 30, 2020 7:34 pm
Can you package it with the latest SDL libraries? Without them the USB game controllers don't work out of the box on Windows.
Done, replaced the files on the host!

User avatar
danboid
Posts: 157
Joined: Sun Jun 14, 2020 12:14 am

Re: CUzeBox - The new official Uzebox emulator

Post by danboid » Sat Mar 06, 2021 2:39 pm

Has adding (JACK) MIDI input support to cuzebox been considered? Having MIDI IN support combined with Uzesynth would make writing chiptunes for the UB notably easier.

I've tried Uzebox patch studio but that lacks MIDI support and doesn't seem to be very accurate. I'm presuming cuzebox offer more accurate sound reproduction than patch studio.

https://github.com/Jubatian/cuzebox/issues/5

User avatar
D3thAdd3r
Posts: 2471
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: CUzeBox - The new official Uzebox emulator

Post by D3thAdd3r » Sun Mar 07, 2021 6:01 pm

The current MIDI in code in the kernel has issues with losing bytes. Because the instrument sending the serial stream has no concept of Uzebox rendering and interrupts, it can send multiple bytes before the code gets a chance to intervene. I think the current MIDI in code should be removed from the kernel, for a MIDI aware ROM to handle; Or update MIDI in to use the newer method.

The new UART code(primarily intended for ESP8266) does not have this missing bytes issue. It checks for new UART data every hsync, and as long as data doesn't come in faster than 1 byte per scanline, and it gets processed in time to avoid the buffer getting filled, you don't lose any data. If someone had the interest to get UzeSynth doing that, it would be ideal. Then it would just be a matter of sending serial data to CUzeBox.

I tried to hack serial into Uzem, then later dabbled with CUzeBox. It is not trivial to do it correctly/fast, but from an ESP8266 angle, I'd almost be interested to try again. If I did so, I'd strongly consider a command line option to specify the name of a serial device to open. This would allow you to use a real ESP8266, or this should easily be adaptable to MIDI, etc.

Reason I lean towards this, is that I developed a semi-working ESP8266 core which more or less simulates the AT command set, used it to connect to servers, etc. One thing I knew it would never do, is actually emulate the program running on the ESP8266(which stock, is a simple AT interpreter easy to simulate by string parsing, some state, and sockets code). Using an actual serial port in CUzeBox would allow a plethora of devices that otherwise would not be worth taking the time to implement.

Seriously I might take a stab at what I just described. At least in Linux, I think you can redirect any kind of input to serial somehow.

User avatar
danboid
Posts: 157
Joined: Sun Jun 14, 2020 12:14 am

Re: CUzeBox - The new official Uzebox emulator

Post by danboid » Sun Mar 07, 2021 6:16 pm

I'm not sure how what you discussed would help me write UB chiptunes?

I get that you say the UB MIDI code isn't reliable or fully working and that you may be able to add serial support to cuzebox and uzesynth but then how would I get my MIDI data from REAPER, qtractor or whatever to the serial port of cuzebox? Would a JACK MIDI to serial MIDI converter app be required to complete this theoretical chain?


User avatar
D3thAdd3r
Posts: 2471
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: CUzeBox - The new official Uzebox emulator

Post by D3thAdd3r » Sun Mar 07, 2021 6:33 pm

For the bridge between a real MIDI instrument and a serial port, we could have this. Otherwise there would be simple solutions.

If you just want to use MIDI software on a PC to send to CUzeBox, maybe this

Now as far as usefulness, I mean just to fix the current notion of MIDI in on Uzebox side to work right. Then purely psychological, to equate the work of UART emulation with more than just the addition of MIDI in. Networked games is a bit more exciting in my mind, but MIDI in also cool.

Those tools should probably work for hardware or ALSA, but either way I am quite sure there is a way to do it is not. Just setting up a different tool chain.

User avatar
D3thAdd3r
Posts: 2471
Joined: Wed Apr 29, 2009 10:00 am
Location: Minneapolis, United States

Re: CUzeBox - The new official Uzebox emulator

Post by D3thAdd3r » Sun Mar 07, 2021 6:33 pm

Haha yes both our quick searches yielded the same results

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests