-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation style and navigation; add mkdocs includes
- Loading branch information
Showing
9 changed files
with
212 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
|
||
## 1. Set up a virtual environment | ||
|
||
Creating a new virtual environment for SignalFlow minimises the chances of conflict with other local Python installs. | ||
|
||
``` | ||
python3 -m venv signalflow-env | ||
source signalflow-env/bin/activate | ||
``` | ||
|
||
--- | ||
|
||
## 2. Install SignalFlow | ||
|
||
Installing SignalFlow with `pip`: | ||
|
||
```shell | ||
pip3 install signalflow | ||
``` | ||
|
||
If the installation succeeds, you should see `Successfully installed signalflow`. | ||
|
||
--- | ||
|
||
## 3. Line test | ||
|
||
The installation of SignalFlow includes a command-line tool, `signalflow`, that can be used to test and configure the framework. Check that the installation has succeeded by playing a test tone through your default system audio output: | ||
|
||
This may take a few seconds to run for the first time. To exit the test, press Ctrl-C (`^C`). | ||
|
||
``` | ||
signalflow test | ||
``` | ||
|
||
--- | ||
|
||
## 4. Hello, world | ||
|
||
In your text editor, create a new `.py` file containing the below code: | ||
|
||
```python | ||
from signalflow import * | ||
|
||
graph = AudioGraph() | ||
sine = SineOscillator([440, 880]) | ||
envelope = ASREnvelope(0.1, 0.1, 0.5) | ||
output = sine * envelope * 0.1 | ||
output.play() | ||
graph.wait() | ||
``` | ||
|
||
When you run the script, you should hear a short stereo "ping". | ||
|
||
--- | ||
|
||
## 5. (Optional) Interactive notebooks in Jupyter | ||
|
||
A nice way to experiment with SignalFlow is by using [Jupyter](https://jupyter.org/) interactive notebooks. | ||
|
||
Install Jupyter and register this virtual environment as a Jupyter kernel: | ||
|
||
```shell | ||
pip3 install jupyter | ||
python3 -m ipykernel install --name signalflow-env | ||
``` | ||
|
||
Open a Jupyter notebook: | ||
|
||
``` | ||
jupyter notebook | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Getting started | ||
|
||
## Requirements | ||
|
||
SignalFlow supports macOS, Linux (including Raspberry Pi), and has alpha support for Windows. | ||
|
||
## Installation | ||
|
||
--- | ||
|
||
### macOS | ||
|
||
If you are an existing Python user and confident with the command line: | ||
|
||
[macOS: Install from the command line](macos/command-line.md){ .md-button } | ||
|
||
If you're new to Python or getting started from scratch: | ||
|
||
[macOS: Easy install with Visual Studio Code](macos/easy.md){ .md-button } | ||
|
||
--- | ||
|
||
### Linux | ||
|
||
[Linux: Install from the command line](linux/command-line.md){ .md-button } | ||
|
||
--- | ||
|
||
## Examples | ||
|
||
[Several example scripts](https://github.com/ideoforms/signalflow/tree/master/examples) are included within the repo, covering simple control and modulation, FM synthesis, sample granulation, MIDI control, chaotic functions, etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# SignalFlow: Command-line installation for Linux | ||
|
||
SignalFlow currently supports Linux x86_64 and Raspberry Pi. | ||
|
||
These instructions assume you have a working version of Python 3.8+. | ||
|
||
{% | ||
include-markdown "installation/command-line-generic.md" | ||
%} | ||
|
||
--- | ||
|
||
{% | ||
include-markdown "installation/next-steps.md" | ||
%} | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Next steps | ||
|
||
- **Examples**: [Several example scripts](https://github.com/ideoforms/signalflow/tree/master/examples) are available for SignalFlow, covering simple control and modulation, FM synthesis, sample granulation, MIDI control, chaotic functions, etc. | ||
- **Configuration**: To configure your audio hardware, see [AudioGraph configuration](../graph/config.md). | ||
- **Tutorials**: Coming soon |
Oops, something went wrong.