Resources to handle midi files when livecoding with Overtone.
It is recommended to use emacs-live
Run lein repl
Once session is started, run (-load)
for loading namespaces.
You may use clojure.tools.namespace.repl.
Run refresh
for updating namespaces.
Parse midi file to be played by overtone piano.
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.
Add it to /resources/midis
Use REPL to select interval of MIDI-file to parse, and transcribe it into a namespace.
Run
(midi2code)
Set configuration:
- select MIDI file from resources
- bounds of interval
- tempo (scale factor for duration of events).
You may play sample, and edit it until you get what you need.
Once you end up with editing, use created function to play sample.
Use it for livecoding 💜
Copyright © 2019 FIXME
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.