Liking cljdoc? Tell your friends :D

Clojars Project

tonal-clj

Clojure wrapper library into the excellent tonal JavaScript library for the JVM.

tonal is a music theory library. Contains functions to manipulate tonal elements of music (note, intervals, chords, scales, modes, keys). It deals with abstractions (not actual music or sound).

This is possible via GraalVM's JavaScript engine

Usage

The wrapper library should work with on the JVM with JDK11+ with by adding the following :jvm-opts:

["-XX:+UnlockExperimentalVMOptions" "-XX:+EnableJVMCI"]
(require '[tonal.midi :as midi])

(time (midi/midi-to-freq 60))

;; "Elapsed time: 0.573886 msecs"
;; => 261.6255653005986

Refer to the tonal documentation for more information.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close