Skip to content

Instantly share code, notes, and snippets.

@rsato rsato/PC98Beep.cs
Last active Aug 29, 2015

Embed
What would you like to do?
PC98の起動音をC# とWindows PowerShellで
usage:
>C:\Windows\Microsoft.NET\Framework\v[version]\csc.exe [cs file]
example:
>C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc PC98Beep.cs
using System;
class PC98Beep
{
public static void Main(string[] args)
{
// Console.Beep(int frequency, int duration);
Console.Beep(2000, 120); // pi
Console.Beep(1000, 120); // po
}
}
[System.Console]::Beep(2000, 120)
[System.Console]::Beep(1000, 120)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.