273

(234 replies, posted in Nintendo Handhelds)

If it didn't say "set to MIDI mode" and hangs instead of returning to the console, it did not work.

274

(234 replies, posted in Nintendo Handhelds)

Here is a new windows binary:

www.nanoloop.com/midi/nlmidi_03_win.zip

I tested this one with windows XP, too. On win XP (at least on the japanese one I have here for testing), the MIDI port does not appear as "nanoloop MIDI" but just as "USB MIDI port". If there are multiple ports on the system, you have to choose it manually.

You can set the throttling with -midi <value> where <value> should be roughly between 20 and 50. Default is 26.

275

(234 replies, posted in Nintendo Handhelds)

I measured the timing of the adaptor's SPI output by simply touching the clock pin with a small jack cable connected to the PC's line in and recording the clock pulses at 44.1 khz. At this resolution, no individual clocks are visible, but each byte gives a spike. At MIDI speed, one byte (the period from one byte's start to the next) should take 44100/3125 = 14.112 samples.

It should be mentioned that the voltage on the clock pin exceeds the standard voltage for line in and may damage the line in. Try it at your own risk.

276

(234 replies, posted in Nintendo Handhelds)

That video is impressive but the music has a very shuffled rhythm which makes it hard to tell if there is some jitter caused by Arduinoboy's buffering.

277

(234 replies, posted in Nintendo Handhelds)

I'll update the utility later today.

I don't see how the adaptor could be the problem. In the default MIDI mode, it's simply an USB-MIDI to SPI-MIDI converter (SPI is the Game Boy serial link format). It does nothing else than forwarding MIDI data received over USB, with adjustable speed. Multiple MIDI bytes can arrive in a single USB packet, the adaptor therefore buffers the MIDI bytes and sends them out at an adjustable rate (=throttling). If this rate is set to the physical MIDI rate, the output should be exactly the same as from an unbuffered (real, non-USB) MIDI-to-SPI converter.

When fed at this rate, mGB misses a lot of notes and runs unstable. When throttling is increased, it gets more stable, but at the cost of increased jitter. This lets me assume that mGB can't handle data at MIDI speed and Arduinoboy does some buffering and throttling, too.

278

(234 replies, posted in Nintendo Handhelds)

I have experimented again with the adaptor, mGB and the following combination:

- GB pocket
- GBA
- Ableton Live lite on OS X

I created patterns in the sequencer for all 4 channels with lots of 1/32 notes. With the adaptor's default throttling, there were no issues as long as

- sync was deactivated,
- not more than one note was playing at once per channel (mGB plays only one note anyway),
- no continuous controller data were sent (edit pitch bend, volume etc only with the pencil tool).

I think the problem lies within mGB, it is simply not fast enough to process a full MIDI stream. When the throttling is too fast, mGB misses notes, when it's too slow, there will be jitter. You can only try to optimise the MIDI output as described above and then find the fastest rate with the throttling parameter at which mGB works reliably for you. I thought I had found this optimum with the preset throttling rate, but it turned out that it's slightly too fast for some setups.

I assume that Arduinoboy adds throttling, too. I asked trash80 about this and he said he doesn't know for sure but would try to measure the output.

Maybe someone can re-write the mGB code for MIDI processing in ASM. I'll also have a look at pushpin again, which was designed to work with real MIDI speed and should have no problems with the adaptor's input.

This is a bug that appears when 1/x tempo is used with the new pause / step function. I'll fix it with the next update. Workaround: Don't use the new function or use it only with regular tempo-

It is still recommended to ge the 2.5.4 update because a number of issues of previous 2.5.x versions (including the "regular" version) have been fixed.

280

(234 replies, posted in Nintendo Handhelds)

Syncing in MIDI mode is not recommended. If there is really nothing else than a clock signal, it may work for LSDj, but most likely not with nanoloop. Both take *any* signal for a clock. If a START message is sent, too, for example, the Game Boy is already out of sync. Plus you never know if the host app really just sends sync, there can always be some NOP SysEx bytes for testing for example.
I'll have a look at the nlmidi software later today. It should be possible to port it to any platform that supports the MIDI device.

281

(234 replies, posted in Nintendo Handhelds)

I am reading this thread but I am on holiday till thursday.

282

(234 replies, posted in Nintendo Handhelds)

So when you type ./nlmidi02 you get this nlcontrol output?

283

(234 replies, posted in Nintendo Handhelds)

akira^8GB wrote:

The NLMIDI02 app refuses to work.

But the 01 version works? Just re-downloaded and tried 02 and it works on my mac.


akira^8GB wrote:

mGB runs really bad and I don't know if it is this throttle or not.

I did all testing on a macbook with the evaluation version of Ableton Live. On DMG, mGB occasionally missed notes, but really only occasionally, like every couple of minutes, while on GBP it always worked fine. As I understand you, you're talking about the original nlmidi01 - which has no throttling. It's probably the lack of throttling that causes mGB to miss notes and get out of sync. nlmidi02 with throttling should fix this.

284

(234 replies, posted in Nintendo Handhelds)

Maxd wrote:

Oh my gosh. I am buying three of these. Three, Oliver.

Hm. I don't make much profit with these. Maybe I should re-think the price, now that they have this extended functionality.

akira^8GB wrote:

By the way, the OS X NLMIDI02 archive is corrupted.

Re-uploaded it.

285

(234 replies, posted in Nintendo Handhelds)

Yes, I'll make it open source, just need to clean up a little before release.

286

(234 replies, posted in Nintendo Handhelds)

You can always set it back to MIDI / mGB mode, no need to "keep" it in that mode.

287

(234 replies, posted in Nintendo Handhelds)

http://www.nanoloop.com/midi/nlmidi_02_osx.zip

This version has no extra option yet but just sets the throttling to 50.

288

(234 replies, posted in Nintendo Handhelds)

I'll make one for OS X today, windows may take a few days.