From: steven yi <stevenyi@cs...> - 2004-05-17 21:24:31
(I've cc'd the new bluemusic-users list as well. If possible, please
resubscribe to the new list on the sourceforge homepage of blue.)
I've looked into athenacl but never got around to figuring out how one
might use it outside of its interactive console. One would have to
investigate the athenacl classes and see how they might be used within a
python script alone. (I'd try running pydoc from the athenacl root
directory to check out the classes doc's if there are any at first, and
then checking out the source).
There are a couple of ways these classes could be used within blue:
1)You could make a copy of the athenacl install in your home directory's
.blue/pythonLib folder. That folder is put onto the PYTHONPATH for
jython, so when using the pythonObject in blue you'd be able to do
imports from the athenacl package to use those classes. Jython does not
have all of the classes that regular cpython has, so this may or may not
work depending on how dependent athenacl is on Python features. (Jython
is also only equivalent to python 2.1 so any 2.2+ features would not be
usable). This would allow using athenacl with the python soundObject.
2)Perhaps a bit easier would be to use the external soundObject. What
you could do then is put your script as the text for the external, then
for a commandline use something like:
and make your script print out the athenalcl-generated SCO. Blue will
pick that SCO up and you could then manipulate it with note processors,
embed in polyObjects, freeze, etc.
This has been of interest to me to try out using athenacl within blue
but something I've put off for a while; if you're interested to work
through it with me I will start spending some time on it after
tomorrow's BACSUG meeting and hopefully will be able to get things going
by Wednesday night or Thursday sometime.
It would probably be worth emailing Christopher Ariza some questions
about using AthenaCL outside of the interactive console.
p.s. - There's an article from a music theory journal (don't have it on
me but can send you the info later tonight if interested) that was
written by a guy who I think had some contact with Ariza as the article
is all about the methods used to evaluate uniformity, smoothness, etc.
that are features from AthenaCL. I found it useful in helping to get a
better understanding of AthenaCL.
stephane boussuge wrote:
>i want to use athenacl in blue but i don't know the
>procedure for that.
>could you explain me and give me an example?