aboutsummaryrefslogtreecommitdiff
path: root/rhythms_memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'rhythms_memory.c')
-rwxr-xr-xrhythms_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rhythms_memory.c b/rhythms_memory.c
index ff69082..a7d7ce6 100755
--- a/rhythms_memory.c
+++ b/rhythms_memory.c
@@ -96,7 +96,7 @@ void end_measure(t_rhythms_memory *x)
counter = 0;
while(currEvent)
{
- fduration = currEvent->when / x->measure_length;
+ fduration = (float) (((float) currEvent->when) / ((float) x->measure_length));
if (x->seq_initialized)
{
concatenateBeat(x->curr_seq, currEvent->voice, fduration, 1);