[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting double accidentals

From: SK
Subject: Detecting double accidentals
Date: Tue, 21 Jan 2020 21:27:31 +0100


I wrote a script for generating music theory worksheets for school. One feature is the generation of chords that should be named by the students.
The way this function works is by simply transposing some predefined chords to a new randomly generated root. To keep the difficulty controllable, I would like to filter out double accidentals in some cases, e.g. to not produce an augmented F# chord.
Does anybody know about a way to check in scheme if music has double accidentals, or can think of another smart way of doing this?

I would not want to define all possible chords manually, and I think that filtering out certain root notes is quite complex, too, if you just want to avoid double accidentals.

Kind regards!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]