summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Shann <rshann@debianrts.home>2010-10-15 16:33:45 +0100
committerRichard Shann <rshann@debianrts.home>2010-10-15 16:33:45 +0100
commit92fde57098a030cf091a17ccc6fec1600903d7a7 (patch)
tree0b35dd9427ecdfc6a66e541d4d5c7e0962e6694d /include
parentbd453744069ac2be522445060c53c3a099c9d26b (diff)
Document duration fields
Diffstat (limited to 'include')
-rw-r--r--include/denemo/denemo_objects.h2
-rw-r--r--include/denemo/denemo_types.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/denemo/denemo_objects.h b/include/denemo/denemo_objects.h
index 40dc54e3..c7aeb04f 100644
--- a/include/denemo/denemo_objects.h
+++ b/include/denemo/denemo_objects.h
@@ -119,7 +119,7 @@ typedef struct chord
gint lowestpitch;
gint highesty;
gint lowesty;
- gint baseduration; /**< Duration of chord in ticks */
+ gint baseduration; /**< Value to denote the basic chord length, 0 = whole note, 1 = 1/2 note etc. A negative value specifies the basic chord length in terms of ticks, used for longer durations. */
gint numdots; /**< Number of dots that are applied to the note */
gint sum_mid_c_offset;
gint numnotes;
diff --git a/include/denemo/denemo_types.h b/include/denemo/denemo_types.h
index 940feb66..56c371c0 100644
--- a/include/denemo/denemo_types.h
+++ b/include/denemo/denemo_types.h
@@ -159,8 +159,8 @@ typedef struct
DenemoObjType type; /**< The type of object pointed to by the gpointer object field below */
gchar *user_string;/**< Holds user's original text parsed to generated this
object */
- gint basic_durinticks;
- gint durinticks; /**< Duration of object */
+ gint basic_durinticks; /**< Duration of object including dotting but not tuplet/grace note effects. */
+ gint durinticks; /**< Duration of object where 384 (PPQN) is a quarter note, includes any tuplet/grace note effects */
gint starttick; /**< When the object occurs */
gint starttickofnextnote; /**< When the next object occurs */
GList* midi_events;/**< data are the smf_event_ts that this object gives rise to */