コード例 #1
0
        private static int TranslateMidiProgramChangeMapping(
            IEnumerable <IMidiMessage> midiMessages,
            IXLWorksheet sheet,
            int row,
            int startColumnIndex)
        {
            var t = new MidiMessageTranslator(startColumnIndex);

            return(t.Translate(
                       midiMessages,
                       sheet,
                       SpreadsheetConstants.RowDataHeader,
                       row,
                       SpreadsheetConstants.HeaderPcChannel,
                       SpreadsheetConstants.HeaderPcData,
                       string.Empty,
                       TranslateMidiMessageType.Data1 | TranslateMidiMessageType.Data2
                       ));
        }
コード例 #2
0
        private static int TranslateMidiControlChangeMapping(
            IEnumerable <IMidiMessage> midiMessages,
            IXLWorksheet sheet,
            int row,
            int startColumnIndex)
        {
            var t = new MidiMessageTranslator(startColumnIndex);

            return(t.Translate(
                       midiMessages,
                       sheet,
                       SpreadsheetConstants.RowDataHeader,
                       row,
                       string.Empty,
                       SpreadsheetConstants.HeaderMidiCc,
                       SpreadsheetConstants.HeaderMidiCcValue,
                       TranslateMidiMessageType.Data2 | TranslateMidiMessageType.Data3
                       ));
        }