Hi Brad,
good luck with the project.

Here's the problem.
Your pr305 is maybe 8 years old. That puts it around the same era as the kn2000.

Each generation of ensemble, piano and keyboard will have different formats as the features change.

Normally the digital ensembles, pianos and keyboards will not load each others formats generally speaking, but it is possible if you change the hex identifier codes in order to get all the different presets from different instruments to be usable in your instrument, which I have done for years. It is simpler if you ignore sounds and panel memories, but for style from midi we only need composer anyway, so this is good.

If you manage to produce a program for your 305 format, it may be pretty easy to just identify it as a 2000 format, which enables me to load it into my kn6500.

However there could be problems with other ensembles, keyboards and pianos of differing generations, such that the format you create in is not loadable in many other machines. We could use EMC works software to do this, but this was developed for keyboards, so results in trying to re-identify for pianos and ensembles may be hit and miss.

So the first problem is converting to a composer format that is usable to a wide range of technics users in terms of tracks and measure lengths, because the maximum available will vary with different models.

The second problem is that 6500/903 composer format is now 8 track rather than 5. The new formats are also compressed with an algorithm that has not been cracked yet. So the last uncompressed format available with direct hex editing access is kn5000 format, which was still 5 track.

However if you can map drums, bass, and 3 accompaniment, that should be enough to get a good result out of a midi. We have been doing it for years with the EMC software, which has a midi to composer module which works quite well. A cut down version of the same module is available on floppy for direct use in the 5000 and 6000 generations of keyboards.

Also the keyboards now have sequencer to composer copy functions. If you edit the measures you are interested in to C major (or a constant chord) in Sonar, you get your composer quite easily. Even easier to get all the styles from Band in a Box and other arranger type programs.

If you send me a measure of midi data in C major, I can send you the composer in kn2000 format, you then see if it loads into your piano with a model identifier hex change.

If you then create a series of 1 measure midis in C major, we may be able to get them converted and you can map the byte changes for every drum, note and note length? This should save some work for you at least. But there are many more variables to get a result that will be worthwhile musically?