Midi parser

Discussion in 'comp.music.midi' started by Vaibhav Bhandari, Jun 19, 2003.

  1. I was looking for a yacc/bison style midi parser. Any clues??

    regards,
    vaibhav
    --
    +------------------------------------+------------------------+
    |Vaibhav Bhandari, Graduate Student | Home: 401,Spring Street|
    |Computer Science Department | Santa Cruz CA 95060 |
    |UC Santa Cruz CA 95065 | Tel(h):1-831-423-7381 |
    |http://www.cse.ucsc.edu/~vaibhav | vaibhav@cse.ucsc.edu |
    |Tel(0): 1-831-459-1720 | Fax: 1-831-459-4829 |
    +------------------------------------+------------------------+
    | Tamsoma Jyotirgmaya. Knowledge is Power! |
    +-------------------------------------------------------------+
  2. Mike

    Mike Guest

  3. Note Jam

    Note Jam Guest

    Don't know exactly what your asking, but maybe midi tools has what you need.
    Its at AOL, go to download center.

    Its an archive of about 20 midi tools, like midi scanners, etc.
  4. Hi Vaibhav,

    Here's a link to the MIDI BNF File (Backus Naur Formal) descriptor.
    http://www.josef-k.net/mim/midibnf.html

    It's not Yacc/Bison, but with this you should be able to make one quite
    easily since YACC/Bison are based on the BNF form.

    Hope this helps.

    Stéphane Richard
    Senior Software and Technology Supervisor
    http://www.totalweb-inc.com
    For all your hosting and related needs


    "Vaibhav Bhandari" <vaibhav@cse.ucsc.edu> wrote in message
    news:3EF15280.4050507@cse.ucsc.edu...
    > I was looking for a yacc/bison style midi parser. Any clues??
    >
    > regards,
    > vaibhav
    > --
    > +------------------------------------+------------------------+
    > |Vaibhav Bhandari, Graduate Student | Home: 401,Spring Street|
    > |Computer Science Department | Santa Cruz CA 95060 |
    > |UC Santa Cruz CA 95065 | Tel(h):1-831-423-7381 |
    > |http://www.cse.ucsc.edu/~vaibhav | vaibhav@cse.ucsc.edu |
    > |Tel(0): 1-831-459-1720 | Fax: 1-831-459-4829 |
    > +------------------------------------+------------------------+
    > | Tamsoma Jyotirgmaya. Knowledge is Power! |
    > +-------------------------------------------------------------+
    >
  5. dvd666

    dvd666 New Member

    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    one question (newbie):

    What exactly is a midi parser?

    thx
  6. dvd666 wrote:
    > What exactly is a midi parser?


    MIDI data is a series of numbers and before playing or editing these
    numbers must be interpreted correctly (e.g. distinguish between pause
    and commands, collecting parameters for each command). The MIDI parser
    is a part of the MIDI software that knows the MIDI data format and
    interpretes the meaning of the numbers. The parser is used for reading
    MIDI files and also for incoming MIDI data from MIDI cable.

    Compare with a language: a parser analyses grammar of a sentence and
    meaning of the words.
    Similiar is done for "language" MIDI.
  7. >>>>> "Günter" == Günter Nagler <gnagler@iicm.tu-graz.ac.at> writes:

    Günter> dvd666 wrote:
    >> What exactly is a midi parser?


    Günter> MIDI data is a series of numbers and before playing or
    Günter> editing these numbers must be interpreted correctly
    Günter> (e.g. distinguish between pause and commands, collecting
    Günter> parameters for each command). The MIDI parser is a part of
    Günter> the MIDI software that knows the MIDI data format and
    Günter> interpretes the meaning of the numbers. The parser is used
    Günter> for reading MIDI files and also for incoming MIDI data
    Günter> from MIDI cable.

    Günter> Compare with a language: a parser analyses grammar of a
    Günter> sentence and meaning of the words. Similiar is done for
    Günter> "language" MIDI.

    In the case of Midi it is not a real parser that is required, just a
    finite automaton. Parsing usually involves recursion, where the
    parser needs to call itself for a part of it's input. A Midi parser
    is just a regular expression matcher, which corresponds to the lexing
    and not the parsing stage of languages.
    Immanuel
  8. "Immanuel Litzroth" <immanuell@enfocus.be> wrote in message
    news:m2wuf0eym4.fsf@enfocus.be
    >>>>>> "Günter" == Günter Nagler
    >>>>>> <gnagler@iicm.tu-graz.ac.at> writes:

    >
    > Günter> dvd666 wrote:
    > >> What exactly is a midi parser?

    >
    > Günter> MIDI data is a series of numbers and before
    > playing or Günter> editing these numbers must be
    > interpreted correctly Günter> (e.g. distinguish
    > between pause and commands, collecting Günter>
    > parameters for each command). The MIDI parser is a
    > part of Günter> the MIDI software that knows the MIDI
    > data format and Günter> interpretes the meaning of
    > the numbers. The parser is used Günter> for reading
    > MIDI files and also for incoming MIDI data Günter> from
    > MIDI cable.
    >
    > Günter> Compare with a language: a parser analyses
    > grammar of a Günter> sentence and meaning of the
    > words. Similiar is done for Günter> "language" MIDI.
    >
    > In the case of Midi it is not a real parser that is
    > required, just a finite automaton. Parsing usually
    > involves recursion, where the parser needs to call itself
    > for a part of it's input. A Midi parser is just a regular
    > expression matcher, which corresponds to the lexing and
    > not the parsing stage of languages.
    > Immanuel


    In any case, if you want small code and tight integration with C++,
    you might be interested to check out the Boost.Spirit parser at:

    http://spirit.sf.net or at http://www.boost.org

    Cheers,
    --
    Joel de Guzman
    joel at boost-consulting.com
    http://www.boost-consulting.com
    http://spirit.sf.net

Share This Page