From 8835fd9e4dbeb386e044a4a6e4519639d6f50fae Mon Sep 17 00:00:00 2001 From: mescalinum Date: Wed, 19 Aug 2009 14:30:30 +0000 Subject: further fix data load/save. allow multiple tracks per patch file. svn path=/trunk/externals/ffext/; revision=11981 --- composer/pattern.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'composer/pattern.c') diff --git a/composer/pattern.c b/composer/pattern.c index cf1940b..ed5bce4 100644 --- a/composer/pattern.c +++ b/composer/pattern.c @@ -38,9 +38,9 @@ static t_pattern* pattern_new(t_track* track, t_symbol* name, t_int rows) { int i; for(i = 0; i < rows; i++) { - debugprint("x->x_rows[%d] = " PTR, i, x->x_rows[i]); + //debugprint("x->x_rows[%d] = " PTR, i, x->x_rows[i]); pattern_new_empty_row(x); - debugprint("x->x_rows[%d] <- " PTR, i, x->x_rows[i]); + //debugprint("x->x_rows[%d] <- " PTR, i, x->x_rows[i]); } debugprint("created new pattern " PTR " with %d rows (x_rows = " PTR ")", x, x->x_rows_count, x->x_rows); @@ -116,16 +116,16 @@ static t_atom* pattern_getcell(t_pattern* x, t_int row, t_int col) { static void pattern_setrow(t_pattern* x, t_int row, t_atom* rowdata) { debugprint("pattern_setrow(" PTR ", %d, " PTR ")", x, row, rowdata); row = WRAP(row, x->x_rows_count); - debugprint("x->x_rows[%d] = " PTR, row, x->x_rows[row]); + //debugprint("x->x_rows[%d] = " PTR, row, x->x_rows[row]); t_atom *myrowdata = x->x_rows[row]; memcpy(myrowdata, rowdata, sizeof(t_atom) * x->x_track->x_ncolumns); - debugprint("x->x_rows[%d] <- " PTR, row, x->x_rows[row]); + //debugprint("x->x_rows[%d] <- " PTR, row, x->x_rows[row]); } static void pattern_setcell(t_pattern* x, t_int row, t_int col, t_atom* a) { row = WRAP(row, x->x_rows_count); col = WRAP(col, x->x_track->x_ncolumns); - debugprint("about to write an atom (size=%d) at address " PTR, sizeof(t_atom), &(x->x_rows[row][col])); + //debugprint("about to write an atom (size=%d) at address " PTR, sizeof(t_atom), &(x->x_rows[row][col])); memcpy(&(x->x_rows[row][col]), a, sizeof(t_atom)); } -- cgit v1.2.1