Skip to main content

Vinyl2Digital - PyPi Package

==================================

Vinyl2Digital is a Python3 Pip Package for batch rendering multiple audio files using the Audacity mod-script-pipe.

Install with pip install vinyl2digital

Update with pip install --upgrade vinyl2digital

PyPi version PyPI - Downloads PyPI - License PyPI - Python Version

Demonstration gif

Table of content

Installation

  • Install the package with this command:
pip install vinyl2digital

Setup

  • Enable mod-script-pipe in Audacity
Enable mod-script-pipe
  • Launch Audacity from your terminal
    • Windows Command Prompt Admin
      • Navigate to Audacity executable location cd C:\Program Files\Audacity>
      • Launch Audacity: start audacity.exe
    • Mac/Linux: open -a Audacity
  • Record your audio and splice each track into its own selection (place cursor and press Ctrl+i)
Split Audio Track * Highlight any selected region and choose File->Export->Export Selected Audio, these quality options will be what vinyl2digital uses. So if you want 24 bit FLAC files make sure that option is set in this window. Split Audio Track * Move your cursor to be at the start of your recording * While Audacity is open, run the vinyl2digital python package with the `-t` flag to test your connection to the Audacity mod-script-pipe.
python -m vinyl2digital -t
  • You should now be able to use the vinyl2digital package from the command line to connect with Audacity and batch render multiple audio files one after the other.

Flags

Help

  • -h
    • View the help page
  • -t
    • Test your connection to the Audacity mod-script-pipe

Input

  • -i discogs https://www.discogs.com/master/14720
    • Take a Discogs URL as input for determining how may audio files to export and what metadata to use
  • -i 12
    • Export 12 tracks using default filenames

Output Audio Format

  • -f flac
    • Export selections as flac audio files
  • -f mp3
    • Export selections as mp3 audio files

Output

  • -o "E:\martinradio\rips\vinyl\NewEnglandTeenScene"
    • Set filepath output location

Examples

  • Here are some example commands for vinyl2digital on Win10 command prompt:
  • Export tracks as flac using a Discogs URL

python -m vinyl2digital -i discogs https://www.discogs.com/release/2019460-Various-The-New-England-Teen-Scene -f flac -o "E:\martinradio\rips\vinyl\NewEnglandTeenScene" 
  • Export 5 tracks as mp3 using default filenames

python -m vinyl2digital -i 5 -f mp3 -o "E:\martinradio\rips\vinyl\NewEnglandTeenScene" 

Development

  • In order to develop and test this code locally clone this github repo:

git clone https://github.com/MartinBarker/vinyl2digital.git

  • Install the necessary packages: os, sys, requests, json, time, re
  • Run locally: python3 "vinyl2digital/vinyl2digital/__init__.py" -h

Releasing a new version:

  • Change package version number (setup.py)
$ python -m pip install --upgrade build
$ python -m build
  • This will create the dist/ folder with a new packaged tar
python3 setup.py sdist bdist_wheel
pip3 install twine
python3 -m twine upload dist/*

Metadata

Release files for vinyl2digital 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vinyl2digital 1.0.6
File Size Uploaded
vinyl2digital-1.0.6.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vinyl2digital 1.0.6
File Interpreter ABI Platform
vinyl2digital-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / vinyl2digital-1.0.6.tar.gz

Download URL vinyl2digital-1.0.6.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7e52e7fcb70218b88bb414778a78ada228956a825b25d9214d3b7adeb048d655
BLAKE2b-256 checksum
How to use checksums
6b65db70c6ac7dead1313513c5462883711455b271651476237c1b70d19173d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / vinyl2digital-1.0.6-py3-none-any.whl

Download URL vinyl2digital-1.0.6-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42b10f83578904b266c9520e8ebdea4578895485d3442152cbf7f12863f03827
BLAKE2b-256 checksum
How to use checksums
b1a6cfafd6302e239b97fa83f8c70b6cc12fb3f647868189f26c360c850f9738
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.4

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

0.1.17

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page