A Library for Algorithmic Music Composition

Written by on November 22, 2020 in LISP, Music, Programming with 0 Comments
A Library for Algorithmic Music Composition

I have recently started implementing a library for algorithmic music composition. It provides higher-level algorithms and abstractions for composing multi-track music, and works with Opusmodus software. Opusmodus is a great platform for music composition and has excellent support for MIDI-based music. My library is an attempt to enrich the Opusmodus platform with features that facilitate easier […]

Continue Reading

Book Review – The Common Lisp Condition System: Beyond Exception Handling with Control Flow Mechanisms.

Written by on November 8, 2020 in Book Review, LISP, Programming with 0 Comments
Book Review – The Common Lisp Condition System: Beyond Exception Handling with Control Flow Mechanisms.

Title: The Common Lisp Condition System: Beyond Exception Handling with Control Flow Mechanisms Author: Michat “Phoe” Herda Publisher: Apress Year: 2020 Unlike with other languages, it is rare to find new books being published on Lisp. The last book on Lisp, which I purchased was “Common Lisp Recipes”  by Edmund Weitz in March 2016. After a […]

Continue Reading

Using Random Walk Principle to Generate Music

Written by on October 24, 2020 in LISP, Music, Programming with 0 Comments
Using Random Walk Principle to Generate Music

In mathematics, the simplest example of Random Walk is a random process along a one-dimensional plane of integers, starting at 0 and moving in the positive or negative direction in steps of +1 or -1, with equal probability. The Random Walk theory has been applied in many domains including Physics and even the Stock Market. Here is a […]

Continue Reading

Template-based Text Generation – Part 2

Written by on October 11, 2020 in LISP, Natural Language Processing, Programming with 0 Comments
Template-based Text Generation – Part 2

In my previous article, I showed how “iLangGen” framework facilitates text generation using templates. I talked about the various “patterns” that can be used in a template. However, in that article, I did not go into the details of the “Embedded Template” pattern. That is the focus of today’s article. Embedded Template This pattern allows […]

Continue Reading

Template-Based Text Generation

Written by on September 28, 2020 in LISP, Natural Language Processing, Programming with 0 Comments
Template-Based Text Generation

I had written earlier about natural language generation using my iLangGen framework. I used a “template” text file which was instantiated dynamically based on predefined “grammars” and external data. The sample application I show-cased demonstrated its utility and versatility. Today I would like to touch upon a few other “pattern” elements that can be embedded in […]

Continue Reading

Mathematica: Using TextCases to Extract Information from Natural Language Text 

Written by on September 13, 2020 in Mathematica, Natural Language Processing, Programming with 0 Comments
Mathematica: Using TextCases to Extract Information from Natural Language Text 

Extracting meaningful information from unstructured, human readable text is a hot topic of research today and has important applications in many domains. I have written a few blogs related to this topic, for example, see this and this. In today’s article, I would like to show how Mathematica can be a great help when working with […]

Continue Reading

Book Review – Homeopathy in Intensive Care and Emergency Medicine

Written by on August 30, 2020 in Book Review, Homeopathy with 0 Comments
Book Review – Homeopathy in Intensive Care and Emergency Medicine

Title: Homeopathy in Intensive Care and Emergency Medicine Author: Michael Frass and Martin Bundner (Ed.) Publisher: Narayana Verlag Year: 2017 (2nd English Edition) This book is somewhat unique in that it shows, through a good number of cases, that homeopathy can be used alongside allopathy in treating serious disorders in intensive care and emergency. There […]

Continue Reading

Pattern Matching: Comparing Elixir and Mathematica

Written by on August 16, 2020 in Elixir, Mathematica, Programming with 0 Comments
Pattern Matching: Comparing Elixir and Mathematica

One of the things I like about Elixir is its support for patterns at the core language level, not through library functions as in most other languages. This contributes to writing cleaner code, in my opinion.   Another environment that I am familiar with, namely Mathematica, boasts of (arguably) the most powerful symbolic programming language called […]

Continue Reading

Elixir: Wrapping Lisp Calls in a Macro

Written by on August 1, 2020 in Elixir, LISP, Programming with 0 Comments
Elixir: Wrapping Lisp Calls in a Macro

In the last article, I showed how to make calls to Lisp functions from Elixir. We followed this pattern: 1) Initialize the Lisp environment by calling Lisp.init 2) Call Lisp functions as needed 3) Free the Lisp environment by calling Lisp.quit Using the powerful macro programming capabilities of Elixir, we can write a simple macro […]

Continue Reading

Calling Lisp Functions from Elixir

Written by on July 19, 2020 in Elixir, LISP, Programming with 0 Comments
Calling Lisp Functions from Elixir

In the last article I showed how we can simulate the idea of Lisp’s “closure” in Elixir. Today, I would like to demonstrate how we can call Lisp functions from Elixir using the NIF interface. What is the need to integrate Elixir with another language? I can think of two reasons: 1) We have a library […]

Continue Reading

Top