< 波形聲音控件函數使用說明>> ****************************************************************************************************************** 函數名 功能 說明 ------------------------------------------------------------------------------------------------------------------ GetData() 獲取評分數據 當調用GetData()時WVGetData事件會自動 觸發,參數Data也就是得到的數據 GetLength() 獲取文件總長度 函數返回文件的長度 OpenFile(CString filename) 打開聲音文件自 動分析波形 RECPFstart(long Max) 長度限制錄制 當錄制的長度大于Max時自動停止,并返回 RECPFSTOP事件 RECstart() 開始錄音 RECSTOP() 停止錄音 RECpause(bool REC_STATE) 繼續/暫停錄音 當REC_STATEO為TRUE時暫停有效,相反繼續 play() 播放 replay(int dounum) 重復播放 dounum為重復次數 pause() 暫停 STOP() 停止播放
上傳時間: 2014-01-16
上傳用戶:cjl42111
JBuilder制作音頻播放程序,需要注意的是,當播放時,界面上的各個按鈕應當仍然可以對用戶的操作進行事件響應,所以至少需要兩個線程:一個控制歌曲的播放,另外一個對用戶事件進行響應。因此我們的AudioPlay類需要實現Runable接口,以使用多線程技術。根據JDK的解釋-JDK1.4.0,任何需要由線程執行的實例都應當實現Runable接口,而且由于我們只需要重寫run()方法和STOP()方法,并給start()方法多態化,所以我們選擇實現Runable接口,這樣就可以不需要繼承Thread類而使用Thread類的實例來運行了。
上傳時間: 2014-01-14
上傳用戶:R50974
Tic Tac Toe程序。可以供一到兩個玩家使用。程序中使用了visual basic 計時器,所以每一個步驟都有時間限制。此外,計算機可是一個有簡單智能的對手,他不但不會隨便出手,反而還要竭力贏了你才罷休。 Tic Tac Toe program. One or two players. It uses the visual basic timer, so each move has time limit. Simple artificial intelligence: computer does not play randomly, but "tries" to win and STOP you from winning.
上傳時間: 2015-04-11
上傳用戶:sxdtlqqjl
關于tts語音引擎的使用方法!很多軟件具有英文發音和朗讀功能,它們都使用了MSTTS(Microsoft Text To Speech)技術。微軟遵照COM的標準,提供了一套Speech API來對MSTTS進行編程。要在程序中使用這套API,必須確保系統已經安裝了MSTTS和Spchapi軟件包。 Speech API可以作為類型庫引用到Delphi中,方法是:打開Project選單下的Import Type Litrary,點擊“Add”加入Windows\Speech目錄下的Vtxauto.tlb文件,在Delphi的Import目錄中就會生成VTxtAuto—TLB.pas文件,其中定義了VTxtAuto—TLB單元,把它加到Uses成員中來。設計如圖2所示的窗口,定義全局變量: var VoTxt:IVTxtAuto 然后在Form的OnCreate事件中加入: VoTxt:=CoVTxtAuto_.Create VoTxt.Register(′′,′Speech Test′) {注冊} “Read”按鈕代碼為: VoTxt.Speak(Memo1.Lines.Text,10) {朗讀} “STOP”按鈕代碼為: VoTxt.STOPSpeaking {停止朗讀} 至此,應用程序已具有朗讀功能,10表示使用普通語氣。借住VoTxt的屬性和方法,我們還可以控制閱讀速度和語氣,實現暫停、跳句等功能,Speech API編程就這么簡單。
上傳時間: 2014-01-21
上傳用戶:13681659100
1、 利用8031作為主控制器組成一個電子跑表,采用4位LED顯示器。 2、 上電或RESET后能啟動顯示當前(時:分):首次上電復位顯示為0時0分,以后各次RESET均顯示正確的當前時間。 3、 當按下START鍵時,作為跑表使用,顯示范圍是:000.0-999.9秒,當按下STOP鍵時,跑表停止運行,并保留所停位置的時間顯示不變。 4、 利用H鍵作為時鐘校正,即當按下H鍵時,顯示的當前小時值以每秒加一的速度遞增(24點即為0點),利用N鍵作為分校正,使用方法同H鍵,但60分鐘即為0分。
上傳時間: 2013-12-19
上傳用戶:ardager
模擬交通燈,并帶有數字顯示的程序。初始時全為紅燈,顯示“HELLO”字樣。然后交通燈以“紅綠、紅黃、綠紅、黃紅”四種狀態做循環,而且黃燈會閃爍,每種狀態都帶有到數記時。當按下P3_2時,變成“紅紅”狀態,并顯示“STOP”字樣!
標簽: 模擬交通燈
上傳時間: 2013-12-20
上傳用戶:ggwz258
This example program shows how to configure and use the A/D Converter of the following microcontroller: STMicroelectronics ST10F166 After configuring the A/D, the program reads the A/D result and outputs the converted value using the serial port. To run this program... Build the project (Project Menu, Build Target) Start the debugger (Debug Menu, Start/STOP Debug Session) View the Serial Window (View Menu, Serial Window #1) View the A/D converter peripheral (Peripheral Menu, A/D Converter) Run the program (Debug Menu, Go) A debug script (debug.ini) creates buttons that set different analog values in A/D channels. As the program runs, you will see the A/D input and output change. Other buttons create signals that generate sine wave or sawtooth patterns as analog inputs. µ Vision3 users may enable the built-in Logic Analyzer to view, measure and compare these input signals graphically.
標簽: microcontroll Converter configure following
上傳時間: 2014-12-01
上傳用戶:獨孤求源
These routines transmit and receive serial data using two general * I/O pins, in 8 bit, No parity, 1 STOP bit format. They are useful * for performing serial I/O on 8051 derivatives not having an * internal UART, or for implementing a second serial channel.
標簽: routines transmit receive general
上傳時間: 2015-05-22
上傳用戶:firstbyte
請設計程序,使其實現以秒計時的功能。首先定義一個watch類,它有兩個私有變量begin、end分別表示開始時間、結束時間,有成員函數start()、STOP()、show()分別用來設置開始時間、結束時間、顯示持續時間。
標簽: 設計程序
上傳時間: 2013-12-12
上傳用戶:2467478207
zemax源碼: This DLL models a standard ZEMAX surface type, either plane, sphere, or conic The surface also demonstrates a user-defined apodization filter The filter is defined as part of the real ray trace, case 5 The filter can be used at the STOP to produce x-y Gaussian apodization similar to the Gaussian pupil apodization in ZEMAX but separate in x and y. The amplitude apodization is of the form EXP[-(Gx(x/R)^2 + Gy(y/R)^2)] The transmission is of the form EXP[-2(Gx(x/R)^2 + Gy(y/R)^2)] where x^2 + y^2 = r^2 R = semi-diameter The tranmitted intensity is maximum in the center. T is set to 0 if semi-diameter < 1e-10 to avoid division by zero.
標簽: standard surface models either
上傳時間: 2013-12-05
上傳用戶:003030