„Mathematica“: redaguokite ir išsaugokite WAV failus
Su „Wolfram Mathematica“ galite importuoti, analizuoti, redaguoti ir eksportuoti WAV failus. Mes jums pasakysime kaip.
Importuokite WAV failus į „Mathematica“
Paprasta komanda „audio = Import [kelias, komanda]“ galite importuoti duomenis iš WAV failų į „Mathematica“. Nurodomas kelias ir komanda. Paveikslų galerijoje pateikiama pagalba norint lengvai įvesti kelią. Galite įkelti įvairius WAV failo elementus naudodami šias komandas:
- „Elementai“ parodo, kurią WAV failo informaciją galite importuoti į „Mathematica“
- „AudioChannels“ informuoja apie kanalų, įterptų į WAV failą, skaičių.
- „SampleRate“ išveda atrankos dažnį
- „AudioEncoding“ nurodo, kaip pavyzdžiai yra užkoduojami. Paprastai vertė yra tarp „Integer16“ ir „Integer32“, ty sveikaisiais skaičiais nuo 16 iki 32 bitų. Koduoti galima nuo 4 iki 64 bitų.
- „Duomenys“ yra matrica, kurioje yra kanalo RAW duomenys kiekvienoje eilutėje. Įspėjimas: kadangi šioje matricoje yra visa garso medžiaga, ji kartais gali būti labai didelė. Galima įkelti iki 4 GB dydžio failus. Čia tikrai turėtumėte naudoti „;“ slopinti duomenų išvestį. Kadangi matricai davėte pavadinimą „audio“, galite toliau su ja dirbti.
- Naudodamiesi „Garsu“, „Mathematica“ įkelia failą, įskaitant bangos formos ir spektro ekraną, ir mažą grotuvą, kad atkurtų garsą.
- Su „Taisyklėmis“ visa informacija importuojama į matricą. Šešiose eilutėse yra „AudioChannels“, „AudioEncoding“, „Data“, „SampledSoundList“, „SampleRate“ ir „Sound“ šia tvarka. Dėmesio: ši matrica yra žymiai didesnė nei pats garso failas, todėl jūs tikrai turėtumėte išvesti duomenis naudodami „;“ slopinti.
Analizuokite ir redaguokite WAV failus naudodami „Mathematica“
RAW duomenis, importuotus naudojant „Data“, galima naudoti ir redaguoti „Mathematica“, kaip ir bet kurią kitą lentelę. Šios komandos yra ypač įdomios garso medžiagai:
- Dabar galite parodyti bet kokią reikšmę „garso“ matricoje ir ją pakeisti kaip norite.
- „Matmenys [audio]“ nurodo eilučių ir stulpelių skaičių, ty mėginių skaičių viename kanale.
- Naudojant „area = take [audio [[X, All]]], {pradinė vertė, pabaigos vertė}];“ galite pašalinti dalį kanalo X.
- "Spektro = Furjė [sritis];" atlieka šios dalies Furjė analizę.
- Taip pat galite pakeisti spektrinius komponentus.
- "Re [spektras]", "Im [spektras]", "Abs [spektras]" ir "Arg [spektras]" išveda tikrąją, įsivaizduojamąją dalį, amplitudę ir spektrinių komponentų fazę.
Eksportuokite WAV failus iš „Mathematica“
Norėdami dar kartą padaryti manipuliuotus garso duomenis WAV failais, tiesiog įveskite „Eksportuoti [kelias, komanda]“. Norėdami teisingai nustatyti WAV failą, naudokite šias komandas:
- Prieš eksportuodami turėtumėte naudoti „audio / = Max [Abs [audio];]“) ant | 1 | normalizuoti. Aukštesnės nei 1 ir mažesnės nei -1 vertės yra nepaisomos.
- "" SampleRate "-> 44100" eksportuoja garso medžiagą 44100 pavyzdžių per sekundę greičiu.
- "" AudioEncoding "->" Integer16 "" užkoduoja garso failą su 16 bitų kiekviename pavyzdyje.
- Naudodami „„ AudioChannels “-> 2“ galite užtikrinti, kad eksportuojami tik pirmieji 2 kanalai, net jei garso medžiagoje yra daugiau kanalų.
Čia galite rasti patarimų apie „Wolfram Alpha“. Kaip dirbti su „Audacity“ programa. mes čia paaiškiname.
Naujausi vaizdo įrašai
Kelių įvedimas į „Mathematica“ yra šiek tiek nuobodus: keliai yra užklijuoti kabutėse ir aplankai nėra atskirti brūkšnio ženklu „/“, bet dviem pasviruoju brūkšniu „\\“. Čia tiesiog neveikia kelio kopijavimas iš „Explorer“.
Lengviausias būdas yra naudoti „Įterpti“ -> „Filepath“
"pasirinkti ... "ścieżka_pliku
"pasirinkti ...">
"ścieżka_pliku
"pasirinkti ..." />
"pasirinkti ..." />
ir naršyklės lange pereikite prie norimo failo. Tada „Mathematica“ pažymi failo kelią teisinga rašyba.