-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #235 from microsoft/pete-dev
DP 4 NAMM Official Build
- Loading branch information
Showing
46 changed files
with
1,451 additions
and
500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<Include> | ||
<?define SetupVersionName="Developer Preview 4" ?> | ||
<?define SetupVersionNumber="1.0.24020.2356" ?> | ||
<?define SetupVersionNumber="1.0.24022.2031" ?> | ||
</Include> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...pers/app-developers/samples/csharp-net/app-to-app-midi-cs/MidiSample.AppToAppMidi/Note.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
using midi2 = Windows.Devices.Midi2; | ||
|
||
namespace MidiSample.AppToAppMidi | ||
{ | ||
|
||
public class Note | ||
{ | ||
public midi2.MidiEndpointConnection Connection { get; set; } | ||
public byte NoteNumber { get; set; } | ||
|
||
public byte GroupIndex { get; set; } | ||
|
||
public byte ChannelIndex { get; set; } | ||
|
||
public void NoteOn() => Connection.SendMessagePacket( | ||
midi2.MidiMessageBuilder.BuildMidi2ChannelVoiceMessage( | ||
0, | ||
GroupIndex, | ||
midi2.Midi2ChannelVoiceMessageStatus.NoteOn, | ||
ChannelIndex, | ||
(ushort)((ushort)NoteNumber << 8), | ||
1000)); | ||
public void NoteOff() => Connection.SendMessagePacket( | ||
midi2.MidiMessageBuilder.BuildMidi2ChannelVoiceMessage( | ||
0, | ||
GroupIndex, | ||
midi2.Midi2ChannelVoiceMessageStatus.NoteOff, | ||
ChannelIndex, | ||
(ushort)((ushort)NoteNumber << 8), | ||
0)); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.