[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] Breve and Denemo's understanding of durations greater
Re: [Denemo-devel] Breve and Denemo's understanding of durations greater than whole note.
Mon, 18 Oct 2010 20:07:49 +0200
Compiled from current git.
It looks like SetDurationInTicks works fine now.
Except that all normal Denemo notes get a whole-note shape afterwards. If we
think of doing tuplets with SetDurationInTicks this could be confusing :)
Good work! A whole new branch of scripting options came up because of this.
On Sun, 17 Oct 2010 09:28:52 +0100
Richard Shann <address@hidden> wrote:
> I have pushed the code for creating notes like Breve in Denemo.
> The only example I have created is under Notes/Rests->Append/Insert
> Duration, once it has been imported via More commands.
> Denemo now understands longer durations than whole-note (semibreve) and
> Anacrusis and whole measure rests can be simplified.
> Note however that as yet the pure rhythm Breve is painted black, not
> brown, making it impossible to tell if you will get a breve or an empty
> space in the print out.
> I hope that the following cairo documentation is explaining how to fix
> if you have some surface source which you'd like to paint to some
> surface destination at position (x, y) you would use code as follows:
> cairo_t *cr = cairo_create (destination);
> cairo_set_source_surface (cr, source, x, y);
> cairo_paint (cr);
> Note that the paint operation will copy the entire surface. If you'd
> like to instead copy some (width, height) rectangle from (source_x,
> source_y) to some point (dest_x, dest_y) on the destination you would
> instead compute a new position for the source surface origin and then
> use cairo_fill instead of cairo_paint:
> cairo_set_source_surface (cr, source, dest_x - source_x, dest_y - source_y)
> cairo_rectangle (cr, dest_x, dest_y, width, height);
> cairo_fill (cr);
> And note that using a surface as the source pattern will work with any
> other cairo drawing operation as well. You can use
> cairo_set_source_surface to get patterned effects from cairo_stroke or
> cairo_show_text just as easily.
> Denemo-devel mailing list