1,713 Royalty-Free Audio Tracks for "First"

00:00
00:13
An excerpt from the song “Au clair de la lune”, originally recorded as a phonautogram on paper. As of May 2009, this is believed to be the oldest recognizable recording of a human voice in existence. According to the remasterers, the lyrics sung are the first lines of the second stanza "Au clair de la lune, Pierrot répondit" (Under the moonlight, Pierrot replied).[1] It has also been reported that the recording contains the beginning of the song, "Au clair de la lune, mon ami Pierrot..." (Under the moonlight, my friend Pierrot...).[2] This is an edited version: speed and pitch have been corrected to reflect Édouard-Léon's voice, noise was removed. Ausschnitt aus dem Lied “Au clair de la lune”, ursprünglich als Phonautogramm auf Papier aufgezeichnet. Per 2008 gilt diese Aufzeichnung als die älteste bekannte Tonaufnahme. Die gesungenen Worte lauten: "Au clair de la lune, Pierrot répondit" (Bei des Mondes Scheine, antwortet Pierrot), oder "Au clair de la lune, mon ami Pierrot..." (Bei des Mondes Scheine, mein Freund Pierrot...). Un extrait de la chanson “Au clair de la lune”, telle qu'enregistrée sur papier sous forme de phonautogramme. À la date de mai 2009, on le considère comme le plus ancien enregistrement d'une voix humaine reconnaissable. D'après les restaurateurs, les paroles correspondent aux premières lignes de la seconde strophe : « Au clair de la lune, Pierrot répondit ».[3] D'autres estiment qu'il s'agit plutôt du début de la chanson : « Au clair de la lune, mon ami Pierrot ».[4] Cette version a été éditée de manière à mieux refléter la voix de Scott de Martinville : la vitesse a été réduite, la tonalité a été baissée et le bruit a été réduit
Author: Untitled
00:00
00:03
88 piano keys, long natural reverb: up to 13 seconds per note. This is me giving back. I love freesound. You guys saved my bacon back in the day. Recently i searched for free piano notes for a game i'm making, but the only ones i could find ended too quickly. I need long reverb! luckily i have an old piano, so i made my own. So this is me giving back. This is an old piano!!!. We had the piano tuned a year ago, but it is well over 60 years old, so be warned! these notes have character! if you want perfect tone, either edit them individually, generate something artificially, or buy a professional set. But if you want a piano with personality, this is for you. Being an old piano, it only has 85 keys. So i created the highest 3 notes by speeding up previous notes, to make the modern standard 88 keys. How the notes were created. The notes are created on an old (well over 50 years) steinhoff upright piano. It only has 85 keys, so i faked the highest 3 keys by taking previous keys and changing their pitch. I opened the top, balanced my trusty everesta bm-800 condenser microphone across the top near the high note end, and held down the "loud" pedal. Each note was then hit and kept pressed down until i could no longer hear any reverb. Notes were saved as mp3 using my laptop, using free sound recorder on the highest quality settings. Yeah, i know it isn't flac, but i am strictly amateur with budget to match, and that was the best i could do. After that, all editing was of course uncomopressed until the final save. How the notes were edited. Editing was kept to a minimum, mainly to enhance the reverberation. All editing took place on audacity on linux mint. First i cropped any silence from the start. Next, used the envelope function to gradually increae volume to 200% over a couple of seconds. That is, the quietest part of the reverb is twice as loud as you might expect. Because for my game i sometimes need a single piano key to last ten seconds. Next i maximised the volume. If there was just a single stray waveform that stuck out then i reduced that by 2db or so then maximised again. Because like i said, i want to hear that reverb! i then found the part where background noise starts to be noticeable, and faded out over 1 second or so. This meant that the lowest notes had as much as 13 seconds of reverb, whereas the highest notes might only have 2 or so. Finally i checked the result, and edited three or four notes that i felt were just too ugly (badly tuned, or for some reason the software suddenly got hissy when the note became too quiet. Weird. ) i also slightly changed the pitch of a couple of notes that were slightly out of tune but otherwise ok. No doubt a better ear than mine could teak all of the notes. But as i said, it's an old piano and we're keeping it real. Finally, files were compressed to ogg at the highest quality setting, using soundkonverter. Why not flac?. I live in the countryside with very slow broadband, so i apologise for including more of the original files. But as it was, uploading this zip file took about an hour. Enjoy. Legal. Use this for anything you want, commercial or not, credit me or not. Consider it public domain. My main concern is that i had completely legal sound for my game, with nice long reverb and character. Uploading it here provides proof that i created it first, just in case anybody comes back and says "those are mine" (it happens).
Author: Tedagame
00:00
02:03
I made this recording of ambient backgroud noise directly beneath the eiffel tower. The shape of the eiffel tower creates a unique acoustic environment in the vicinity of the tower, especially beneath it. You can hear a much higher level of background noise than you would hear in an open area, and the noise is unusual. The tower is made of thin pieces of iron arranged into a complex and very large lattice, which reflects and slices and dices sound in a unique way. Thus you have a high level of very even and unidentifiable background noise as noises from the ground and the platform get bounced around and distorted by the structure of the tower. This recording was made from the ground, with microphones pointed straight upwards about 2 meters off the ground. Noises from the ground travel upwards and bounce around the inside of the tower, then drift back down. There are noises in the tower itself as well, such as elevator motors and people on the platforms. The first platform, at 57 meters, is open in the center, whereas the second platform, at 116 meters, is completely closed and flat on the bottom. Wind moving through the tower also makes noise, and again the open structure of the tower changes the noise in a way that is specific to the eiffel tower. There wasn't much wind at ground level for this recording, but i don't know what the wind speed was at higher levels in the tower. Some voices in multiple languages are audible in the recording, as the area beneath the tower is awash in tourists. Recorded hand-held with a zoom h4n and a mini windjammer, using built-in mics, in stereo 96 khz / 24 bits, then converted to mp3 at 320 kbps because of the size of the file. Duration is about two minutes.
Author: Mxsmanic
00:00
00:29
upspeeded version of the previous theme 1. Wav*made with lmmsused sound: bit invader, arpeggio sus4 with some range. Time peaked at 75ms and vokalformant-filter at 50bpm 4/4. Feel free to use. Public domain https://creativecommons.org/publicdomain/zero/1.0/ Electronic, Synth, Note, Oscillator, Csound https://freesound.org/people/cybilopsin/sounds/622830/ Quickly Synth Cybilopsin Freesound.org https://freesound.org/ freesound_org_c2f38a4f2a4f6a087d49c06ae51541bf40091919 ./freesound/622830__cybilopsin__quickly-synth.flac flac c2f38a4f2a4f6a087d49c06ae51541bf40091919 Electronic synthesis with csound. Public domain https://creativecommons.org/publicdomain/zero/1.0/ Belt, Battery, Ford, Cold, Van, Vehicle, Motor, Vroom, Start, Screeching, Dead, Automobile, Diesel, Drive, Car, Rattle, Driving, Old, Engine https://freesound.org/people/Mullumbimby/sounds/622829/ Cold Start Of Old Diesel Car Mullumbimby Freesound.org https://freesound.org/ freesound_org_242221dd02ed50bfa79d5d4377299d58fbf01dd0 ./freesound/622829__mullumbimby__cold-start-of-old-diesel-car.flac flac 242221dd02ed50bfa79d5d4377299d58fbf01dd0 Cold startup of an old ford transit diesel van. The engine turns over very reluctantly and gives out it's telltale belt-screeching sound after startup before it drives off. Recorded in pcm stereo with a zoom h1n field recorder. Public domain https://creativecommons.org/publicdomain/zero/1.0/ Scream, Pain, Yell, Shriek https://freesound.org/people/RJr2009/sounds/622833/ First Scream Rjr Freesound.org https://freesound.org/ freesound_org_210a1798560d372d4381c2ce1d0e8342163f1656 ./freesound/622833__rjr2009__scream1.flac flac 210a1798560d372d4381c2ce1d0e8342163f1656 Me screaming into the microphone, recorded on videopad. Public domain https://creativecommons.org/publicdomain/zero/1.0/ Space, Electronic, Drone, Riser https://freesound.org/people/Da-JS/sounds/622840/ Riser Bars Bpm Da Js Freesound.org https://freesound.org/ freesound_org_f1dd3a64137ce6ab46251a9aa695fe8923833b21 ./freesound/622840__da-js__riser-4-bars-120-bpm.flac flac f1dd3a64137ce6ab46251a9aa695fe8923833b21 A riser created in ableton with hybrid reverb. Public domain https://creativecommons.org/publicdomain/zero/1.0/ Chill, Soft, Melody, Synth, Chords, Progression https://freesound.org/people/ar_jams111/sounds/622845/ Daily Sound # Sweet Chords Ar Jams Freesound.org https://freesound.org/ freesound_org_a85fcdace0ddf299bf2c45ea4f14a5363a322d37 ./freesound/622845__ar_jams111__daily-sound-001-sweet-chords.flac flac a85fcdace0ddf299bf2c45ea4f14a5363a322d37 One day i decided i would upload a sound to soundcloud every day. These days the sounds" are more like mini productions, but this is where it all started. A sweet and simple chord progression and melody. Love, ar_jams111.
Author: Melokacool
00:00
01:28
Forward with NOAA the NOAA Corps Song The "NOAA Corps Song" is actually entitled "Forward with NOAA." In 1987-88 the National Association of Commissioned Officers (ACO) was interested in commissioning a NOAA Song. Captain (then Commander) Steve Manzo was a member of the ACO Executive Board and volunteered to assist. Manzo contacted a long-time friend, Bob Arberg. Bob's father, Bud Arberg, had actually written the music and words to the "Army Song" -- while assigned to the Adjutant General's Staff during World War II. Dr. Arberg (former Princeton graduate in music) was retired and he readily volunteered to write a song. Dr. Arberg was provided reference materials on the NOAA Corps. He recognized at the outset that this was an attempt to build NOAA Corps morale and he cautioned that buy-in/acceptance within the Corps would not be easy. The song was first presented at a National ACO Dining-In in either 1988 or 89. Secretary of Commerce William Verity was present, as were both Bud and Bob Arberg. Bud Arberg played the piano and performed the "NOAA Song" to the assembled group of 150 officers and guests. Upon completing the NOAA Song, Secretary Verity graciously presented Dr. Arberg with a small gift of thanks on behalf of DOC/NOAA/NOAA Corps. The music was arranged by the USAF Band. The words are as follows: Forward with NOAA With the Corps that's got it all Science and Service We are always there to meet the call We survey the oceans And we track storms in the air Forward with NOAA We're the NOAA Corps, we're always there -- Musical Interlude then Repeat -- Forward with NOAA With the Corps that's got it all Science and Service We are always there to meet the call We survey the oceans And we track storms in the air Forward with NOAA We're the NOAA Corps, we're always there
Author: Untitled
00:00
75:42
Hi. This soundfile was recorded on 03. 06. 2017 in szczecin, nw poland (gumience district to be precise). The time of this recording is from around 3 a. M. (when the sun was allready rising) till around 7:30 a. M. What's funny about that, is that i turned my recorder on and layed it on the windowsill (display up) on altitude around 5 meters (first floor), (the recorder is facing ne direction) because the birds were allready going crazy!, and after some time i felt asleep, and the recorder was left on. There are many many kinds of birds around, cause there is a big cementery near by, with lots of trees, and some wild fruit orchard too. I had this one moment, when the birds were so active, that let's say they spinned it me around, and worked me up to a beautifull spiritual moment with their sounds, and then i felt asleep. Later through the recording you can hear me snoring, you can hear my alarm clock going on (and that haven't woken me up too;). The bass resonance of cars passing by makes this recording a bit heavy in some places, and the wind made it's mark too, but that shoudn't be a big of an issue here. As i listen to it now, so much things happened while i was asleep. . . [ 3:30 a. M. !: some people are singing and speaking, and you can clearly hear one of them saying: "kurwa, grubo", which means - "f**k, heavy". Later on, the neighbours weren't sloppy too;). Hearing such recordings doesn't give you the liminous feeling of the place where it was recorded. You only get audio here, not the vision, the light, the brightness, the movement, the actions, and the space, the physical elements, only the best can imagine (so if you don't have such an imagination, pm me and i can send you a photo of the place where all this took place). Anyway, i hope that the birds will keep rockin' their solos, and the bees will keep visiting all the flowers around forever! (who knows, i might become one of them sometime;). Thanks and have a good listening session. Szymon.
Author: Twiciasty
00:00
00:12
An excerpt from the song “Au clair de la lune”, originally recorded as a phonautogram on paper. As of May 2009, this is believed to be the oldest recognizable recording of a human voice in existence. According to the remasterers, the lyrics sung are the first lines of the second stanza "Au clair de la lune, Pierrot répondit" (Under the moonlight, Pierrot replied).[1] It has also been reported that the recording contains the beginning of the song, "Au clair de la lune, mon ami Pierrot..." (Under the moonlight, my friend Pierrot...).[2] Ausschnitt aus dem Lied “Au clair de la lune”, ursprünglich als Phonautogramm auf Papier aufgezeichnet. Per 2008 gilt diese Aufzeichnung als die älteste bekannte Tonaufnahme. Die gesungenen Worte lauten: "Au clair de la lune, Pierrot répondit" (Bei des Mondes Scheine, antwortet Pierrot), oder "Au clair de la lune, mon ami Pierrot..." (Bei des Mondes Scheine, mein Freund Pierrot...). Un extrait de la chanson “Au clair de la lune”, telle qu'enregistrée sur papier sous forme de phonautogramme. À la date de mai 2009, on le considère comme le plus ancien enregistrement d'une voix humaine reconnaissable. D'après les restaurateurs, les paroles correspondent aux premières lignes de la seconde strophe : « Au clair de la lune, Pierrot répondit ».[3] D'autres estiment qu'il s'agit plutôt du début de la chanson : « Au clair de la lune, mon ami Pierrot ».[4] Čeština: Skladba Au clair de la lune (Za svitu luny), nahraná Édouardem-Léonen Scotem de Martinville v roce 1860, je považována za historicky nejstarší zvukovou nahrávku vůbec. Македонски: Песната На месечевиот сјај (Au clair de la lune) снимена од Едуар Леон Скот де Мартенвил во 1860 г. Се смета за најстарата постоечка звучна снимка во историјата. Fragment popularnej francuskiej piosenki Au clair de la lune (pol. W świetle księżyca) zarejestrowany jako fonautogram w 1860 roku przez Édouarda-Léona Scotta de Martinville'a, który uznawany jest za najstarsze istniejące nagranie ludzkiego głosu.
Author: Untitled
00:00
03:29
Save A Little Dram For Me song from United States prohibition era. MEDIUM: 1 sound disc : analog, 80 rpm ; 10 in. CREATED/PUBLISHED Orange, N.J.: Edison. Lyrics: (spoken) In the middle of the sermon, Parson Johnson rose and started sniffing the air. There was a peculiar smell tricklin’ up the parson’s nose. That told him that gin was ‘round somewhere. And he closed his Bible gently in the middle of the psalm and started figurin’ mentally where that smell was coming from. His eyes scanned every pew, and then he did declare, he says “I announce this meetin’ through… (sung) …until you kick in with my share.” Oh Bretheren if you want more preachin’ Save a little dram for me. Glory hallelujah Why drinkin’ gin ain’t against my teachin’. Treat me with equality. (spoken) From this here smell it’s very plain to see That somebody here’s been holding out on me. (sung) For Bretheren if you want more preachin’ Save a little dram for me. (spoken) Now when they passed the bone dry law, I was the very first to say that it never would stay And neither did I think the law could regulate our thirst. That’s why I’ve got some stored away. Now since prohibition’s got us drinks is few and far between. Of all the stingy brothers you’re the worst I’ve ever seen. But I insist on my share. Don’t say it’s all run out Or else you’re going where-- You know that bad place I been preachin’ ‘bout? (sung) For Bretheren if you want more preachin’ Save a little dram for me. Glory hallelujah Why drinkin’ gin ain’t against my teachin’. Treat me with equality. (spoken) I’ve shared your joy and I’ve shared your sin And believe me brothers I’m gwine to share your gin. (sung) For Bretheren if you want more preachin’ Save a little dram for me. Українська: «Збережи для мене трохи драм», пісня з епохи сухого закону США, випущена в 1922 році.
Author: Untitled
00:00
02:02
Electro-magnetic interference from the colorino talking color identifier and light probe when held near the internal ferrite antenna on the back right of a 13-year-old boombox near the bottom of the am broadcast band, from 530 to 580 khz. You first hear the device inactive being brought near the radio. This gives a low buzz of stacato clicks. At about 00:23 the light probe button is briefly pushed, you hear a quick boop of the light probe with low light level combined with the beginning of the white noise of the device active. If you put your ear near it after you use it, you will hear a slight hiss from the audio amplifier carrier idling for about a minute after last use. On the am radio this translates to white noise. At 00:26 there is a double click and a distorted voice says black. The voice is being picked up by the am radio. 10 seconds of white noise and i press the color button again and it says black. I put something else over the color sensor and it says a few more things. At 00:51 i hold down the light probe button and try to point it at the light above my desk while still holding it close enough to the radio to pick up the emi signal. You hear a warbling tone at 00:59 as the light reaching the sensor increases and decreases in brightness depending on how it's pointed. The signal fades in and out as the device is moved around. This has all happened at 530 khz. At 01:37 i step the radio up to 580 khz where you get a stronger signal. Wibw from topeka competes with the noise throughout the rest of the file. At 01:51 you hear the distorted error beep as i press the color button without anything but air and light in front of the color sensor. It must be pressed up against the thing you want the color of, or it gets in too much ambient light and errors out with a loud protesting beep.
Author: Kbclx
00:00
03:25
In front of my desk in my room is a wood paneled wall with a cubbie. It's about a foot wide, 10 inches from top to bottom and maybe 7 inches deep. I'm just guessing. Around this cubbie is a border of wood. In the bottom right corner under the border i have jammed one end of an elastic string that used to have glitter on it. It's from a christmas box of chocolates my uncle sent me last year. I stand in front of this cubbie whose bottom is at chin height, (i'm only 5ft1in) so my arms are above my head as i pull this string across the cubbie to the border on the left which acts as my only fret. The string is a few inches longer than the cubbie is wide, but when i pull it it gets longer so my hand is 3/4 along it's length as i pull back and forth across the border to tighten and loosen the string. No matter how hard i pull it never pops loose from it's mooring. The recording starts with me standing up from my chair. In the first part until 01:54 i am playing the string at maybe 30° from horizontal. It has a buzzy quality that reminds me of an african folk instrument i can't remember the name of. From 01:33 to 01:54 i'm trying to imitate a korean folk vibrato kind of thing. In the second part until 02:29 i am playing 45 to 60° from horizontal and it sounds like a full-bodied string bass with no buzz. In the last part beginning at 02:34 i am playing about 75° from horizontal across the top border of the cubbie on the left so it sounds buzzy and african again, and i'm just going crazy goofing around with a crazy bluesy rock sort of rhythm. There didn't seem to be any homemade 1-stringed wall-cubbie basses on this site so here is mine, have fun. I don't play it if mom is home because the living room is on the other side of the wall and she can't hear tv. Also my neighbor can probably hear it in the next apartment lol. Recorded with microsoft lifecam 3000.
Author: Kbclx
00:00
04:59
No pain no gainshort storyby: maqsood hasnitranslated by: najamfree abuzar barqi kutab'khanafeb. 2019owing to the intensity of heat and thirst, the crow was very enervated but there was no water and shade. He went on roaming about in search of water. He was thinking that, he would definitely die, if he could not find water in a short time. He neither wanted to die nor he was disappointed. He was determined to seek water and shady tree till the last breath of his life but, in fact, the intensity of thirst was creating problem for him. Now he had two choices either he must continue seeking water or leave it and wait for death. He mustered courage and flew east in search of water. He had covered a short distance when he saw a garden and hurriedly started flying towards it he wanted to live and was sure of hisexistence in future. Quite surprisingly, he seemed to be more active now. He wanted to reach the garden very soon and every cost. Though he was flying very speedily yet the garden seemed to be very far off. He got tired and thought that the garden be an illusion of his mind. He was shaken about the entity of garden. He thought it might be an illusion and he must seek any other way which could rescue his life. But he had not any other choice. To chase the illusion was better than to leave seeking water because there was the possibility of life. If he died while searching, it would be a courageous step. He stopped for awhile and the garden was quite at short distance. He hopefully started marching towards the garden and felt that it was not too far. He felt grief for wasting a precious moment. He would have been ahead if he had not stopped. He felt ashamed ofhis negative thinking because they could bring about demise. These negative feelings were equal to pessimism. A devoted definitely finds his goal at last because god helps those who helpthemselves. He took on fling with great zeal and now he appeared to be fresh. He was spiritually exalted and was flying without difficulty. Now he reached the threshold of the garden. The garden was in the urban area and it meant that it was for pastime but he was surprised to see that there were no bower. Birds had left this garden when men himself neglected it. He flew over the garden but there was no water. He deplored his labor. Suddenly, he found a pitcher in the garden and felt rejoiced and hurriedly went to it. There was very little water in the pitcher and he made very attempt to drink water but failed due to the low level of water. He hatched a plan and caught a pebble with the help of his beak and put it into the pitcher. Owing to heat, the pebble was dry and it seemed that it had liked it. In a short time, the crow poured another pebble and the first pebble did not like this sharer. Although it had not liked thesecond one yet the bitter fact was that the wise crow imposed his will by throwing more pebbles into the water. The crow was gallantly doing his job and, at last, the pitcher became full of wet pebbles and he drenched his thirst by sucking wetness of them.
Author: Maqsood@Mailworld
00:00
02:40
Created by divkid for use in the make noise soundhack morphagene. There are dry-only, fx-only, and mix versions of this reel in the pack. See it in action at https://youtu. Be/rk4ufmfcouc. Patch walkthrough. The patch starts with the qu-bit chance providing discrete random values (sample and hold) going into an instruo harmonaig. This takes the stepped random voltages and quantizing them to a given scale. I put in the notes c d eb f g ab bb which is a c natural minor scale, the relative minor of eb major (for anyone that's curious). However like most of my modular work i didn't actually tune the oscillators to anything specific. So treat the scale as a pattern of intervals not a set of specific notes. The quantized notes then form 4 voice chords giving us a root, third, fifth and seventh cv output that will be diatonic following the scale pattern, meaning the third will be major or minor, the seventh major, minor or dominant and the fifth natural or diminshed to suit the scale. With the 4 quantized outputs on the harmonaig these all go into the four oscillators on the synthesis technology e370 quad morphing vco. Each of the e370 oscillators are in the basic morph xy mode using the built in rom b set of wavetables. Wavetables are modulating by various mixes of the befaco rampage, mutable instruments tides, wmd multimode envelopes and music thing modular turing machine. The modulation sources are mixed and split with multiples and mixers. These modulating wavetables then go into a bubblesound vca4p where i'm using 4 mk1 intellijel dixie oscillators all un-synced and free running with sine wave lfos. Each lfo freely fades the voice in and out of the vca4p. As this is unsynced there's no regard to pitch changes linked to changes in amplitude and the swells. I find splitting the gate/rhythm from pitch regarding sequencing to be a freeing and interesting way to work that's not available on traditional instruments. This is just a simple application of that idea with the lfos fading freely unrelated to the other modulation or sequencing of pitch. The sound then goes from the vca4p mix out into a befaco mixer and praxis snake charmer which the output section of the larger case and i'm sending a 'pre' auxiliary out into my fx case. The dry sound first goes into the erica synths fusion delay / flanger vintage ensemble which is giving me short modulated delays giving vibrato like sounds and pushing the input level and overdrive gives us some warmth and grit that thickens up the sound and also fills in the gaps left by the free running lfos pulling quieter sounds and compressing in the on board tube. This then outputs to the feedback 1 bit multitap delay module which has it's delay chip pushed to longer times for some added crackle and noise. I'm using the two delay taps for a shorter and longer delay with little feedback to mix the dry sound for a generally noisier and smeared version of the input. This then goes into the xaoc devices kamieniec with it's on board lfo as slow as possibly for a mildly resonant phase shifting. This goes into mutable instruments clouds set to sew random grains slowly and randomly which are pitch shifted up 2 octaves to fill out some high end flourishes against the closed chord voicings at the core of the patch. Finally this goes into a long lush reverb from the halls of valhalla card in the tiptop audio z-dsp. The stereo fx chain and the mono dry signal are mixed in the befaco hexmix and recorded as a mixed stereo file. I'd consider this to be the main 'reel'. However i split the dry signal and the fx only wet stereo signal and recorded those at the same time so you can choose which reel to use and experiment with dry/wet or blended sounds from this patch.
Author: Makenoisemusic
00:00
00:01
Start sound of mac ii iix iicx iici se/30. Create by dissessemble rom code and use wave table algorithm write c program write wav file. C program below:. /* mac_ii. C *//* boot beep mac ii *//* 2558/09/06 */. #include. #define knumber_samples 30000#define kdelay_note 300#define kwave_table_value 0x30013f10#define ksample_rate 22257 // hz. Void preparewavetable( unsigned short *wavetable, unsigned int value );void updatewavetable( unsigned short *wavetable, unsigned short chiso );void savesound( char *filename, short *sounddata, unsigned int numberframes, unsigned int samplerate );. Int main () {. // ---- wave tableunsigned short wavetable[256];// ---- sound data, stereoshort sounddata[knumber_samples << 1];// ---- increment array (16/16 bit fix point integer)int arrayincrement[] = {3 << 16, 4 << 16, (3 << 16) + 0x2f2, 6 << 16};// ---- prepare wave tablepreparewavetable( wavetable, kwave_table_value );. // ---- array phase (16/16 bit fix point integer)unsigned int arrayphase[] = {0, 0, 0, 0}; // set all = 0. Unsigned int samplenumber = 0;while( samplenumber < knumber_samples ) {. // ---- calculate sampleunsigned int channelleft = 0;unsigned int channelright = 0;unsigned char notenumber = 0;while ( notenumber < 4 ) {// ---- see if should update phase for note, only do if play noteif( samplenumber >= notenumber*kdelay_note ) {// ---- up date phase beforearrayphase[notenumber] += arrayincrement[notenumber];// ---- not let out of range [0; 255]if( arrayphase[notenumber] > 0xff0000 ) // 0xff0000 == 255 << 16arrayphase[notenumber] -= 0xff0000; // return to begin of wave table}unsigned short mauvat = wavetable[arrayphase[notenumber] >> 16];. // ---- add sound componentsif( notenumber < 2 ) // ---- first 2 notes left channelchannelleft += mauvat;else // ---- last 2 notes right channelchannelright += mauvat;// ---- next notenotenumber++;}// ---- save left and right samplessounddata[samplenumber << 1] = (channelleft << 9) - 0x8000; // use << 1 for 16 bitsounddata[(samplenumber << 1) + 1] = (channelright << 9) - 0x8000; // use << 1 for 16 bitupdatewavetable( wavetable, samplenumber & 0xff );samplenumber++;}// ---- save wav filesavesound( "mac ii. Wav", sounddata, samplenumber << 1, ksample_rate ); // multiply 2 because stereo. Return 1;}. Void preparewavetable( unsigned short *wavetable, unsigned int value ) {. // ---- prepare wave tableunsigned short index = 0;unsigned short wavetablevalue = value & 0xff;while( index < 64 ) {wavetable[index] = wavetablevalue; // << 8; // for 16 bitindex++;}. Wavetablevalue = (value >> 8) & 0xff;while( index < 128 ) {wavetable[index] = wavetablevalue; // << 8; // for 16 bitindex++;}. Wavetablevalue = (value >> 16) & 0xff;while( index < 192 ) {wavetable[index] = wavetablevalue; // << 8; // for 16 bitindex++;}wavetablevalue = (value >> 24) & 0xff;while( index < 256 ) {wavetable[index] = wavetablevalue; // << 8; // for 16 bitindex++;}}. Void updatewavetable( unsigned short *wavetable, unsigned short index ) {// ---- get value from wave tableunsigned short value = wavetable[index];// ---- calculate new value for wave tableif( index == 255 ) { // careful at last element of wave tablevalue += wavetable[0];value = (value >> 1);wavetable[0] = value;}else {value += wavetable[index+1];value = (value >> 1);wavetable[index+1] = value;}. }. #pragma mark ---- save wavvoid saveheader( file *filename, unsigned int samplerate );void savesounddatainteger16bit( file *filename, short *sounddata, unsigned int numbersamples );. Void savesound( char *filename, short *sounddata, unsigned int numberframes, unsigned int samplerate ) {// ---- open filefile *file = fopen( filename, "wb" );if( file ) {// ---- "riff"fprintf( file, "riff" );// ---- length sound file - 8unsigned int lengthsoundfile = 32;lengthsoundfile += numberframes << 1; // một không có một mẫu vạt cho kênh trái và phải// ---- save file lengthfputc( (lengthsoundfile) & 0xff, file );fputc( (lengthsoundfile >> 8) & 0xff, file );fputc( (lengthsoundfile >> 16) & 0xff, file );fputc( (lengthsoundfile >> 24) & 0xff, file );// ---- "wave"fprintf( file, "wave" );// ---- save headersaveheader( file, samplerate );// ---- save sound datasavesounddatainteger16bit( file, sounddata, numberframes );// ---- close filefclose( file );}else {printf( "problem save file %s\n", filename );}}. Void saveheader( file *file, unsigned int samplerate ) {// ---- name for header "fmt "fprintf( file, "fmt " );// ---- header lengthfputc( 0x10, file ); // length 16 bytefputc( 0x00, file );fputc( 0x00, file );fputc( 0x00, file );// ---- method for encode, 16 bit pcmfputc( 0x01 & 0xff, file );fputc( (0x00 >> 8) & 0xff, file );// ---- number channels (stereo)fputc( 0x02, file );fputc( 0x00, file );// ---- sample rate (hz)fputc( samplerate & 0xff, file );fputc( (samplerate >> 8) & 0xff, file );fputc( (samplerate >> 16) & 0xff, file );fputc( (samplerate >> 24) & 0xff, file );// ---- number bytes/secondunsigned int numberbytessecond = samplerate << 2; // multiply 4 because short (2 byte) * 2 channelfputc( numberbytessecond & 0xff, file );fputc( (numberbytessecond >> 8) & 0xff, file );fputc( (numberbytessecond >> 16) & 0xff, file );fputc( (numberbytessecond >> 24) & 0xff, file );// ---- byte cho một khung (nên = số lượng mẫu vật * số lượng kênh)// ---- number bytes for sampleunsigned short bytesoneframe = 4; // short (2 byte) * 2 channelunsigned char bitsonesample = 16; // shortfputc( bytesoneframe & 0xff, file );fputc( (bytesoneframe >> 8) & 0xff, file );. Fputc( bitsonesample, file );fputc( 0x00, file );}. Void savesounddatainteger16bit( file *file, short *sounddata, unsigned int numbersamples ) {fprintf( file, "data" );unsigned int datalength = numbersamples << 1; // each sample 2 bytefputc( datalength & 0xff, file );fputc( (datalength >> 8) & 0xff, file );fputc( (datalength >> 16) & 0xff, file );fputc( (datalength >> 24) & 0xff, file );unsigned int sampleindex = 0;while( sampleindex < numbersamples ) {short shortdata = sounddata[sampleindex];fputc( shortdata & 0xff, file );fputc( (shortdata >> 8) & 0xff, file );sampleindex++;}}.
Author: Sieuamthanh
1701 - 1713 of 1,713
/ 35