Thursday, 16 January 2014

Milestag UMT audio

Visit Tagbits to see the full range of tagger products described in this blog.

I'm being asked to do several Milestag projects that use my Tagbits UMT boards, but they need audio resources that are not supported by the standard UMT audio tool.

Jim at Lasertagparts kindly supplies his sample programming utility and audio samples without licence.

However, it only supports 15 sounds, and none are allowed to be longer than the standard samples that Jim provides.

I did a project that shoehorned alternative samples into the lengths available here. But it was a pain.

So I finally got around to writing a utility that allows me to point the PC at a directory with some .WAV files in it.

It reads them all in and works out the lengths, then allocates these to 'sectors' within the ISD1790 playback chip.

This device has analogue memory, with each sector having a timespan of 0.125 seconds.

My program loads the samples up, allocates them sectors, programs them into the the UMT board ISD1790 (combined with custom PIC software to do this), plays the sample from the PC, plays the sample from the UMT board and finally generates a 'C' structure with all the correct addresses in.

Here is a screenshot of the program:

And here is the 'C' output it produces:

typedef enum
} ESoundId;

#define LOWBYTE(value) (value & 0xff)
#define HIGHBYTE(value) (value / 0x100)

typedef struct
byte byStartLowByte;
byte byStartHighByte;
byte byEndLowByte;
byte byEndHighByte;

SSound sounds[] =

It will not work with Jim's standard Milestag UMT software, and I initially thought it could be patched into the existing Milestag code by putting in the new ISD addresses, however, a quick look at a disassembly of Jim's code shows that this will not be possible. However, it could easily be used with my open source UMT code on Github.

No comments: