Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHDERUPTENFRES

Elysia Tools

Navigation

Media

Blues / Ragas / Maqam Microtonal Pitch-Bend Tutor — MIDI 2.0, MPE and Scala .scl Encodings

· Last updated:2026-09-14

Map world tunings — 7-limit just blues, Arabic maqamat (Rast/Bayati/Hijaz/Saba) on 24-EDO quarter tones, the 22-shruti table, gamelan slendro/pelog, 31-EDO, 53-EDO and the A440 harmonic grid — onto nearest-note + RPN fine tuning, MPE 14-bit bends at ±2/±24/±48/±96 semitones, MIDI 2.0 32-bit pitch bend, the MIDI 2.0 Pitch 7.9 note attribute, and a Scala .scl export.

Details

What this tool helps you do

Encoding rules: every degree snaps to its nearest MIDI note; the deviation is expressed as (a) RPN 1 fine tuning (±100 cents over 14 bits, ≈0.0061 ¢/LSB — per-note under MPE because each note owns a channel); (b) an MPE 14-bit bend = 8192 × deviation-semitones ÷ bend-range (the MPE specification defaults to ±48 semitones per note and ±2 on the master channel, set via RPN 0); (c) a MIDI 2.0 32-bit pitch bend scaled from the 0x80000000 centre over the same range (the field is 32-bit — not 64-bit as sometimes quoted); (d) the MIDI 2.0 Note On attribute type 1 “Pitch 7.9”, an unsigned 7-bit semitone + 9-bit fraction fixed point (512 LSB per semitone), encoded from the note at or below the target. Shruti ratios follow Thakur (2015); maqamat are quantized to the Arabic 24-EDO system (live performance is freer); gamelan tunings differ per ensemble and the table gives survey approximations; the A440 grid uses cents = 1200·log₂(n/8). The .scl export follows the Huygens-Fokker format (implicit 1/1, ratio or cents lines, period last).

Execution

Run this tool

Fill in the form, run the tool, and review the result in one place.

Samples

Examples that match this tool

Related

Continue with connected tools and hubs

Written by the Elysia Tools team

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Key facts

Category
Media
Input types
select, number, checkbox
Output type
html
Sample coverage
4
API ready
Yes

Overview

The Blues / Ragas / Maqam Microtonal Pitch-Bend Tutor maps non-12-TET world tuning systems—including 7-limit just blues, Arabic 24-EDO maqamat, the 22-shruti table, gamelan slendro and pelog, EDO systems, and harmonic series grids—into exact MIDI 1.0 RPN fine-tuning, MPE 14-bit pitch bend values, MIDI 2.0 32-bit bend words, MIDI 2.0 Pitch 7.9 attributes, and downloadable Scala (.scl) tuning files.

When to use

  • Mapping non-12-TET world music scales or just intonation systems to standard MIDI synthesizers, MPE controllers, and MIDI 2.0 engines.
  • Calculating exact pitch bend offsets and RPN fine-tuning parameters to accurately perform quarter tones, shrutis, or microtonal intervals in a DAW.
  • Generating and exporting microtonal scale definition files (.scl) formatted to Huygens-Fokker standards for virtual instruments.

How it works

  1. 1Select a tuning system, such as 7-limit blues, 24-EDO maqamat, 22 shrutis, gamelan surveys, EDO divisions, or the A440 harmonic series.
  2. 2Set the root MIDI note (21–108), the reference frequency for A4 in Hertz, and the pitch bend range (±2, ±24, ±48, or ±96 semitones).
  3. 3Inspect calculated pitch deviations displayed as nearest MIDI notes, RPN 1 fine tuning, MPE 14-bit bends, MIDI 2.0 32-bit bends, and Pitch 7.9 fixed-point note attributes.
  4. 4Download a Huygens-Fokker compatible Scala .scl file containing the scale description, degree count, and explicit pitch ratios or cent values.

Use cases

  • Configuring MPE synthesizers with per-note pitch bends to play authentic 24-EDO maqam quarter-tone melodies.
  • Setting up fine-tuning tables and MIDI 2.0 Pitch 7.9 attributes for Hindustani 22-shruti and just intonation ragas.
  • Exporting Scala .scl files to retune software synthesizers to gamelan slendro, pelog, 31-EDO, or 53-EDO tuning systems.

Examples

1. Encoding Maqam Rast for MPE Performance

Microtonal Music Producer

Background

A producer is sequencing a traditional Middle Eastern composition in a DAW using an MPE-compatible software synthesizer.

Problem

Quarter-tone intervals like Sikah and Awj require exact 14-bit pitch bend values and Scala definitions for accurate performance.

How to use

Select 'Maqam Rast (24-EDO)', set the root MIDI note to 60 (C4), select the ±48 semitone bend range, and enable Scala file generation.

scale: maqam-rast
rootMidi: 60
a4Hz: 440
bendRangeSemitones: 48
writeSclFile: true

Outcome

Receives exact bend values (0x1FAB for quarter-tone deviations), MIDI 2.0 Pitch 7.9 parameters, and a 7-degree downloadable .scl tuning file.

2. Mapping 22 Shrutis for Indian Classical Tuning

Sound Designer

Background

A sound designer is building an Indian classical instrument patch requiring traditional 22-shruti ratios.

Problem

Needs exact cent deviations and MIDI 1.0 pitch bends within a narrow ±2 semitone range to align with just intonation ratios.

How to use

FAQ

How are microtonal pitches encoded for MIDI 1.0 and MPE?

Each pitch snaps to the nearest standard MIDI note, with remaining cents deviation expressed as RPN 1 fine-tuning or 14-bit pitch bend messages scaled to the selected bend range.

What is the MIDI 2.0 Pitch 7.9 attribute format?

It is an unsigned fixed-point note attribute using a 7-bit semitone value and a 9-bit fractional part (512 LSB per semitone), measured from the note at or below the target pitch.

How is the MPE pitch bend value calculated?

The 14-bit bend value is computed as 8192 multiplied by the semitone deviation divided by the pitch bend range, offset from the center value 0x2000.

What format does the exported tuning file use?

It generates a standard Huygens-Fokker Scala (.scl) file with scale metadata, interval counts, and exact fractional ratios or cent values with an implicit 1/1 root.

How are Arabic maqam scales represented?

Maqamat such as Rast, Bayati, Hijaz, and Saba are mapped according to the theoretical 24-tone equal temperament (24-EDO) quarter-tone system.

Home
Tools3212
Samples593
Visualizations471
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
Python

Web Image Processing Python Samples

Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion

Media

MIDI Viewer Samples

Sample MIDI file for the in-browser MIDI Viewer

Programming Languages

Scala Language Samples

Essential Scala programming examples and functional programming concepts

Java

Android Image Processing Java Samples

Android Java image processing examples including reading/saving images, scaling, and format conversion

Media

MIDI 1.0 / MIDI 2.0 UMP Universal MIDI Packet, Channel Voice 2.0, SysEx 7/8-bit Wire-Protocol Decoder & Byte Counter

Decode a MIDI 1.0 bytestream (status bytes, running status, System Common / Real Time, System Exclusive) or a MIDI 2.0 Universal MIDI Packet stream — message types 0x0 Utility, 0x1 System, 0x2 MIDI 1.0 Channel Voice, 0x3 SysEx 7-bit, 0x4 MIDI 2.0 Channel Voice with 16-bit velocity and the 7.9 pitch attribute, 0x5 SysEx 8-bit / Mixed Data, 0xD Flex Data, 0xF UMP Stream — with per-packet field tables, byte/word/packet counts, reserved-field validation, SysEx continuation state machines, and MIDI 1.0 ⇄ UMP translation.

Media

88-key Piano Studio

A full piano, a little room to play. Learn a phrase, connect a MIDI keyboard, or record your own.

Media

Genre Classifier AI

Classify a track into genres from measured evidence: GTZAN timbral-texture features, beat-grid pulse shape, band balance, key and dynamics — with a ranked top-3 and the reason behind every pick.

Media

Instrument Identifier AI

Detect which instruments play in a track: onset-split note analysis scores every event against 13 timbre profiles and reports ranked instruments, families and per-note evidence.

Choose '22 Shrutis (Hindustani)', set the root note to 60, choose a bend range of ±2 semitones, and generate the tuning data.

scale: shruti-22
rootMidi: 60
a4Hz: 440
bendRangeSemitones: 2
writeSclFile: true

Outcome

Generates 22-degree tuning offsets (such as r1 256/243 bending to 0x1FEF) along with a 21-line ratio-based .scl file.