Esempio n. 1
0
        static public string MetaName(MetaMsg32 id)
        {
            switch (id)
            {
            case MetaMsg32.EndOfTrack: return(gen.snd.Midi.Common.ChannelType.EndTrack);

            case MetaMsg32.SequenceNo: return(gen.snd.Midi.Common.ChannelType.SequenceNumber);

            case MetaMsg32.Text: return(gen.snd.Midi.Common.ChannelType.TextEvent);

            case MetaMsg32.Copyright: return(gen.snd.Midi.Common.ChannelType.Copyright);

            case MetaMsg32.SequenceName: return(gen.snd.Midi.Common.ChannelType.SequenceName);

            case MetaMsg32.InstrumentName: return(gen.snd.Midi.Common.ChannelType.InstrumentName);

            case MetaMsg32.Lyric: return(gen.snd.Midi.Common.ChannelType.LyricMarker);

            case MetaMsg32.Marker: return(gen.snd.Midi.Common.ChannelType.Marker);

            case MetaMsg32.Cue: return(gen.snd.Midi.Common.ChannelType.CuePoint);

            case MetaMsg32.Chanel: return(gen.snd.Midi.Common.ChannelType.Channel);

            case MetaMsg32.Port: return(gen.snd.Midi.Common.ChannelType.Port);

            case MetaMsg32.Tempo: return(gen.snd.Midi.Common.ChannelType.Tempo);

            case MetaMsg32.SMPTE: return(gen.snd.Midi.Common.ChannelType.SMPTE);

            case MetaMsg32.TimeSignature: return(gen.snd.Midi.Common.ChannelType.TimeSignature);

            case MetaMsg32.KeySignature: return(gen.snd.Midi.Common.ChannelType.KeySignature);

            case MetaMsg32.SystemExclusive: return(gen.snd.Midi.Common.ChannelType.SYSEX);

            case MetaMsg32.SystemSpecific: return(gen.snd.Midi.Common.ChannelType.SYSSPF);

            //case MetaMsg32.SystemExclusive: return gen.snd.Midi.Common.ChannelType.SYSEX;
            default: return("UNKNOWN MESSAGE");
            }
        }
Esempio n. 2
0
 public static string MetaName(MetaMsg32 id)
 {
     switch (id)
     {
             case MetaMsg32.EndOfTrack: return gen.snd.Midi.Common.ChannelType.EndTrack;
             case MetaMsg32.SequenceNo: return gen.snd.Midi.Common.ChannelType.SequenceNumber;
             case MetaMsg32.Text: return gen.snd.Midi.Common.ChannelType.TextEvent;
             case MetaMsg32.Copyright: return gen.snd.Midi.Common.ChannelType.Copyright;
             case MetaMsg32.SequenceName: return gen.snd.Midi.Common.ChannelType.SequenceName;
             case MetaMsg32.InstrumentName: return gen.snd.Midi.Common.ChannelType.InstrumentName;
             case MetaMsg32.Lyric: return gen.snd.Midi.Common.ChannelType.LyricMarker;
             case MetaMsg32.Marker: return gen.snd.Midi.Common.ChannelType.Marker;
             case MetaMsg32.Cue: return gen.snd.Midi.Common.ChannelType.CuePoint;
             case MetaMsg32.Chanel: return gen.snd.Midi.Common.ChannelType.Channel;
             case MetaMsg32.Port: return gen.snd.Midi.Common.ChannelType.Port;
             case MetaMsg32.Tempo: return gen.snd.Midi.Common.ChannelType.Tempo;
             case MetaMsg32.SMPTE: return gen.snd.Midi.Common.ChannelType.SMPTE;
             case MetaMsg32.TimeSignature: return gen.snd.Midi.Common.ChannelType.TimeSignature;
             case MetaMsg32.KeySignature: return gen.snd.Midi.Common.ChannelType.KeySignature;
             case MetaMsg32.SystemExclusive: return gen.snd.Midi.Common.ChannelType.SYSEX;
             case MetaMsg32.SystemSpecific: return gen.snd.Midi.Common.ChannelType.SYSSPF;
             //case MetaMsg32.SystemExclusive: return gen.snd.Midi.Common.ChannelType.SYSEX;
             default: return "UNKNOWN MESSAGE";
     }
 }
Esempio n. 3
0
 /// our format parameter requires a tag: $(Meta) where any value parameter would be
 public static string MetaNameFormat(MetaMsg32 id, string format, params object[] values)
 {
     return string.Format(format,values)
         .Replace("$(Meta)",MetaName(id));
 }
Esempio n. 4
0
 /// our format parameter requires a tag: $(Meta) where any value parameter would be
 static public string MetaNameFormat(MetaMsg32 id, string format, params object[] values)
 {
     return(string.Format(format, values)
            .Replace("$(Meta)", MetaName(id)));
 }