Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
schollz committed Aug 2, 2021
1 parent 3dcea71 commit 069de40
Showing 1 changed file with 30 additions and 18 deletions.
48 changes: 30 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,51 @@

This repo is a [Go library](https://pkg.go.dev/github.com/schollz/teoperator/src/op1?tab=doc) and a server that you can chop up sounds that can build synth and drum patches for the OP-1 or OP-Z. I went down a [rabbit hole to reverse-engineer the OP-1 drum patch](https://schollz.com/blog/op1/) and this was the end result. You can access the server at https://op1z.com and you can build your own synth and drum patches from any sound.

## Command-line program

<p align="center">
<a href="https://op1.schollz.com/patch?audioURL=https%3A%2F%2Fcdn.loc.gov%2Fservice%2Fgdc%2Fgdcarpl%2Fgdcarpl-1624415%2F1624415.mp3&secondsStart=982&secondsEnd=1002"><img src="/static/image/example2.png"></a>
</p>
To use as a command line program you first need to [install Go](https://golang.org/doc/install) and then in a terminal run:

```
go get -v github.com/schollz/teoperator@latest
```

## Install
That will install `teoperator` on your system.

You can follow these instructions to download this repo and run it locally. First install the pre-requisite programs. Instructions for both Windows and Linux.
### Make synth patches

#### Linux
To make a synth patch just type:

```
$ sudo apt install imagemagick ffmpeg
$ sudo add-apt-repository ppa:chris-needham/ppa
$ sudo apt-get update
$ sudo apt-get install audiowaveform
$ sudo -H python3 -m pip install youtube-dl
teoperator --synth piano.wav
```

#### Windows
Optionally, you can include the base frequency information which can be used on the op-1/opz to convert to the right pitch:

```
$ go get github.com/schollz/zget
$ zget https://github.com/wincentbalin/compile-static-audiowaveform/releases/download/1.2.2/audiowaveform-mingw64.zip
$ unzip audiowaveform-mingw64.zip
$ mv audiowaveform to path
$ scoop install ffmpeg imagemagick youtube-dl
teoperator --freq 220 --synth piano.wav
```

### Build and run
### Make drum patches

To make a drum patch you can convert one or multiple files. Splice points will be set at the boundaries of each individual file:

```
teoperator --drum kick.wav snare.wav openhat.wav closedhat.wav
```

## Web server ([teoperator.com](https://teoperator.com))

<p align="center">
<a href="https://op1.schollz.com/patch?audioURL=https%3A%2F%2Fcdn.loc.gov%2Fservice%2Fgdc%2Fgdcarpl%2Fgdcarpl-1624415%2F1624415.mp3&secondsStart=982&secondsEnd=1002"><img src="/static/image/example2.png"></a>
</p>


```
$ sudo apt install imagemagick ffmpeg
$ sudo add-apt-repository ppa:chris-needham/ppa
$ sudo apt-get update
$ sudo apt-get install audiowaveform
$ sudo -H python3 -m pip install youtube-dl
$ go build
$ ./teoperator --serve --debug
[info] 2020/05/17 13:33:58 listening on :8053
Expand Down

0 comments on commit 069de40

Please sign in to comment.