Skip to content

bertfrees/traktor-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Clojure library for interacting with Traktor.

Usage

Include traktor-clj in your :dependencies like this:

[traktor-clj "0.1.0-SNAPSHOT"]

and add my snapshot repository to your custom :repositories

["bertfrees-github-snapshots" "http://bertfrees.github.com/snapshots"]

Master tempo

For this to work, first set up Traktor to send a MIDI clock signal.

user> (use 'traktor.midi)
user> ;; get a value after blocking for at most 10 seconds:
user> (master-tempo)
127.99894
user> ;; get a reference whose value changes constantly:
user> (def tempo (master-tempo-agent))
user> @tempo
127.999886
user> @tempo
128.0006
user> ;; watch the tempo change:
user> (def cncl (master-tempo-watch println))
128.00177
128.00177
127.99958
user> (cncl)
user> ;; only get notified of tempo changes above 0.5 BPM:
user> (master-tempo-watch println 0.5)

License

Copyright © 2013 Bert Frees

Distributed under the Eclipse Public License, the same as Clojure.

About

A Clojure library for interacting with Traktor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published