Example #1
0
        public MMLChannel(int channel,
                          GetNoteTimeDelegate noteTimeFunction,
                          ChangeTempoDelegate tempoFunction,
                          ChangeDutyDelegate dutyFunction,
                          SendEventDelegate eventFunction,
                          ChangeNoteStyleDelegate noteStyleFunction,
                          ChangeEnvelopeDelegate changeEnvelopeFunction)
        {
            channelID = channel;

            GetNoteTime     = noteTimeFunction;
            ChangeTempo     = tempoFunction;
            SendEvent       = eventFunction;
            ChangeDuty      = dutyFunction;
            ChangeNoteStyle = noteStyleFunction;
            ChangeEnvelope  = changeEnvelopeFunction;

            mStack = new MMLStack();

            ResetChannelDefaults();
        }
Example #2
0
        public MMLChannel(int channel,
			GetNoteTimeDelegate noteTimeFunction,
			ChangeTempoDelegate tempoFunction,
			ChangeDutyDelegate dutyFunction,
			SendEventDelegate eventFunction,
			ChangeNoteStyleDelegate noteStyleFunction,
			ChangeEnvelopeDelegate changeEnvelopeFunction)
        {
            this.channelID = channel;

            this.GetNoteTime = noteTimeFunction;
            this.ChangeTempo = tempoFunction;
            this.SendEvent = eventFunction;
            this.ChangeDuty = dutyFunction;
            this.ChangeNoteStyle = noteStyleFunction;
            this.ChangeEnvelope = changeEnvelopeFunction;

            this.mStack = new MMLStack();

            this.ResetChannelDefaults();
        }