public void Dispose()
        {
            for (int i = 0; i < Score.Staves.Count * 2; i++)
            {
                ChannelMessageBuilder builder = new ChannelMessageBuilder();
                builder.Command = ChannelCommand.NoteOff;
                builder.Data2   = i;
                builder.Build();

                outDevice.Send(builder.Result);
            }
            outDevice.Dispose();
        }