This repository contains Python scripts to help manage .wav files for the BOSS RC-30 Loop Station. These scripts simplify renaming, organizing, and preparing .wav files for loading into the RC-30, ensuring compatibility with its requirements.
- Introduction
- Scripts Overview
- Instructions for File Preparation
- Connecting the RC-30 to Your Computer
- Disclaimer
Portions of this codebase were generated or refined using large language models (LLMs) including models such as Gemini, ChatGPT, Claude, DeepSeek, Qwen, Dolphin-Llama, and more, integrated API Plugins Such as Cline, Continue, Roo Code, and more, and Service Providers such as OpenRouter, Ollama, HuggingFace, Cursor, and GitHub Copilot and more. Final code was reviewed and adapted by the project maintainer. Use at your own risk.
For a complete Limitation of Liability Statement, please visit my website.
The BOSS RC-30 Loop Station supports playback of .wav files in a specific format and folder structure. These utility scripts are designed to:
- Rename
.wavfiles to the required format (e.g.,001_1.wavthrough099_1.wav). - Organize renamed files into properly structured folders (
001_1,002_1, etc.). - Clear the RC-30’s
ROLANDfolder in preparation for a new batch of tracks.
- Format:
.wav - Bit Rate: 16-bit linear, stereo
- Sampling Frequency: 44.1 kHz
- Maximum File Size: 1.7 GB (combined total of all files)
- Maximum Total Time: Approximately 3 hours
- Minimum Time: 1.5 seconds
- Purpose: Renames
.wavfiles to the format001_1.wavthrough099_1.wav. - Key Features:
- Skips files already named in the correct format.
- Stops renaming once
099_1.wavis reached. - Appends the track number to the end of the original filenames to preserve them.
- Purpose: Organizes renamed
.wavfiles into folders corresponding to their names (e.g.,001_1). - Key Features:
- Creates folders such as
001_1,002_1, etc. - Moves each
.wavfile to its respective folder.
- Creates folders such as
- Purpose: Clears all
.wavfiles from the RC-30’sROLANDfolder while leaving the folder structure intact. - Key Features:
- Removes
.wavfiles from subfolders within theROLANDdirectory. - Ensures a clean slate for the next batch of tracks.
- Removes
- Purpose: Converts
.wavand.mp3files to the required format for the BOSS RC-30 Loop Station. - Key Features:
- Converts files to
.wavformat. - Appends
_convertedto the original filename.
- Converts files to
Ensure all .wav files meet the RC-30’s requirements:
- Use audio editing software to convert files if needed (e.g., Audacity).
- Verify the following:
- File format is
.wav. - Bit rate is 16-bit linear, stereo.
- Sampling frequency is 44.1 kHz.
- File format is
Run the rename_wav_files.py script to rename files to the required format:
- Place your
.wavfiles in a directory. - Execute the script with the directory as input.
- The script renames files to
001_1.wavthrough099_1.wavand appends the track number to the original filenames.
Run the gen_dir_mv_wav_files.py script:
- Place the renamed
.wavfiles in a directory. - Execute the script.
- The script creates folders (
001_1,002_1, etc.) and moves each file to its corresponding folder.
Before transferring new files, clear the RC-30’s ROLAND folder:
- Connect the RC-30 to your computer (see instructions below).
- Run the
clean_wav_files.pyscript to remove existing.wavfiles while keeping the folder structure intact.
-
Power On:
- Turn on the RC-30 by inserting a plug into the OUTPUT L jack.
- Note: The RC-30 will not operate on USB bus power. Use an AC adaptor to ensure stability.
-
USB Connection:
- Use a commercially available USB cable to connect the RC-30’s USB connector to your computer’s USB 2.0 port.
- Ensure the RC-30 is stopped and all phrases are saved before connecting.
-
Access the RC-30’s Drive:
- Windows: Open "BOSS_RC30" (or "Removable Disk") under My Computer (or This PC).
- Mac: Open the "BOSS_RC-30" icon on your desktop.
-
Transfer Files:
- Copy
.wavfiles into their respective folders (001_1,002_1, etc.) in theROLAND/WAVEdirectory. - Do not overwrite existing
.wavfiles in any folder.
- Copy
-
Safely Disconnect:
- Windows: Use the "Safely Remove Hardware" option in the system tray.
- Mac: Right-click the USB drive icon and select "Eject."
- Press the RC-30’s [RHYTHM ON/OFF] button to return to normal operation.
- Disconnect the USB cable.
These scripts are provided as a convenience tool for managing .wav files compatible with the BOSS RC-30 Loop Station. Proper use is essential to avoid data loss. Always back up your data before transferring
This Python script is designed to convert .wav and .mp3 files into a format compatible with devices like the BOSS RC-30 Loop Station. It ensures that audio files meet the following specifications:
- Format: WAV
- Bit Rate: 16-bit linear, stereo
- Sampling Frequency: 44.1 kHz
- File Size: Maximum of 1.7 GB
- Total Duration: Approximately 3 hours (total across all files)
- Minimum Duration: 1.5 seconds
- File Compatibility: Supports
.wavand.mp3input formats. - Audio Processing: Converts files to the required specifications, including frame rate, channel count, and bit depth.
- Output Management: Saves converted files in a designated output directory, appending
_convertedto the original file name.
If you prefer not to use Python or need a graphical user interface, VLC Media Player can also be used to convert audio files to the required format. VLC is free, widely available, and capable of handling the necessary adjustments.
-
Python 3: Ensure Python 3 is installed on your system.
-
Setup Virtual Environment:
It is recommended to use a virtual environment to manage dependencies for this project.-
Create the virtual environment:
Navigate to the root of the project directory in your terminal and run:python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
After activation, your terminal prompt should be prefixed with
(venv). - On Windows:
-
-
Install Dependencies:
Once the virtual environment is activated, install the required Python packages using therequirements.txtfile.pip install -r requirements.txt
Before proceeding, copy entire "ROLAND" folder on RC-30 to backup drive. Only delete folders as follows. Never delete folders without performing a recovery. Do not place more than one WAV file in any folder. If a folder already contains a WAV file, do not overwrite it. Write WAV files into empty folders only. Filenames can contain the following characters: A-Z (uppercase letters), 0-9 (numerals), _ (underscore)
E:/
└──BOSS_RC_30/
└── ROLAND/
2. Copy .wav files from computer drive into the respective folder on BOSS RC-30 drive, e.g., copy 001_1.wav and 001_2.wav files into /001_1/ and /001_2/ folders, repspectively, and so on, that is, up to 099_1.wav and 099_2.wav into /099_1/ and /099_2/, repspectively.
E:/
└──BOSS_RC_30/
└── ROLAND/
└── WAVE/
├── 001_1/
│ └── 001_1.WAV
├── 001_2/
│ └── 001_2.WAV
├── 002_1/
│ └── 002_1.WAV
├── 002_2/
│ └── 002_2.WAV
└── ...
├── 099_1/
│ └── 099_1.WAV
└── 099_2/
└── 099_2.WAV
All files must be .wav data format, 16-bit linear, stereo bitrate, and 44.1kHz sampling frequency. Use script convert_audio_CODEC.py to convert into playable format.
E:/
└──BOSS_RC_30/
└── ROLAND/
└── WAVE/
├── 001_1/
│ └── 001_1.WAV
├── 001_2/
│ └── 001_2.WAV
└── ...
E:/
└──BOSS_RC_30/
└── ROLAND/