[Coco] Re; SSC & MIDI
Bill Pierce
ooogalapasooo at aol.com
Mon Jun 23 12:03:22 EDT 2014
Jason, I'll be happy to help any way I can. One thing to remember in sending to the dw4 out in HDBDOS, ALWAYS sent the cmd/port# byte before EVERY byte you send. This applies to ALL v-port sends... If you don't dw4 will not know what to do with the byte and most likely return an "unknown opcode" error in the console window.
The format for the byte is $80+port# (0-14). $80 = Fastwrite (from the dw4 spec). The byte before each MIDI byte would $8E for Fastwrite + Port 14.
Port 14 is the only port that will recognize MIDI data.
Bill Pierce
"Today is a good day... I woke up" - Ritchie Havens
My Music from the Tandy/Radio Shack Color Computer 2 & 3
https://sites.google.com/site/dabarnstudio/
Co-Webmaster of The TRS-80 Color Computer Archive
http://www.colorcomputerarchive.com/
Co-Contributor, Co-Editor for CocoPedia
http://www.cocopedia.com/wiki/index.php/Main_Page
E-Mail: ooogalapasooo at aol.com
-----Original Message-----
From: jmlaw <jmlaw at iprimus.com.au>
To: coco <coco at maltedmedia.com>
Sent: Mon, Jun 23, 2014 4:59 am
Subject: [Coco] Re; SSC & MIDI
Hey Bill,
Bill Pierce wrote:
>Are you using the Lyra file format or the standard MIDI format for your
>song file storage?
>The Lyra format is a propriety format and has to be "interpreted" into midi
>code before playback, which if you're using that, you've already got some
>sort of engine for that.
> But, the raw standard Midi format can be sent straight to the dw4 MIDI
> port without any translation therefore saving tons of processing time (and
> MUCH shorter code).
<snip>
Nah don’t worry not doing anything with the Lyra file format other than save
my test score to disk.
I just used it to generate the raw MIDI data from the SMB notes I moused in
to see if I could at least get DW4 to play the raw MIDI data if I send it
from my own code. As in, if yes then at least I got the channel open and I'm
not getting errors so then try the next step and generate the codes myself,
now that I know it kinda, sorta works :)
I still got a long way to go and lots to learn, I'll finish the SSC stuff
then go back to it. But if I get stuck again, I'll send you an email if
that's ok?
Jason
--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list