Midi input, using hserin?


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Posts
    92


    Did you find this post helpful? Yes | No

    Default

    Yes, that's what I needed. Thanks.

    What is the "wait", a variable?

    When I try to compile it in micro code studio I get an error for

    HSerIn [wait($90), note, Velocity]

    it says "expected ']'.

    Thanks,
    Tony
    Last edited by TonyA; - 14th July 2006 at 20:46.

  2. #2
    Join Date
    Apr 2006
    Posts
    92


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by TonyA
    Yes, that's what I needed. Thanks.

    What is the "wait", a variable?

    When I try to compile it in micro code studio I get an error for

    HSerIn [wait($90), note, Velocity]

    it says "expected ']'.

    Thanks,
    Tony
    Hi Sorry, that works. I had to fix my code.

  3. #3
    Join Date
    Jul 2006
    Location
    USA
    Posts
    26


    Did you find this post helpful? Yes | No

    Default

    I'm sure the hserin will work, but I like to read the port directly. Here is a
    program that I wrote 3 years ago for a 909 kick drum copy that I built. It worked
    great. It only responded to one MIDI channel and one note, but I think you will
    be able to see what's happening and figure out how to implement your design.
    Attached Files Attached Files

  4. #4
    Join Date
    Apr 2006
    Posts
    92


    Did you find this post helpful? Yes | No

    Default

    That's cool, thank you. I'll let you know how it works out. Thanks again.

    Tony

  5. #5
    Join Date
    Feb 2006
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Hserin

    Did you ever got this to work?

  6. #6
    Join Date
    Apr 2006
    Posts
    92


    Did you find this post helpful? Yes | No

    Default

    Yeah, this should work. I don't think I ever built the circuit though. I was thinking about making a midi receiver but I never did.

    Let us know if you try it.

  7. #7
    Join Date
    Feb 2006
    Posts
    3


    Did you find this post helpful? Yes | No

    Default ok

    Well, I'm working on a MIDID receiver based on HSERIN but not sure of a few things.

    1. MIDI seems to be active low so when no data= +5V. Data = 0V

    So I'm not sure if USART (16F88) if compatible or do I have to invert polarity.

    2. MIDI seems to come from the legacy of Motorola based arquitectured (Big endian) Pics are Little endian ( I think this is true) so ata has to be inverted.


    So any info would help!

Similar Threads

  1. Sony LanC Program
    By l_gaminde in forum Code Examples
    Replies: 2
    Last Post: - 25th September 2009, 18:51
  2. How to HSERIN and MIDI code?
    By francolok in forum Serial
    Replies: 1
    Last Post: - 18th December 2008, 16:59
  3. Midi, Interrupts and Pic better than SX28?
    By Lajko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th September 2008, 00:26
  4. Timing input pulses and re-outputting them
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2007, 01:50
  5. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 22:19

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts