TomWhitwell / RadioMusic

Virtual Radio module for Eurorack
328 stars 91 forks source link

.RAW > .WAV? #147

Open mohikan365 opened 6 years ago

mohikan365 commented 6 years ago

Hi, is there anywhere, a WAV version of the default sound library (8Go), please? has somebody already done the job? nice day

lee2sman commented 3 years ago

Hi, I know this is 2 years late, but here's the info for those coming later.

You can use Audacity for example and IMPORT (don't "open") the raw audio files. You must select these settings when prompted:

You can then Export and save them however you want. Too bad they are all mono.

An alternative, use the commandline program sox to convert 1 file at a time.

Convert raw to mono wav:

sox -t raw -r 44100 -b 16 -e signed-integer -c 1 filename.raw filename.wav

Convert raw to stereo wav (both sides the same since source is mono):

sox -t raw -r 44100 -b 16 -e signed-integer -c 2 filename.raw filename.wav

To batch convert, you can make a Bash shell script you run in each folder:

#!/bin/bash

for file in *.raw
do
  echo "Processing $file file..."

  sox -t raw -r 44100 -b 16 -e signed-integer -c 2 $file "$(basename "$file" .raw).wav"

done
mohikan365 commented 3 years ago

two years later....

thanX

nice day

daniel

Le 14 déc. 2020 à 08:03, Lee T notifications@github.com a écrit :

Hi, I know this is 2 years late, but here's the info for those coming later.

You can use Audacity for example and IMPORT (don't "open") the raw audio files. You must select these settings when prompted:

Encoding: 16bit PCD Byte order: No Endianness Channels: 1 (mono) Sample rate: 44100 You can then Export and save them however you want. Too bad they are all mono.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TomWhitwell/RadioMusic/issues/147#issuecomment-744220818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ3S7NU3KBM7AVRKVLE3SG3SUW2DRANCNFSM4FKQ6KJA.