90 points · by sargstuff · 2y ago · 20 comments
Similar to cnc g-code / post script printing language. Just a more strictly math based view.
Text way of conveying non-linear to linear transform in a portable format without using musical notation. aka raw non-linear piano string vibration to linear 'piano key'.
debatable, but programming language book on sed and how to use regular expressions to manipulate the ascii l-system sounds would seem to be a bit ligher reading/learning than multiple semesters of engineering level calculus to learn mathematical equations for manipulating ocillations.
High school level introduction to l-systems presented as logo programming. [0][1]
----
[0] :Turtle Geometry: The Computer as a Medium for Exploring Mathematics (Artificial Intelligence) by Harold Abelson (Author), Andrea Disessa (Author)
[1] : https://en.wikipedia.org/wiki/Logo_(programming_language)
After that, I would suggest all to read "Gödel, Escher, Bach" among SICP with Chicken Scheme to do the exercises.
Then switch back and forth from The Computational Beauty of Nature and GEB.
My ~/.csirc:
(import scheme)
(import (srfi 203))
(import (srfi 216))
Run "chicken-install srfi-203 && chicken-install srfi-216" as root too.I find systems like this are always tighter than systems designed after the WWW became most people's computer experience.
I did get some promising results - what are fugues but fractal music? - but was never musical enough to do anything more with it.
Different approach constrasting tree generated by room sonar example[0] and Salieri/Mozart song[1].
Initial Salieri song simple 'tree' per single source mono-soundings.
Mozart 'sterioized' Salieri's initial song by embelishment/counterpoint. aka the more detailed 'tree' spin-offs.
---
[0] : http://sites.music.columbia.edu/cmc/courses/g6610/fall2003/w...
[1] : Mozart insults Salieri by playing he own piece better than he did : https://www.youtube.com/watch?v=9jlQiHHMlkA
To clarify, a temporally fractal musical composition would be self similar on different time scales. For example, if we consider a 7 note melody, then we could, in the simplest case, make it fractal by inserting the same 7 note melody (perhaps using a different key, or even a slight variation, but still easily recognizable as the original melody) between selected two notes (preferably neighboring) of the original melody.
Still, I find your remark "what are fugues but fractal music?" interesting, because fugues might be the most suitable musical structures to have a fractal property. In a complex 4 or 5 voice fugue, as the voices partially overlap, sometimes a higher level melody emerges, and this melody could, in principle, be constructed to mimic the common theme. I have never noticed any fugues to be fractal, but I wouldn't be surprised if a genius like Bach had tried to compose such a fugue, and it would be interesting to hear it.
Very Aphex twin.
Perhaps nyquest plot[2], nyquestgui[1] or "Inverse Procedural Modeling of Branching Structures by Inferring L-Systems"[0] discusses an approach.
More 'standard' approach would be to have sound image in svg format then convert svg image to g-code. use image scaling to filter out higher/lower level harmonics.
g-code used in cnc / laster cutter machines is similar to l-system working/local system coordinates.
Lot more verbose, but likely could be culled & transformed into a slimmer 'l-system' like take.
inkscape is a graphics program with the ability to convert svg to g-code.
----
[0] : https://news.ycombinator.com/item?id=38945108
[1] : https://lpsa.swarthmore.edu/Nyquist/NyquistGui.html#Introduc...
Although adding the orchestral music score single track equivalent of speech production looks about the same.[1]
Space / technical complexity not withstanding, could generate a full choir & full orchestra with 1 vocoder per singer/ 1 vocoder per orchestra instrument.
Suppose chatgpt could assist with reducing/minimizing amount of vocoders needed via waveform overlap reductions at the expense of being specific for given set of song(s).
----