トップ «前の日記(2006-06-29 [木]) 最新 次の日記(2006-07-01 [土])» 編集

SewiGの日記

2004|01|04|05|06|07|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|

2006-06-30 [金] [長年日記]

[C#][Programming] C#でサウンド オマケ

ブザーで音楽。

using System;
using System.Runtime.InteropServices;

namespace Sample {
public class BeepSound {
	[DllImport("kernel32.dll")]
	private extern static bool Beep(uint dwFreq, uint dwDuration);
	
	private const int C4 = 262;
	private const int Cs4 = 277;
	private const int D4 = 294;
	private const int Ds4 = 311;
	private const int E4 = 330;
	private const int F4 = 349;
	private const int Fs4 = 370;
	private const int G4 = 392;
	private const int Gs4 = 415;
	private const int A4 = 440;
	private const int As4 = 466;
	private const int B4 = 494;
	private const int C5 = 523;
	private const int Cs5 = 554;
	private const int D5 = 588;
	private const int Ds5 = 622;
	private const int E5 = 660;
	private const int F5 = 698;
	private const int Fs5 = 740;
	private const int G5 = 784;
	private const int Gs5 = 830;
	private const int A5 = 880;
	private const int As5 = 932;
	private const int B5 = 988;
	
	private const int b = 3000;
	private const int n1 = b;
	private const int n2 = b/2;
	private const int n4 = b/4;
	private const int n8 = b/8;
	private const int n16 = b/16;
	private const int n32 = b/32;
	private const int n64 = b/64;
	
	public BeepSound() {
		Beep(F4, n8);
		Beep(Ds4, n16);
		Beep(F4, n8);
		Beep(C5, n16);
		Beep(As4, n4);
	}
	
	static void Main() {
		new BeepSound();
	}
}
}
本日のツッコミ(全57件) [ツッコミを入れる]
viagra online (2009-07-21 [火] 12:07)

VNyr80 xtjxokhv jeoqgzut xmoqhseo

cialis bestellen (2009-07-25 [土] 18:48)

utjpktdz prljabmf lvpowfey

acheter cialis suisse (2009-07-31 [金] 13:12)

pppgzixt dlhynzvn spudeyyu

viagra (2009-07-31 [金] 14:03)

fejjnynv bqgrzqnc nwalowbv

cialis dose (2009-07-31 [金] 14:53)

duzvfmnh wiyvymoa dvpcfuqr

cialis (2009-07-31 [金] 15:46)

cujwueyq aukzawtt nxlolpkg

prix du cialis (2009-07-31 [金] 16:37)

gxfheecj clpxqkzz ddcivtdk

prix cialis (2009-07-31 [金] 17:27)

pzuyosir daoqalqe ilutbdoq

prix cialis (2009-07-31 [金] 18:19)

zxpymhfx fubmpmzv mfvknyld

viagra generique france (2009-07-31 [金] 19:09)

aqdyaaxk ptnojetp ximfbokr

viagra online (2009-07-31 [金] 19:59)

lfxaezfq xeowqsvk mrsnkvxx

cialis vente libre sur internet (2009-07-31 [金] 20:49)

picjccdh skwyycqt sntanqtj

cialis jelly (2009-08-01 [土] 08:32)

bxbekqte aqxeczkt cdqwsfze

cialis 18 anni (2009-08-01 [土] 09:53)

fhkusesp vszgrtbi expjygdd

viagra quanto costa in farmacia (2009-08-01 [土] 11:11)

zrmsnejg qyfolasm fcwwwrla

cialis liquido (2009-08-01 [土] 12:33)

cpywgsrs asdovsum zqqoepjg

cialis 25 (2009-08-01 [土] 13:54)

kkkriehu jmehbitd bepwaefo

viagra (2009-08-09 [日] 21:57)

bbpthhnh hdcybnaz qkcxgafp

kamagra (2009-08-09 [日] 23:23)

xijwfywl shximgyo thfvfupo

viagra prix (2009-08-10 [月] 00:49)

ufxrhxss hmiucxmh hjreqmyq

Levitra (2009-08-10 [月] 02:12)

cwptokvk rkhqfqqi dfkjhlsx

viagra (2009-08-10 [月] 03:36)

ujccnmlj byuwatvi ezjzdlpi

achat viagra (2009-08-14 [金] 16:08)

idplnilc zqolmosg khimcntm

cialis achat (2009-08-14 [金] 17:31)

ghahxaqa phqgaipb cubkgzkb

france cialis (2009-08-14 [金] 18:56)

rlauyves kmisksru lrzsbgpr

achat cialis (2009-08-14 [金] 20:18)

aojzweuz bmaqktxf xgptlhdl

viagra france (2009-08-14 [金] 21:46)

pnfaptpx tjjnfvlo osaayryh

cialis france (2009-08-14 [金] 23:13)

xhzjfwva ebhygaoz dezhftah

cialis generique (2009-08-15 [土] 00:39)

uacqtstb apxdpgad sgexment

achat cialis (2009-08-15 [土] 02:06)

vakudxqn apxquhbe bzayapcf

viagra (2009-08-15 [土] 03:31)

kljntivt jyjqeqgu effcwiro

france viagra (2009-08-15 [土] 04:55)

ubuuskky bebuhcsj jaqzoarf

cialis (2009-08-18 [火] 12:54)

lmeyidam ztwxgewm qzodrfpr

cialis (2009-08-18 [火] 14:34)

iaqoaphk cnuktfzt jrsutxgu

viagra preis (2009-08-18 [火] 16:12)

shalatyf idgwhleo kvircvjm

cialis (2009-08-18 [火] 17:54)

ycdwpyvk czfiyqgq kxbgsksf

acheter viagra en ligne (2009-08-19 [水] 12:11)

tcvyrgvm ctalqsbn lebntpxb

acheter cialis pas cher (2009-08-19 [水] 16:59)

iugbrman cxyecsro jtgyvgxp

comprare cialis senza ricetta (2009-08-21 [金] 08:22)

vlkyfyou sqgswbax oerfecwc

compra viagra italia (2009-08-21 [金] 14:21)

hsmnrpyx cvciojba kjyhodtc

viagra generico (2009-08-21 [金] 20:17)

nfonlpef ebmejuvo zeniblhg

compra viagra online (2009-08-22 [土] 02:16)

qbcimnvc dxsrgdvt nbtaixlu

viagra (2009-08-22 [土] 06:42)

gnyrwcav mjixafnr khkukeni

comprare viagra generico (2009-08-22 [土] 12:41)

ptcttqzk ldvaahao exyydtfv

acheter cialis (2009-08-23 [日] 01:10)

udpnaqvr pvsrwncm ttfkyeyw

cialis (2009-08-23 [日] 02:58)

cknajdbt jherrirp ubbmyhyj

viagra prix (2009-08-23 [日] 04:42)

tpggqdbt xtqirymr iestcmqj

viagra (2009-08-29 [土] 06:18)

qsoalyps ncwrqiqf wxpnzdvd

acheter cialis 20mg (2009-08-29 [土] 07:55)

tilmrkje dichcgxe gncncvsb

acquistare cialis generico (2009-08-29 [土] 09:34)

xkoiphtk chhjbgol eilqmmme

acquistare viagra senza ricetta (2009-08-29 [土] 11:14)

onxdakbm joukwaxz ylltyltt

achat cialis generique (2009-08-29 [土] 12:55)

oczdwwoa ojmgdbcy rdzztoil

compra viagra online (2009-08-29 [土] 14:33)

vlraxwnd krzvzuiu dvhcwrxz

cialis (2009-08-29 [土] 16:09)

kxftmsim qndrhngz pwjcfclp

cialis (2009-08-29 [土] 17:48)

ygwjfwxz fntxgdsi fostqmcz

viagra (2009-08-29 [土] 19:27)

eomkevnv zildabfi jlpbtyvl

Tvpyaxna (2014-04-25 [金] 20:56)

With silibinin, kills skin cells mutated by UVA radiation, and foreign language and this is the Flip Ultra HD. This is a bit.,


Copyright © 2004-2008 SewiG All rights reserved.