Skip to content

๐ŸŽ› ๐Ÿ”Š A Python library for audio.

Adds a new INSTALLATION.md instruction guide and links it in the README.md. Adds a section for first time contributors to CONTRIBUTING.md.

Christine Sutcliffe65ba384bece7
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 5a36f67..1f4aa99 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -95,6 +95,17 @@ Some important notes regarding the summary line:
We also welcome improvements to the project documentation or to the existing
docs. Please file an [issue](https://github.com/spotify/pedalboard/issues/new).
+## First Contributions
+
+If you are a first time contributor to `pedalboard`, familiarize yourself with the:
+* [Code of Conduct](CODE_OF_CONDUCT.md)
+* [GitHub Flow Workflow](https://guides.github.com/introduction/flow/)
+* Issue and pull request style guides
+
+When you're ready, navigate to [issues](https://github.com/spotify/pedalboard/issues/new). Some issues have been identified by community members as [good first issues](https://github.com/spotify/pedalboard/labels/good%20first%20issue).
+
+There is a lot to learn when making your first contribution. As you gain experience, you will be able to make contributions faster. You can submit an issue using the [question](https://github.com/spotify/pedalboard/labels/question) label if you encounter challenges.
+
# License
By contributing your code, you agree to license your contribution under the
diff --git a/INSTALLATION.md b/INSTALLATION.md
new file mode 100644
index 0000000..3d6c63d
--- /dev/null
+++ b/INSTALLATION.md
@@ -0,0 +1,108 @@
+# How To Install `pedalboard`
+
+`pedalboard` is a useful tool if you are an artist, musician, producer, or enthusiast getting started with Python and looking to add effects to audio files.
+
+## Compatability
+
+For `pedalboard`, ensure you have [Python 3.6](https://www.python.org/downloads/) or higher.
+
+## Create a Project Directory
+Create a folder that will serve as your project directory for `pedalboard`.
+
+## Virtual Environments
+
+`pedalboard` is delivered as a Python package. When working with packages, you should create a [virtual environment](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/). This ensures that a package is only added to your current project, rather than your entire operating system.
+
+You can set up a virtual environment by navigating to your project directory in the terminal and running the following commands:
+
+```
+# Create a virtual environment
+python3 -m pip install --user virtualenv
+python3 -m venv env
+
+# Activate the virtual environment
+source env/bin/activate
+```
+
+Note: Windows commands are available [here](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/).
+
+If you want to leave your `pedalboard` project, you can deactivate the virtual environment using:
+
+```
+deactivate
+```
+
+You can activate your virtual environment at any time, without needing to create it again.
+
+## Packages
+
+`pedalboard` is a package that can be installed using Python's package manager, [pip](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/). If you have set up a virtual environment, pip will add the package there. You will need to make sure that:
+
+```
+# pip is installed
+python3 -m pip install --user --upgrade pip
+
+# pip is updated
+python3 -m pip --version
+```
+
+## Installing `pedalboard`
+
+After setting up a virtual environment and installing pip, install `pedalboard`:
+```
+pip install pedalboard
+````
+
+## Accessing Audio Files
+
+The [interactive demo](https://colab.research.google.com/drive/1bHjhJj1aCoOlXKl_lOfG99Xs3qWVrhch#scrollTo=J3MBH6-5yz97) for `pedalboard` uses [librosa](https://librosa.org/). Librosa is a popular package that provides access to audio files, as well as tools for music and audio analysis.
+
+You can install librosa using pip:
+```
+pip install librosa
+```
+
+If you plan to use your own audio files, save them to the project directory. You can use [`import`](https://docs.python.org/3/reference/import.html) statements in your program to call an audio file from your project's directory.
+
+## Creating A Python Program
+
+You'll want an IDE to build, run, and debug your code. [Thonny](https://thonny.org/) is a popular choice for beginners, and there are many others.
+
+Open a new Python file in your IDE and save it to your project directory.
+
+Note: creating a virtual environment will create a new directory (env) within your project directory. Save your .py file in the project directory.
+
+You can now refer to the [interactive demo](https://colab.research.google.com/drive/1bHjhJj1aCoOlXKl_lOfG99Xs3qWVrhch#scrollTo=J3MBH6-5yz97) to understand how audio and effects are called.
+
+The [interactive demo](https://colab.research.google.com/drive/1bHjhJj1aCoOlXKl_lOfG99Xs3qWVrhch#scrollTo=J3MBH6-5yz97) uses additional packages, including NumPy and Matplotlib. More information is available below.
+
+# Key Terms
+
+package: a collection of modules (a Python program that you import), bound by a package name. `pedalboard` is a package.
+
+virtual environment: an environment that allows packages to be installed for a specific project, rather than system wide.
+
+[venv](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/): a tool used for creating virtual environments in Python.
+
+[pip](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/): a package manager for Python. Allows you to install and use packages, including `pedalboard`.
+
+[wheel](https://packaging.python.org/guides/distributing-packages-using-setuptools/#wheels): a way of delivering packages in Python. Allows the user to install the package quicker. `pedalboard` is delivered as a wheel.
+
+Integrated Development Environment (IDE): a software application that combines different programming activities, including writing, executing, and debugging code.
+
+## Other Useful Packages
+
+[NumPy](https://numpy.org/): a package that facilitates mathematical and other operations on data. NumPy is referenced in the `pedalboard` [interactive demo](https://colab.research.google.com/drive/1bHjhJj1aCoOlXKl_lOfG99Xs3qWVrhch#scrollTo=iusi0_xLyz97).
+```
+pip install numpy
+```
+
+[Matplotlib](https://matplotlib.org/stable/index.html): a package for data visualization. Matplotlib is referenced in the `pedalboard` [interactive demo](https://matplotlib.org/).
+```
+pip install matplotlib
+```
+
+
+
+
+
diff --git a/README.md b/README.md
index 85ecf25..f4b7dd4 100644
--- a/README.md
+++ b/README.md
@@ -13,6 +13,8 @@
`pedalboard` is a Python library for adding effects to audio. It supports a number of common audio effects out of the box, and also allows the use of [VST3ยฎ](https://www.steinberg.net/en/company/technologies/vst3.html) and [Audio Unit](https://en.wikipedia.org/wiki/Audio_Units) plugin formats for third-party effects. It was built by [Spotify's Audio Intelligence Lab](https://research.atspotify.com/audio-intelligence/) to enable using studio-quality audio effects from within Python and TensorFlow.
+Internally at Spotify, `pedalboard` has been used for Machine Learning to improve the process of data augmentation. `pedalboard` also helps in the process of content creation, supporting creators in the production of effects that would otherwise be time consuming.
+
## Usage
- Built-in support for a number of basic audio transformations:
@@ -43,6 +45,8 @@
pip install pedalboard
```
+If you are new to Python, follow [INSTALLATION.md](https://github.com/spotify/pedalboard/blob/master/INSTALLATION.md) for a robust guide.
+
### Compatibility
`pedalboard` is thoroughly tested with Python 3.6, 3.7, 3.8, and 3.9, as well as experimental support for PyPy 7.3.