Jump to content

Recommended Posts

Posted

Hi again.

Maybe this is a pure LISP support Q but I ask anyway.

 

This works in my score of course:

(display-midi (compile-score 'string-quartet-a :instrument 'violin1))

but when I try to do this:

(defparameter *default-pathname-defaults* "XXXXXX")

(load "score.opmo")
(load "String Quartet-A.opmo")
(load "String Quartet-A-Timeline.opmo")
(load "String Quartet-B.opmo")
(load "String Quartet-C.opmo")

(display-midi (compile-score 
               '((string-quartet-a :start 1 :end 2 :instrument 'violin1) ;<--------
                               (string-quartet-a :start 1 :end 2)
                               (string-quartet-b)
                               (string-quartet-c)
                               (string-quartet-a-t :start 4 :end 4)
                               (string-quartet-a :start 1 :end 2))
                               :file "xxx")
                               :display :quick-view)

(display-musicxml *last-score*)

 

":instrument" gives an error.

I like this way of working but I can't figure out how to solve this.

If I execute without ":instrument 'violin1" things work great.

 

Thx in advance

Lasse

Any LISP Guru that can give me a clue?

By the way...

Is there a way to save score "a"  in the workspace from within score "b" programmatically?

In my LISP books that seems to be not an easy task.

Happy for any advice.

Posted
(string-quartet-a :start 1 :end 2 :instrument 'violin1)

This will produce an error. The :instruments is for extracting an instrument/s only.
Each score need to have the same count of instrument and the same instrument names.

Posted

I understand.

 

(compile-score '((string-quartet-a-t :start 1 :end 2)
                               (string-quartet-a :start 1 :end 2))
                             :instrument 'violin1)

That works.

I guess it is because it is written to a omn file and that file knows nothing about any scores. They are of course concatenated by "compile score".

(pprint (compile-score '((string-quartet-a-t :start 1 :end 2)
                               (string-quartet-a :start 1 :end 2))
                              :output :score))

/Lasse

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy