Skip to content

Commit

Permalink
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/denemo
Browse files Browse the repository at this point in the history
configure.ac aubio to default to yes
  • Loading branch information
jjbenham committed Jun 8, 2016
2 parents 88090af + bd8decc commit 6f899b7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

;;;procedure adds beats to the bar and plays it the recursively call the procedure to ask if it should be duplicated.
(define (populate-measure)
(d-DirectiveDelete-standalone "Blank")
(let* ((numerator (duration::GetNumerator))
(denominator (duration::lilypond->denemo (duration::GetDenominator)))
(put-beat (eval-string (string-append "d-" (number->string denominator)))))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,38 +1,34 @@
;;;; NewStructuredStaff
(let ((params NewStructuredStaff::params))
(d-MoveToBeginning)
(if (eq? params 'initial)
(d-AddInitial)
(d-AddAfter))
(if (eq? params 'voice)
(d-SetCurrentStaffAsVoice))
(if (not (eq? params 'initial))
(d-MoveToStaffUp)
(d-MoveToStaffDown))

(if (or (Timesignature?) (d-Directive-standalone? "Upbeat")(d-Directive-standalone? "ShortMeasure"))
(begin
(define (copy-this)
(d-PushPosition)
(d-UnsetMark)
(d-SetMark)
(d-Copy)
(if (eq? params 'initial)
(d-MoveToStaffUp)
(d-MoveToStaffDown))
(if (not params)
(d-MoveToStaffDown)
(d-MoveToStaffUp))
(d-Paste)
(d-PopPosition)))
(d-PopPosition))
(d-MoveToBeginning)
(case params
((initial)
(d-AddInitial))
((before)
(d-AddBefore))
(else
(d-AddAfter)))
(if (eq? params 'voice)
(begin
(set! params #f)
(d-SetCurrentStaffAsVoice)))
(if (not params)
(d-MoveToStaffUp)
(d-MoveToStaffDown))
(if (or (Timesignature?) (d-Directive-standalone? "Upbeat") (d-Directive-standalone? "Blank") (d-Directive-standalone? "ShortMeasure"))
(copy-this))
(while (d-MoveCursorRight)
(if (or (Timesignature?) (d-Directive-standalone? "Upbeat")(d-Directive-standalone? "ShortMeasure"))
(begin
(d-PushPosition)
(d-UnsetMark)
(d-SetMark)
(d-Copy)
(if (eq? params 'initial)
(d-MoveToStaffUp)
(d-MoveToStaffDown))

(d-Paste)
(d-PopPosition))))
(if (or (Timesignature?) (d-Directive-standalone? "Upbeat") (d-Directive-standalone? "Blank") (d-Directive-standalone? "ShortMeasure"))
(copy-this)))
(d-MoveToStaffDown)
(d-MoveToBeginning))
2 changes: 1 addition & 1 deletion src/command/select.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ pastewrapper (GtkAction * action, DenemoScriptParam * param)
{
stage_undo (Denemo.project->movement, ACTION_STAGE_END); //undo is a queue (ie stack) so we push the end first

if (copybuffer == NULL)
if ((Denemo.project->movement->directive_on_clipboard) && (copybuffer == NULL))
call_out_to_guile ("(eval-string CreateScriptForDirective::clipboard)");
else
call_out_to_guile ("(DenemoPaste)");
Expand Down

0 comments on commit 6f899b7

Please sign in to comment.