Shop OBEX P1 Docs P2 Docs Learn Events
Sn76489an programmable sound generator questions/general propeller - Page 2 — Parallax Forums

Sn76489an programmable sound generator questions/general propeller

2»

Comments

  • embed68kembed68k Posts: 19
    edited 2015-03-19 02:18
    in case anybody was wondering I am still waiting on parts to trickle in from china. The breadboard method is proving quite messy and making it impossible to see what is going on. So I'll have to wait for the wirewrap stuff to come in. But in the mean time can anybody help me out with the math for the bytes from the long returned from the MidiIn.spin object? I can get the desired bytes if I use Simple_Numbers or the pst.hex but how would I convert that to an array of single bytes?

    like
    byte values[4]


    pst.hex(midi.evt,10) gives me the 4 byte value but not in $01 $02 $03 $04 format that needs to be value[0] := $01 value[1] := $02 ,etc
  • kwinnkwinn Posts: 8,697
    edited 2015-03-19 07:21
    See the Propeller manual v1.2 starting on page 128, to page 133 for a description.
Sign In or Register to comment.