事後であってもデエンファシスできます。
ただワイルドカードを使ってディレクトリー中のすべてのファイルを処理する簡単な方法がわかりませんでした。
http://shimaphoto03.com/program/sox/
にシェルスクリプトの例があるのですが、私にはチンプンカンプンでした。
シェルスクリプトの勉強が必要で、それなら一行コマンドを書いてVimで編集したほうが楽な気がします。
Haskellなら次のように極めて直感的に、かつ短く書くことができます。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import System.Process | |
import System.Directory | |
doCom x = createProcess (proc "sox" [x,("d-"++x),"deemph"]) | |
main = do | |
c <- getCurrentDirectory | |
fs <- listDirectory c | |
print fs | |
mapM_ doCom fs |
listDirectory がないと言われたら、
$ cabal install 'directory-1.2.5.0' -v
またノイズ低減効果も失われます。
ただし聴覚上の差はないとされています。
0 件のコメント:
コメントを投稿