[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Denemo-devel] Using the current volume setting in a denemo directive
From: |
Richard Shann |
Subject: |
[Denemo-devel] Using the current volume setting in a denemo directive |
Date: |
Sat, 12 Sep 2009 18:17:37 +0100 |
The latest check in lets you output notes using the currently active
volume. The syntax is to put %%% into midibytes at the point where you
would put the volume (velocity in MIDI nomenclature).
For example:
(d-DirectivePut-standalone-midibytes "mytag" "0x99 64 %%%")
inserted somewhere in some music would start note number 64 on channel
9.
Combining with the notation $ for the current channel you could use
(d-DirectivePut-standalone-midibytes "mytag" "0x9$ 64 %%%")
to play note 64 in the current channel at the current volume.
It is time to write some functions in denemo.scm that will hide all this
from writers of scripts - e.g.
(define MIDIStartNote (note) ....)
would execute
(d-DirectivePut-standalone-midibytes (string-join "mytag" "0x9$" note "%%%"))
while other functions would stop the note, or take channel or volume as
parameters.
etc
Richard
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Denemo-devel] Using the current volume setting in a denemo directive,
Richard Shann <=