Sompyler ======== Sompyler is a software tool to generate sound and music that have both been defined in hierarchically structured plain text-data (YAML or JSON). Focus of development is neither on audio quality nor on ease of use for the normal by all means. Other available software synthesizers are better in that discipline and should be preferred by musicians. But for a nerd like me to study how sound and music actually "work", one does not need to purchase software with a nice user interface and more comfort and bells and whistles than one can think of. A nerd prefers to do it from the very scratch, even avoiding use of foreign code, i.e. software plug-ins and modules, that have been written explicitly with musicians in mind. The so-called "NIH" syndrome, abbreviation of "not invented here", denoting re-invention of known things like the wheel just for the sake of avoidance of re-use of what is there, but then for sake of knowing and understanding these things really well, is key for learning by programing and is actually not a syndrome at all. In the first place Sompyler or that way of making music in general (that is called "Neusik" by the way, from "NeRDMusik", with RDM alone as abbreviation for *Radically descriptive model*) is a fascinating kind of supplement for my limited capability to play the piano or other instruments really "in time", which is due to movement disorders. So it is primarily individual software, written not for others, just for myself. Everyone feel free to use it, however, who is inclined to make sound and music from text. Of course, that is a nerd's way of doing things, rather than a musician's. Following chart shows how it basically works: ```mermaid graph TD Sompyler -->|1. reads YAML| Sc Sompyler -->|2. reads YAML| In Sc[Score file] -->|first section| Stage[Stereo stage] Stage -->| defines set of | Voice Voice -->| references | In[Instrument] Sc -->|following sections| M[Measures] M -->|include metadata and| VM[Voice-bound measure] VM --> Note Note -->| 5. is associated to matching cached| So[Sound] Note -->| 3. passed to | In In -->| 4. synthesizes | So So --> As(Assembler) As --> Au[Audiofile] Au -->|may be readily imported into| DAW[Your DAW] Au --> P[Your fav. player] P -->| 7a. listen & fix in text editor | Sc P -->| 7b. listen & improve in text editor | In Sompyler -->| 6. second pass | As ``` First, the Sompyler reads in a score file (conventional file ending \*.spls) which initially references instrument definition files, among other metadata, then describes every measure of the piece as a separate YAML document in a stream. Each instrument definition describes in a compact text format mostly by bézier curve coordinates, as well YAML-compliant, exactly how notes sound, to whatever extend depending on their properties (pitch, intensity, length, plus custom ones). The calculated PCM samples are written into an audio file that can be played with your favourite audio-player or it can be imported in DAW tools for further processing. Sompyler is incapable of real-time music production, and it lacks by intention a graphical user interface. Rather, it works more like a traditional unix tool, the only "widget" is a progress bar. As PCM samples in WAV format, Sompyler output can be easily imported into DAW software. By the way, single sounds can be rendered with `scripts/render-single-sound`. That tool has also a mode for deep and comparative sound analysis. However, the development of this mode is paused. An example ---------- First we define an instrument which basically consists of metadata like a name and, most importantly, its character that defines what you will hear when the instrument plays a note. Then we write a tiny piece using that instrument. NOTE: YAML format supports "# comments" that we use to explain what we do here. The parser will ignore everything from "# " to the line ending. #!/bin/sh ################################################################################################### # cd $SOMPYLER_DIR # Please replace by the directory wherever you installed sompyler into. cat > lib/instruments/kliber.spli < scores/example-piece.spls <.