Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
solsarratea committed Dec 12, 2019
1 parent 3844284 commit 7e80864
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ pom.xml.asc
/.lein-*
/.nrepl-port
.hgignore
nativde/*
native/*
.hg/
38 changes: 22 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,38 @@
Resources to handle midi files when livecoding with Overtone.

## Dependencies

[Overtone](https://github.com/overtone/overtone)


It is recommended to use [emacs-live](https://github.com/overtone/emacs-live)

## Usage

### Init

Run ´lein repl´
Once session is started, run ´(load)´ for loading dependencies and namespaces.


### Dev
Run ´(tools/refresh)´ to reload namespaces

Run ```lein repl```
Once session is started, run ```(-load)``` for loading namespaces.


### Dev
You may use clojure.tools.namespace.repl.

Run ```refresh``` for updating namespaces.


### MIDI file -> piano

Parse midi file to be played by overtone piano.

Example:

(-> "love-dream" read-and-parse-midi play-on-piano)`

#### Example:
Run comment lines in ``` overtone-midi.piano-midi ```

Or either run in REPL:

(in-ns 'overtone-midi.piano-midi)

(-> "love-dream" parser/read-and-parse-midi play-on-piano)`

If you are a piano player you can record yourself using [piano->MIDI](https://piano-scribe.glitch.me/).

Add it to ``` /resources/midis ```
Expand Down
6 changes: 3 additions & 3 deletions src/user.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns user
(:require [clojure.tools.namespace.repl :as tools]))
(:require [clojure.tools.namespace.repl :refer :all]))

(defn load
(defn -load
[]
(tools/refresh))
(refresh))

0 comments on commit 7e80864

Please sign in to comment.