[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Denemo-devel] Using call_out_to_guile() for built-in denemo commands
From: |
Richard Shann |
Subject: |
[Denemo-devel] Using call_out_to_guile() for built-in denemo commands |
Date: |
Thu, 11 Mar 2010 11:08:08 +0000 |
>(Of course, we should be calling directly in C, not via guile, but that
is another story)
So, I tracked this through, and (call_out_to_guile "d-Insert2") is
calling InsertDur2().
So you should be able to make a call InsertDur2(NULL, NULL) to insert a
quarter note at the cursor position, with creation of a new measure if
the cursor position is at the end of the measure.
Slightly better might be code like this
DenemoScriptParam param;
InsertDur2(NULL, ¶m);
and then you can examine param.status to find out what happened.
(This is off the top of my head, so E&OE)
Richard
- [Denemo-devel] Using call_out_to_guile() for built-in denemo commands,
Richard Shann <=