Unfortunately, the MIDI spec does not define any way to use multiple chunks
while allowing for proper playback of the original data.
There are 3 formats (aka "types") for MIDI files defined in the MIDI spec.
Unfortunately, none of them allow for multiple chunks to played back
sequentially. Here, the term "chunk" refers to a specific datastructure with
the MIDI format (and not just a generic or random group of bytes). Format 0
only has 1 chunk. Format 1 has multiple chunks that are played back
simultaneously so it doesn't work either. Format 2 has multiple chunks but it
is rarely used and each chunk is for alternative arrangements. Thus, none of
these formats are supported.
-Chris
________________________________
From: Brüns, Stefan <stefan.bru...@rwth-aachen.de>
Sent: Tuesday, October 11, 2016 7:13 AM
To: sigrok-devel@lists.sourceforge.net
Subject: Re: [sigrok-devel] Outputting files from Protocol Decoders
On Dienstag, 11. Oktober 2016 06:03:55 CEST Chris Dreher wrote:
> Thanks, I really, really do appreciate the answers.
>
>
> It seems the streaming design of sigrok eliminates a lot of file formats.
> Namely, most file formats with a size field that precedes a large variable
> amount of data can not be supported in sigrok. This includes file formats
> that are 99% stream-oriented. For example, MIDI files are 99% compatible
> with sigrok's stream design other than a single 32-bit size field in the
> track chunk. For the MIDI protocol, there are not good alternatives to
> saving data other than in a MIDI file. It is unfortunate that such files
> currently can not be supported by sigrok.
MIDI can be supported. There is nothing that stops you from using multiple
chunks. If you have a complete event, output it as a chunk. Although this
makes the file larger, midi files are comparatively small.
Kind regards,
Stefan
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel
sigrok-devel Info Page -
SourceForge<https://lists.sourceforge.net/lists/listinfo/sigrok-devel>
lists.sourceforge.net
To see the collection of prior postings to the list, visit the sigrok-devel
Archives. Using sigrok-devel: To post a message to all the list members ...
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel