denemo-devel
[Top][All Lists]
Advanced

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

[Denemo-devel] MIDI control thru directives.


From: Richard Shann
Subject: [Denemo-devel] MIDI control thru directives.
Date: Fri, 05 Jun 2009 20:04:23 +0100

I have implemented quite a bit of the MIDI control infrastructure.
As an example, the following script now works:

;;;;;;;;;;
(d-DirectivePut-standalone-minpixels "StepVolume" 20)
(d-CursorLeft)
(d-DirectivePut-standalone-override "StepVolume" (logior
DENEMO_OVERRIDE_VOLUME DENEMO_OVERRIDE_SHIFT))
(d-DirectivePut-standalone-midibytes "StepVolume" "10")
(d-DirectivePut-standalone-display "StepVolume" "piu forte")
(d-DirectivePut-standalone-postfix "StepVolume" "^\\markup {\\bold \
\italic piĆ¹ \\dynamic f }")
(d-RefreshDisplay)
;;;;;;;;;;

This script inserts a standalone directive which puts piu forte over the
previous note and increases the volume by 10.

In the script you can see a value DENEMO_OVERRIDE_VOLUME, which tells
you what is being overridden and the DENEMO_OVERRIDE_SHIFT says that the
value in midibytes (10 in this case) is to be used as an
increment/decrement to the current value. Everything else here is in a
pretty basic state, no fancy graphic etc.

I have not started on things like cresc etc.

Richard






reply via email to

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