Musical Mad Science: Set up for new Keyboard Layouts page
Editing Tips: Seem to have finally gotten it right, for now
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Introduction ==
== Introduction ==


Although I have yet to compose anything, I have on occasion thought that "notes between the notes" (to borrow a term from _Hear Between the Lines_) would be fitting in certain circumstances.  Several months ago, I stumbled upon the great radiation of microtonal music that is occurring on YouTube thanks to the advent of (semi-)affordable microtonal keyboards and software synthesizers that actually sound good.  Surprisingly, the recent microtonal profusion seems to have a great overlap with a profusion of new classical music.  In addition, I have found interest in old music that would now be thought of as xenharmonic, such as early Baroque works in quarter-comma meantone.  And even if I never compose any microtonal music myself, this experience, including readings on this Xenharmonic Wiki, have been a wild ride in learning what it is that makes today's dominant system of 12 equally spaced notes per octave actually work well.
Although I have yet to compose anything, I have on occasion thought that "notes between the notes" (to borrow a term from ''Hear Between the Lines'') would be fitting in certain circumstances.  Several months ago, I stumbled upon the great radiation of microtonal music that is occurring on YouTube thanks to the advent of (semi-)affordable microtonal keyboards and software synthesizers that actually sound good.  Surprisingly, the recent microtonal profusion seems to have a great overlap with a profusion of new classical music.  In addition, I have found interest in old music that would now be thought of as xenharmonic, such as early Baroque works in quarter-comma meantone.  And even if I never compose any microtonal music myself, this experience, including readings on this Xenharmonic Wiki, have been a wild ride in learning what it is that makes today's dominant system of 12 equally spaced notes per octave actually work well.


[[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 10:14, 12 February 2024 (UTC)
Added: [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 10:14, 12 February 2024 (UTC)
 
== Editing Tips ==
 
I edited the Intervals table for [[84edo]], [[55edo]], and [[171edo]] to add links to the intervals. Since these have a LOT of intervals even only considering the simplest ones, and the tables even had some fairly complicated intervals, I did not want to do this by hand. Instead, I copied the Wiki source for the section to a text file ("171EDOintervals.txt" in the latest example) on my computer (running MacOS, but in principle this should work on Linux or Windows Subsystem for Linux), used the "sed" command on it to do the actual editing (took less time to learn to use "sed" than to do all that by hand), and then copied the output file ("171EDOintervals.new.txt" in the latest example) back into the article section. First, here is the full "sed" command (note that the "-E" option indicates the use of extended regular expressions):
 
<code>sed -E "s#[0-9]+/[0-9]+#\[\[&amp;\]\]#g" 171EDOintervals.txt > 171EDOintervals.new.txt</code>
 
And it did the right thing, and has worked since then for several other interval tables, although sometimes the Intervals sections have stuff after (or rarely, before) their tables that I have to manually exclude from editing (to avoid creating duplicate links or otherwise altering something that shouldn't be altered).
 
To put it into the comments of what I did is not so straightforward. This requires escaping the backslashes with backslashes (doubling them) and converting the ampersand ("&amp;") into "&amp;amp;" &mdash; note that this also needed to be done in the source of this page (which means that if you copy from the page source instead of from the display version of the page, you need to change it back into a normal ampersand). (Note that originally I '''didn't''' do this in the source of this page, and that seemed to work, but then did weird things when looking at the page history.)
 
The case for [[23edo and octave stretching]] was more complicated, because the ratios were expressed with colons instead of slashes, and I needed to change them to slashes.  This required the following "sed" command using capture groups (which Google's AI actually did a decent job of explaining how to use when I didn't know the name and was trying to look up "divided regular expression"):
 
<code>sed -E "s#([0-9]+):([0-9]+)#\[\[\1/\2\]\]#g" 23EDOintervals.txt > 23EDOintervals.new.txt</code>
 
The parentheses delimit the input capture groups (and note that the "+" needs to be inside each capture group or it won't work right, and if you need to look for literal parentheses you have to escape them with backslashes, same as already used with the square brackets), and the &bsol;1 and &bsol;2 indicate the output capture groups, which also gives you the option to reverse them (for instance, if the table contained the ratios inverted, which was not the case in this particular example, but is somewhat common elsewhere). Note that the capture groups replace the overall regular expression (which was represented by an ampersand in the first version of the command); this gets rid of the ampersand and its quirk, but it turns out that backslash followed by a digit does similarly strange things when looking at page history, but apparently not in a &lt;code&gt;...&lt;/code&gt; block, so I had to change them to HTML form as well (convert each "&bsol;" to "&amp;bsol;", but '''only''' in this explanatory text &mdash; if done in the &lt;code&gt;...&lt;/code&gt; block, this conversion itself causes subtle problems). Apparently, Wikitext editing and history display get '''really weird''' when you include regular expressions in them, but it looks like I have gotten it right for now.
 
Added:  [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 07:20, 29 October 2025 (UTC)<br>
Last modified:  [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 11:21, 2 January 2026 (UTC)
 
== Keyboard Layout Lab ==
 
The following pages have keyboard layouts gleaned from other sources (with links to demonstration videos, whenever possible), as well as some untested layouts that might be of interest to others.  These have gotten so numerous that they have had to be reorganized repeatedly to avoid the "Template include too large" error (apparently, you can't have more than 11 Lumatone mappings on one page. I have to keep reorganizing these Lumatone mappings, as they have proliferated due to the Lumatone wizardry of [[Bryan Deister]], who has invented most of the Lumatone mappings that have been shown to work whether or not a temperament is readily identifiable.  Bryan Deister isn't afraid to come up with a musically workable Lumatone mapping without an identified temperament and still have an excellent chance of playing something that sounds good on it, while engaging in a quest to play in every EDO from 1 to 100. ''Respect.''
 
[[User:Lucius Chiaraviglio/Keyboard Layout Lab|Keyboard Layout Lab]] (the main and original page for this) has miscellaneous mappings having identified temperaments. As these accumulate to multiple mappings for a temperament or group of temperaments, these get split out to sub-pages.
 
[[User:Lucius Chiaraviglio/Keyboard Layout Lab/Devichromic Lumatone mappings|Devichromic Lumatone mappings]].  This originated from [[Bryan Deister]]'s Lumatone mapping for 69edo, but has proliferated into a whole set of various EDO sizes to investigate how it performs, with most sizes currently being untested.
 
[[User:Lucius Chiaraviglio/Keyboard Layout Lab/Marvel and Miracle Lumatone mappings|Miracle and Marvel Lumatone mappings]].  This originated from multiple [[Marvel]] and [[Miracle]] Lumatone mappings starting to accumulate, as noted above for the main page.
 
[[User:Lucius_Chiaraviglio/Keyboard_Layout_Lab/Valentine Lumatone mappings|Valentine Lumatone mappings]] were the first to get their own page, due to their profusion causing dreaded "template include too large" error as these expanded to several (mostly as-yet untested) mappings for different EDO sizes, due to the observation that this mapping should really shine at the larger double-digit EDO sizes.  Most sizes are currently untested.
 
[[User:Lucius_Chiaraviglio/Keyboard_Layout_Lab/Various rank-3 temperament Lumatone mappings|Various rank-3 temperament Lumatone mappings]] also had to get their own page due to the dreaded "template include too large" error, as Bryan Deister's Lumatone wizardry goes wild filling in the larger EDO sizes.
 
[[User:Lucius_Chiaraviglio/Keyboard_Layout_Lab/Various other Lumatone mappings|Various other Lumatone mappings]] soon also had to get their own page due to the dreaded "template include too large" error.
 
[[User:Lucius_Chiaraviglio/Keyboard_Layout_Lab/Unnamed_temperament_Lumatone mappings|Unnamed temperament Lumatone mappings]] got unnamed temperament Lumatone mappings from the above, except for those that are rank-3 (see below) or non-isomorphic (see further below)
 
[[User:Lucius_Chiaraviglio/Keyboard_Layout_Lab/Unnamed_rank-3_temperament_Lumatone mappings|Unnamed rank-3 temperament Lumatone mappings]] &mdash; as above, but rank-3.
 
[[User:Lucius_Chiaraviglio/Keyboard_Layout_Lab/Non-Isomorphic Lumatone mappings|Non-Isomorphic Lumatone mappings]] gets non-isomorphic Lumatone mappings, including those that can be generated by the isomorphic mechanism by specifying a number of notes per [[equave]] that is different from the actual number of notes.
 
[[User:Lucius_Chiaraviglio/Keyboard_Layout_Lab/Non-Octave Lumatone mappings|Non-Octave Lumatone mappings]] gets non-octave Lumatone mappings (currently not divided by type, although very likely that will eventually have to change).
 
Added:  [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 06:31, 31 May 2025 (UTC)<br>
Last modified:  [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 08:52, 14 December 2025 (UTC)


== Musical Mad Science ==
== Musical Mad Science ==


The following pages are for various experimental musical ideas.
The following pages are for various musical mad science projects
 
[[User:Lucius Chiaraviglio/Musical Mad Science|Musical Mad Science]] has various other ramblings.
 
Added: [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 04:53, 18 March 2025 (UTC)<br>
Last modified:  [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 06:32, 31 May 2025 (UTC)
 
== Overall Page Index ==


[[User:Lucius Chiaraviglio/Keyboard Kraziness|Keyboard Kraziness]] has keyboard layouts gleaned from other sources (with links to demonstration videos, whenever possible), as well as some untested layouts that might be of interest to others.
{{Special:PrefixIndex/User:Lucius_Chiaraviglio/}}


[[User:Lucius Chiaraviglio/Keyboard Layouts|Keyboard Layouts]] has various ramblings.
Added:  [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 22:20, 23 June 2025 (UTC)