[sharing] Explore scala alternative tunings in Max with sslider


    Apr 01 2021 | 11:26 pm
    Hi all!
    I would like to share this small library of abstractions that hopefully make the usage of alternative/microtonal tunings more accessible! It uses the library of 5000+ scala tuning files from the Stichting Huygens-Fokker, and you can also import your own.
    The package contains 3 abstractions and a custom jsui file:
    • th.scala - Load a scala scale into a dictionary, refered to by other objects to easily switch scales for multiple scalaToFrequency converters (stof)
    • th.stof - Convert a number from scala scale-format to the corresponding frequency based on the tune, center and cents value.
    • th.stof~ - Similar as the th.stof object, except it works in the signal domain.
    • th.sslider.js - A custom jsui file that shows a kslider-like object to allow for playing with the custom tuning files. The keys are displayed side-by-side (no black keys), and their width denote the relative interval. A light-gray key denotes the octaves.
    Works very nicely with the lately released Leimma platform by Khyam Allami and Counterpoint: https://isartum.net/leimma
    Feedback/suggestions/bugs are very much welcome, here as a comment or in the github issues page.
    Screenshot of the abstractions help-files
    Screenshot of the abstractions help-files

    • Apr 02 2021 | 1:33 am
      Wow. Thanks!
    • Apr 03 2021 | 5:23 pm
      Going to check this out at some point - thanks!
    • Apr 03 2021 | 8:15 pm
      One extra object has been included: th.ftomb (Frequency to Midi & Bend)
      This object converts any frequency and outputs an integer MIDI note number together with a pitch bending value between 0 - 127 to allow for controlling external midi devices via [noteout] and [bendout] or [midiformat] and [midiout].
      th.ftomb connect to noteout and bendout
      th.ftomb connect to noteout and bendout