Csound plugin for microtonal tunings.
Opcodes:
scalatuning
loads tunings from scl and kbm files using the Surge Synth Team Tuning Librarymtsesp_notetofrequency
queries tunings with ODDSound MTS-ESP
Load tuning from Scala scl and kbm files:
igTuning[] scalatuning "scale.scl", "keyboardmap.kbm"
Load tuning from scl file using default keyboard map:
igTuning[] scalatuning "scale.scl", ""
Here igTuning
is an array of 128 frequencies in Hz, the frequency for each midi note.
Get frequency in Hz for midi note p4
from an MTS-ESP master:
iFreq mtsesp_notetofrequency p4
Get frequency for midi note p4
, updated throughout note:
kFreq mtsesp_notetofrequency p4
Optionally pass midi channel to use per-channel MTS-ESP tuning tables:
ichn midichn
kFreq mtsesp_notetofrequency p4, ichn
$ git clone https://github.com/narenratan/csound_tuning.git
$ cd csound_tuning
$ git submodule update --init --recursive
$ cmake -B build
$ cmake --build build
On Linux this produces a shared object libtuning.so
in the build
directory.
Putting this in the ~/.local/lib/csound/6.0/plugins64
directory makes it
available to Csound (for Csound version >= 6.16; for more details see the
Csound Plugins docs).
- Built-in Csound tuning opcodes and GEN51
- A user defined opcode for reading scala files
- An article on tuning in Csound
- The Microcsound score language and frontend