Exemplo n.º 1
0
        public DebugMessage(byte[] rawData)
        {
            var extractor = new RawMessageExtractor(rawData);

            extractor.Get(ref text, TextLength);
            extractor.Finish();
        }
Exemplo n.º 2
0
        public ConfigurationStatusMessage(byte[] rawData)
        {
            var extractor = new RawMessageExtractor(rawData);

            extractor.Get(ref firstNote);
            extractor.Get(ref velocity);
            extractor.Get(ref debouncingTime);
            extractor.Get(ref pedalPins, PinCount);
            extractor.Finish();
        }
Exemplo n.º 3
0
        public GeneralStatusMessage(byte[] rawData)
        {
            var extractor = new RawMessageExtractor(rawData);

            extractor.Get(ref configurationOk);
            extractor.Get(ref pressedPedals);
            extractor.Get(ref playedNotes);
            extractor.Get(ref numberOfToggledPedals);
            extractor.Get(ref numberOfToggledNotes);
            extractor.Get(ref numberOfReceivedBytes);
            extractor.Get(ref numberOfDiscardedBytes);
            extractor.Finish();
        }