|
From: | David Nalesnik |
Subject: | Re: Programming Question |
Date: | Thu, 18 Sep 2014 20:00:50 -0500 |
> I am not top-posting
David,
I defined a second variable nsiz which is 1, 2 or 3
Tried
(case duration-log
((nsiz) "a" )
(else "")))
This condition was never succeeding although I printed out nsiz and
duration-log and they were the same.
Then I changed it into an if statement - that worked. This is to add a
suffix to note name for half notes in normal duration, quarter notes in
halved durations, and eighth notes when durations are further halved. It
should be obvious from the output that it has worked.
Then further, I wanted the suffix to be "i" if the note was d or b. I
tried various if statements and they are all failing for some reason.
default-name which is equal to "d" gives a #f when tested, for example.
Not sure what to do to make it work.
[Prev in Thread] | Current Thread | [Next in Thread] |