aboutsummaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorDavide Morelli <morellid@users.sourceforge.net>2005-12-01 12:09:05 +0000
committerDavide Morelli <morellid@users.sourceforge.net>2005-12-01 12:09:05 +0000
commitae67336fe2a0184a69662b29607ce48fd01cf52e (patch)
treee818f6b99964af6cdaeeadaded5588ae2b36853c /common.h
parentd1e8296b58d1677c36bb23fdf882526dfbb68ce4 (diff)
going on with functions
svn path=/trunk/externals/frankenstein/; revision=4098
Diffstat (limited to 'common.h')
-rwxr-xr-xcommon.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/common.h b/common.h
index 0c50210..4aa6314 100755
--- a/common.h
+++ b/common.h
@@ -27,11 +27,6 @@ typedef struct _note_event
struct t_note_event *next; // this is a list, link to the next element
} t_note_event;
-// manipolation functions
-
-// TODO:
-// - from data structures to lists of numbers and vice versa
-// - from a (voice, rest, duration) representation to (voice, start, duration) and viceversa
// --------- rhythm notation
@@ -81,7 +76,7 @@ unsigned short int duration2int(t_duration dur);
// tells you how many durations there are
int possible_durations();
-// manipolation functions
+// ----------- rhythm manipolation functions
// TODO:
// - from data structures to lists of numbers and vice versa
@@ -100,4 +95,16 @@ void setFirstBeat(t_rhythm_event **firstEvent, unsigned short int voice, float f
void concatenateBeat(t_rhythm_event *currentEvent, unsigned short int voice, float fduration);
// used to free the memory allocated by this list
-void freeBeats(t_rhythm_event *currentEvent); \ No newline at end of file
+void freeBeats(t_rhythm_event *currentEvent);
+
+// -------- notes manipulation functions
+
+// set the first beat of a sequence
+void setFirstNote(t_note_event **firstEvent, unsigned short int voice, float fduration, t_note note);
+
+//adds a beat at the end of this list
+void concatenateNote(t_note_event *currentEvent, unsigned short int voice, float fduration, t_note note);
+
+// used to free the memory allocated by this list
+void freeNotes(t_note_event *currentEvent);
+