File:Inharmonic additive synthesis.ogg
Inharmonic_additive_synthesis.ogg (Ogg Vorbis sound file, length 10 s, 173 kbps, file size: 211 KB)
Captions
Captions
Summary
[edit]![]() |
This file was moved to Wikimedia Commons from en.wikipedia using a bot script. All source information is still present. It requires review. Additionally, there may be errors in any or all of the information fields; information on this file should not be considered reliable and the file should not be used until it has been reviewed and any needed corrections have been made. Once the review has been completed, this template should be removed. For details about this file, see below. Check now! |
DescriptionInharmonic additive synthesis.ogg |
English: A sound created by inharmonic additive synthesis. 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> #include <algorithm> using namespace std; double Amplitude(int k, double t) { return 0.01*((10-t)*(1.0/double(k)) + 0.2*t*(k%2)); } double Frequency(int k, double t) { return 0.1*(220*(k+0.1*t*t*sin(k*t))*(10-t) + t*587.0); } int main() { double sr=44100; int nFrames=int(sr)*10; double *buf = new double[nFrames]; double t=0, dt=1.0/sr; int K=44; double *phase=new double[K]; for (int k=0; k<K; k++) phase[k]=0; for (int n=0; n<nFrames; n++) { buf[n]=0; for (int k=1; k<K; k++) { buf[n]+=Amplitude(k,t)*sin(phase[k]); phase[k]+=twopi*Frequency(k,t)*dt; } t+=dt; } SF_INFO sfinfo; sfinfo.samplerate=sr; sfinfo.channels=1; sfinfo.format=SF_FORMAT_WAV|SF_FORMAT_PCM_16; SNDFILE *out = sf_open("inharmonic.wav", SFM_WRITE, &sfinfo); sf_writef_double(out, buf, nFrames); sf_close(out); delete [] buf; delete [] phase; return 0; } |
Date | |
Source | Own work (Original text: Self-made) |
Author | Chrisjohnson (talk) |
Permission (Reusing this file) |
Creative Commons Attribution-ShareAlike |
Licensing
[edit]![w:en:Creative Commons](https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/CC_some_rights_reserved.svg/90px-CC_some_rights_reserved.svg.png)
![attribution](https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Cc-by_new_white.svg/24px-Cc-by_new_white.svg.png)
![share alike](https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/Cc-sa_white.svg/24px-Cc-sa_white.svg.png)
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Original upload log
[edit]Transferred from en.wikipedia to Commons by FSII using CommonsHelper.
- 2012-01-16 00:03 Chrisjohnson 0×0× (216245 bytes) {{Information |Description = A sound created by inharmonic additive synthesis |Source = Self-made |Date = 2012-01-14 |Author = [[User:Chrisjohnson|Chrisjohnson]] ([[User talk:Chrisjohnson|talk]]) |Permission = Creative Commons Attribution-Sh
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 11:47, 9 February 2012 | 10 s (211 KB) | Upload Bot (Rich Smith) (talk | contribs) | {{BotMoveToCommons|en.wikipedia|year={{subst:CURRENTYEAR}}|month={{subst:CURRENTMONTHNAME}}|day={{subst:CURRENTDAY}}}} {{Information |Description={{en|A sound created by inharmonic additive synthesis. Generated by the following C++ source code (compiled |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Transcode status
Update transcode statusFormat | Bitrate | Download | Status | Encode time |
---|---|---|---|---|
MP3 | 129 kbps | Completed 18:16, 9 December 2017 | 1.0 s |
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
- Usage on ja.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Short title | Inharmonic additive synthesis example |
---|---|
Author | Chris Johnson |
Software used | Xiph.Org libVorbis I 20101101 (Schaufenugget) |