Click here to Skip to main content
16,011,374 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi

How can I get a value or ID of the piano that follow the C# MIDI Toolkit Example?

I tryed get e as a value in a label?

What I have tried:

<pre>   protected override void OnKeyDown(KeyEventArgs e)
        {
            pianoControl1.PressPianoKey(e.KeyCode);

            base.OnKeyDown(e);
            label1.Text = pianoControl1.PressPianoKey(e.KeyCode);

        }
Posted
Updated 27-Mar-19 9:48am

1 solution

Q&A is not the place for questions on articles that have been posted; you should be using the Comments and Discussions at the end of the article
C# MIDI Toolkit[^]

You may be able to find more help and later versions in either of the public repositories, which seem to be a little more up to date:
GIT Repository Full source of the infamous C# MIDI toolkit[^]
NuGet Gallery: Sanford.Multimedia.Midi 6.6.0[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900