Loading ...
Sorry, an error occurred while loading the content.

15165Re: [cosmacelf] Re: Binary to WAV converter

Expand Messages
  • Egan Ford
    Jun 25, 2014
    • 0 Attachment
      I found a bug, redownload from http://asciiexpress.net/files/VIP version 0.2.


      On Wed, Jun 25, 2014 at 2:02 AM, Egan Ford <datajerk@...> wrote:
      Try the standalone version in http://asciiexpress.net/files/VIP

      e.g.:

      c2vip binary output.wav


      On Wed, Jun 25, 2014 at 1:03 AM, Egan Ford <datajerk@...> wrote:
      Quick and dirty hack:


      There are Windows XP (c2t.exe) and Mac Mavericks (c2t) CLI binaries plus the source.  To compile from the source you'll need c2t.zip from the parent dir.  Just replace c2t.c with the VIP version.

      Usage:

      c2t -3 binary outputname.wav

      outputname must have .wav, .wave, .aiff, or .aif ext.

      Example Mac session:

      $ ./c2t -3 a.bin a.wav

      Reading a.bin, type binary, segment 1, start: 0x0000, length: 3

      Writing a.wav as COSMAC VIP formatted wave.


      Let me know if this works.

      Cheers,

      Egan

      P.S. do not let your mp3 player or whatever convert the wav/aif to mp3.


      On Tue, Jun 24, 2014 at 10:22 PM, joshbensadon@... [cosmacelf] <cosmacelf@yahoogroups.com> wrote:
       

      Hi Egan,

      The format is very simple....

      Logic 0 is 1 cycle of 2Khz
      Logic 1 is 1 cycle of 800hz.

      The leader is about 4 seconds of 0's  (kind of over kill)
      Then the data bytes are sent one after another, no address information.
      A data byte starts with a "1" then the 8 bits (lsb first) followed by a parity bit.
      10 bits per byte, each byte frame is consecutive..
      The parity bit is such that the number of data bits will be even. example.
      0x0F = 1 1 1 1 1 0 0 0 0 0
      0x10 = 1 0 0 0 0 1 0 0 0 1
      0xFF = 1 1 1 1 1 1 1 1 1 0
      0x00 =  1 0 0 0 0 0 0 0 0 0

      Cheers,
      Josh




    • Show all 10 messages in this topic