Skip to content

mystiqality/PiRapGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiRapGenerator

Make anyone rap the digits of pi (sample files are of Ted Nivison)

Installation

This requires pydub to be installed (via pip) which requires ffmpeg to export audio
(Must be added to PATH or use pydub.AudioSegment.ffmpeg = "/path/to/ffmpeg" or AudioSegment.converter idk anymore)

Usage

Create audio clips of an exact length (in this case, 1/2 beat @ 140bpm = ~214ms) with the naming scheme shown (pi0, pi1, etc)
Create a txt containing pi up to the number of digits you want and edit the path to it in the script
Run the script using terminal/cmd as it runs roughly 2x faster than in IDLE Shell
To cancel the render early, use CTRL+C to interrupt the program. This will then save the current file's progress.
The chunk size can be changed, however a larger size may cause the program to run slower

Info & Warnings

  • No additional compression is done by default so each chunk will be the combined file size of each induvidual part
  • Currently the final chunk will be named as if it failed.
  • You may be limited by memory which is the cause of an 'Argument out of range' error.
  • Combine.py is currently very basic and will process all WAVs in the output folder/the scripts running folder. All WAVs that have been made by Combine.py must be deleted before it is run again.

About

Make anyone rap the digits of pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages