< 波形聲音控件函數(shù)使用說(shuō)明>> ****************************************************************************************************************** 函數(shù)名 功能 說(shuō)明 ------------------------------------------------------------------------------------------------------------------ GetData() 獲取評(píng)分?jǐn)?shù)據(jù) 當(dāng)調(diào)用GetData()時(shí)WVGetData事件會(huì)自動(dòng) 觸發(fā),參數(shù)Data也就是得到的數(shù)據(jù) GetLength() 獲取文件總長(zhǎng)度 函數(shù)返回文件的長(zhǎng)度 OpenFile(CString filename) 打開聲音文件自 動(dòng)分析波形 RECPFstart(long Max) 長(zhǎng)度限制錄制 當(dāng)錄制的長(zhǎng)度大于Max時(shí)自動(dòng)停止,并返回 RECPFstop事件 RECstart() 開始錄音 RECstop() 停止錄音 RECpause(bool REC_STATE) 繼續(xù)/暫停錄音 當(dāng)REC_STATEO為TRUE時(shí)暫停有效,相反繼續(xù) play() 播放 replay(int dounum) 重復(fù)播放 dounum為重復(fù)次數(shù) pause() 暫停 stop() 停止播放
上傳時(shí)間: 2014-01-16
上傳用戶:cjl42111
JBuilder制作音頻播放程序,需要注意的是,當(dāng)播放時(shí),界面上的各個(gè)按鈕應(yīng)當(dāng)仍然可以對(duì)用戶的操作進(jìn)行事件響應(yīng),所以至少需要兩個(gè)線程:一個(gè)控制歌曲的播放,另外一個(gè)對(duì)用戶事件進(jìn)行響應(yīng)。因此我們的AudioPlay類需要實(shí)現(xiàn)Runable接口,以使用多線程技術(shù)。根據(jù)JDK的解釋-JDK1.4.0,任何需要由線程執(zhí)行的實(shí)例都應(yīng)當(dāng)實(shí)現(xiàn)Runable接口,而且由于我們只需要重寫run()方法和stop()方法,并給start()方法多態(tài)化,所以我們選擇實(shí)現(xiàn)Runable接口,這樣就可以不需要繼承Thread類而使用Thread類的實(shí)例來(lái)運(yùn)行了。
上傳時(shí)間: 2014-01-14
上傳用戶:R50974
Tic Tac Toe程序。可以供一到兩個(gè)玩家使用。程序中使用了visual basic 計(jì)時(shí)器,所以每一個(gè)步驟都有時(shí)間限制。此外,計(jì)算機(jī)可是一個(gè)有簡(jiǎn)單智能的對(duì)手,他不但不會(huì)隨便出手,反而還要竭力贏了你才罷休。 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.
標(biāo)簽: visual basic Tic Tac
上傳時(shí)間: 2015-04-11
上傳用戶:sxdtlqqjl
關(guān)于tts語(yǔ)音引擎的使用方法!很多軟件具有英文發(fā)音和朗讀功能,它們都使用了MSTTS(Microsoft Text To Speech)技術(shù)。微軟遵照COM的標(biāo)準(zhǔn),提供了一套Speech API來(lái)對(duì)MSTTS進(jìn)行編程。要在程序中使用這套API,必須確保系統(tǒng)已經(jīng)安裝了MSTTS和Spchapi軟件包。 Speech API可以作為類型庫(kù)引用到Delphi中,方法是:打開Project選單下的Import Type Litrary,點(diǎn)擊“Add”加入Windows\Speech目錄下的Vtxauto.tlb文件,在Delphi的Import目錄中就會(huì)生成VTxtAuto—TLB.pas文件,其中定義了VTxtAuto—TLB單元,把它加到Uses成員中來(lái)。設(shè)計(jì)如圖2所示的窗口,定義全局變量: var VoTxt:IVTxtAuto 然后在Form的OnCreate事件中加入: VoTxt:=CoVTxtAuto_.Create VoTxt.Register(′′,′Speech Test′) {注冊(cè)} “Read”按鈕代碼為: VoTxt.Speak(Memo1.Lines.Text,10) {朗讀} “stop”按鈕代碼為: VoTxt.stopSpeaking {停止朗讀} 至此,應(yīng)用程序已具有朗讀功能,10表示使用普通語(yǔ)氣。借住VoTxt的屬性和方法,我們還可以控制閱讀速度和語(yǔ)氣,實(shí)現(xiàn)暫停、跳句等功能,Speech API編程就這么簡(jiǎn)單。
上傳時(shí)間: 2014-01-21
上傳用戶:13681659100
1、 利用8031作為主控制器組成一個(gè)電子跑表,采用4位LED顯示器。 2、 上電或RESET后能啟動(dòng)顯示當(dāng)前(時(shí):分):首次上電復(fù)位顯示為0時(shí)0分,以后各次RESET均顯示正確的當(dāng)前時(shí)間。 3、 當(dāng)按下START鍵時(shí),作為跑表使用,顯示范圍是:000.0-999.9秒,當(dāng)按下stop鍵時(shí),跑表停止運(yùn)行,并保留所停位置的時(shí)間顯示不變。 4、 利用H鍵作為時(shí)鐘校正,即當(dāng)按下H鍵時(shí),顯示的當(dāng)前小時(shí)值以每秒加一的速度遞增(24點(diǎn)即為0點(diǎn)),利用N鍵作為分校正,使用方法同H鍵,但60分鐘即為0分。
上傳時(shí)間: 2013-12-19
上傳用戶:ardager
模擬交通燈,并帶有數(shù)字顯示的程序。初始時(shí)全為紅燈,顯示“HELLO”字樣。然后交通燈以“紅綠、紅黃、綠紅、黃紅”四種狀態(tài)做循環(huán),而且黃燈會(huì)閃爍,每種狀態(tài)都帶有到數(shù)記時(shí)。當(dāng)按下P3_2時(shí),變成“紅紅”狀態(tài),并顯示“stop”字樣!
標(biāo)簽: 模擬交通燈
上傳時(shí)間: 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.
標(biāo)簽: microcontroll Converter configure following
上傳時(shí)間: 2014-12-01
上傳用戶:獨(dú)孤求源
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.
標(biāo)簽: routines transmit receive general
上傳時(shí)間: 2015-05-22
上傳用戶:firstbyte
請(qǐng)?jiān)O(shè)計(jì)程序,使其實(shí)現(xiàn)以秒計(jì)時(shí)的功能。首先定義一個(gè)watch類,它有兩個(gè)私有變量begin、end分別表示開始時(shí)間、結(jié)束時(shí)間,有成員函數(shù)start()、stop()、show()分別用來(lái)設(shè)置開始時(shí)間、結(jié)束時(shí)間、顯示持續(xù)時(shí)間。
標(biāo)簽: 設(shè)計(jì)程序
上傳時(shí)間: 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.
標(biāo)簽: standard surface models either
上傳時(shí)間: 2013-12-05
上傳用戶:003030
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1