Rational numbers in D

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Sat Jun 9 18:17:11 PDT 2012


On 10/06/12 00:52, Stewart Gordon wrote:
> By using an integer type to store pitches in such a way that the semitone is the
> basic unit.
>
> Do you compose music that makes use of demisemitones, thirds of tones, and so on?

Yes, I use quarter-tones.  Other people use other intervals (e.g. in Turkish 
music there are intervals of 1/9, 4/9, 5/9 and 8/9 of a tone; and let's not even 
get into what Harry Partch and his compositional descendants have used).  I'd 
like to support all those options.  A straightforward rational number seems the 
easiest way to do so.


More information about the Digitalmars-d mailing list