- Take an arbitrary combination of audio files (eg: chords)
- Write down a simple line defining it (eg: "g*3;a*4;am"). Or leave it blank if you want randomness.
- Have generated audio :)
- Experiment with audio
- Use it if you want to fast track your creative process
- Interested in deep learning with audio?? Generate infinite data (yayyy)
- Maybe make cool sound effects just by the power of script
- Mini language of sorts to define any arbitrary audio pattern
- Repeat an many times as you want by adding a * (eg: g*3 will repeat g.wav 3 times)
- You get one track at the end with the entire combinations. Repeated or whatever you want
- Generate n clips
- Generate n random clips from the audio. (customize the randomgen function if you need it)
- Batch generator / randomness (Cuz Deep Learning4life)
- Get python
- Install librosa, numpy, scipy, tqdm. (I will be adding a requirements.txt soon)
- Make a folder called music/ pass your folder as an argument
- Rename your audio files to usable ones. (eg: a.wav, g.wav). This is not required but it will save you typing
- python3 runner.py --dir "music/" --rate 22040 --order "g3;a2" --fname "outputs" --random 0 --n 10
python3 runner.py --dir "music/" --rate 22040 --order "g*3;a*2;a+*5" --fname "outputs" --random 1 --n 20 --rep 3 --maxlen 10
- "-d", "--dir" : Choose the folder to take the music from
- "-r", "--rate" : Rate of audio generated
- "-o", "--order" : File order and repetition
- "-f", "--fname" : Output file name
- "-ran", "--random" : 1 or 0 => Randomly pick audio/ shuffle given order or preserve order
- "-n", "--number" : How many audio files you want
- "-m", "--rep" : How many times should each file be repeated (maximum)
- "-l", "--maxlen" : Maximum audio size . Aka max number of files picked
- Generate 20 songs with random combinations from the file and repeat each audio a maximum of 3 times. Max length should be 10
python3 runner.py --dir "music/" --rate 22040 --order "g*3;a*2;a+*5" --fname "outputs" --random 1 --n 20 --rep 3 --maxlen 10
- Repeat entire sequences. (Code done. Have to think of a syntax)