コード例 #1
0
ファイル: HelmSequencer.cs プロジェクト: msp/virtual-gallery
        void DoUpdate()
        {
            UpdatePosition();

            if (length != currentLength)
            {
                if (reference != IntPtr.Zero)
                {
                    Native.HelmAllNotesOff(currentChannel);
                    Native.ChangeSequencerLength(reference, length);
                }
                currentLength = length;
            }
            if (channel != currentChannel)
            {
                if (reference != IntPtr.Zero)
                {
                    Native.HelmAllNotesOff(currentChannel);
                    Native.ChangeSequencerChannel(reference, channel);
                }
                currentChannel = channel;
            }
            if (loop != currentLoop)
            {
                if (reference != IntPtr.Zero)
                {
                    Native.LoopSequencer(reference, loop);
                }
                currentLoop = loop;
            }
        }
コード例 #2
0
 /// <summary>
 /// Triggers note off events for all notes currently on in the referenced Helm instance(s).
 /// </summary>
 public void AllNotesOff()
 {
     Native.HelmAllNotesOff(channel);
     pressedNotes.Clear();
     pressedFrequencies.Clear();
 }
コード例 #3
0
ファイル: HelmSequencer.cs プロジェクト: msp/virtual-gallery
 /// <summary>
 /// Triggers note off events for all notes currently on in the referenced Helm instance(s).
 /// </summary>
 public override void AllNotesOff()
 {
     Native.HelmAllNotesOff(channel);
     base.AllNotesOff();
 }
コード例 #4
0
ファイル: HelmSynthUI.cs プロジェクト: msp/virtual-gallery
 public void AllNotesOff()
 {
     Native.HelmAllNotesOff(channel);
 }