|
From: | Steve Cummings |
Subject: | Identifying non-chord notes in Scheme |
Date: | Tue, 26 Nov 2019 10:31:18 -0800 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 |
What's the test for differentiating between non-chord notes and
notes within a chord, when iterating through events in music? I
can examine the notes within a chord individually, but I can't
been able to find the way to capture notes that don't belong to a
chord (or alternatively, to discard note events do belong to a
chord). Leaning heavily on code from Giles T, here's a simple routine
that displays pitches of note events when they are encountered as
such, and also when they occur within a chord. If the goal is to
process non-chord notes only, how can I pick them out? In the
listing below I've marked relevant places with "<<--" Thanks, \version "2.19" #(use-modules (ice-9 receive)) %% so 'receive' can be used #(define (noteEvent? music) |
[Prev in Thread] | Current Thread | [Next in Thread] |