File:Additive synthesis bell.ogg

頁面內容不支援其他語言。
這個檔案來自維基共享資源
維基百科,自由的百科全書

Additive_synthesis_bell.ogg(Ogg Vorbis聲音檔案,長度10秒,140 kbps,檔案大小:171 KB)


摘要

Template:BotMoveToCحommonsو

描述
English: Bell-like tone generated by additive synthesis. The synethesis uses 21 inharmonic constant-frequency partials ranging from 201Hz to 3700Hz. Generated by the following C++ source code (compiled with GNU g++ version 4.5.2 with libsndfile 1.0.23.)
#include <sndfile.h>
#include <cmath>
using namespace std;

const double twopi=8*atan(1);

const int K=21;
double freqs[K]={201,337,437,453,479,501,678,885,1093,    1234, 550, 1401, 1690, 1780, 2002, 2449, 2651, 2889, 3002, 3250, 3700};
double wobbleAmt[K]={0,1,.1,.1,.1,1,.1,.2,.2,   0,0,0,0,0,0,0,0,0,0,0,0};
double wobbleFreq[K]={0,2.8,9.2,9.5,10,4.8,9,8.8,7.1,  0,0,0,0,0,0,0,0,0,0,0,0};
double wobblePhase[K]={0,0,0,0,0,0,0,0,0,    0,0,0,0,0,0,0,0,0,0,0,0};
double ampScale[K]={-32,-34.5,-39.8,-50.2,-45.6,-35.6,-35.7,-36.3,-38.4,  -45,-45,-45,-45,-45,-45,-45,-45,-50,-50,-50,-50};
double decayRate[K]={.85,.8,1,1,1,1,1.25,1.5,1.5,    4,3.5,4,4,4,4,4,5,3.5,5,6,6};
double Amplitude(int k, double t)
{
double amp=pow(2.0,ampScale[k]/6.0);
amp*=sin(wobblePhase[k])*wobbleAmt[k]+(1-wobbleAmt[k]);
amp*=exp(-t*decayRate[k]);
if (t<1) amp*=1-exp(-t*1000);
return 8*amp;
}

int main()
{
double sr=44100;
int nFrames=int(sr)*10;
double *buf = new double[nFrames];
double t=0, dt=1.0/sr;

for (int n=0; n<nFrames; n++)
{
buf[n]=0;
for (int k=0; k<K; k++)
{
wobblePhase[k]+=twopi*wobbleFreq[k]*dt;
buf[n]+=Amplitude(k,t)*sin(t*twopi*2*freqs[k]);
پ
t+=dt;
}

SF_INFO sfinfo;
sfinfo.samplerate=sr;
sfinfo.channels=1;
sfinfo.format=SF_FORMAT_WAV|SF_FORMAT_PCM_16;
SNDFILE *out = sf_open("bell.wav", SFM_WRITE, &sfinfo);
sf_writef_double(out, buf, nFrames);
sf_close(out);
delete [] buf;
return 0;
}
日期 2012年一月18日 (原始上傳日期)
來源 Transferred from en.wikipedia to Commons by FSII using CommonsHelper.
作者 英文維基百科Chrisjohnson

授權條款

英文維基百科Chrisjohnson,此作品的版權所有人,決定用以下授權條款發佈本作品:
w:zh:共享創意
姓名標示 相同方式分享
您可以自由:
  • 分享 – 複製、發佈和傳播本作品
  • 重新修改 – 創作演繹作品
惟需遵照下列條件:
  • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
  • 相同方式分享 – 如果您利用本素材進行再混合、轉換或創作,您必須基於如同原先的相同或兼容的條款,來分布您的貢獻成品。

原始上傳日誌

The original description page was here. All following user names refer to en.wikipedia.
  • 2012-01-18 00:08 Chrisjohnson 0×0× (175587 bytes) Bell-like tone generated by additive synthesis. The synethesis uses 21 inharmonic constant-frequency partials ranging from 201Hz to 3700Hz. Generated by the following C++ source code (compiled with GNU g++ version 4.5.2 with libsndfile 1.0.23.) <pre> #in

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

著作權狀態 繁體中文 (已轉換拼寫)

有著作權 繁體中文 (已轉換拼寫)

多媒體型式 繁體中文 (已轉換拼寫)

application/ogg

校驗和 繁體中文 (已轉換拼寫)

fa6ec678ba82d043201373d04360ecd04a0a8228

斷定方法:​SHA-1 中文 (已轉換拼寫)

資料大小 Chinese (Hong Kong) (已轉換拼寫)

175,587 位元組

10

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸用戶備⁠註
目前2012年2月9日 (四) 11:4610秒(171 KB)File Upload Bot (Magnus Manske) {{BotMoveToCommons|en.wikipedia|year={{subst:CURRENTYEAR}}|month={{subst:CURRENTMONTHNAME}}|day={{subst:CURRENTDAY}}}} {{Information |Description={{en|Bell-like tone generated by additive synthesis. The synethesis uses 21 inharmonic constant-frequency pa

下列頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案:

詮釋資料