Csound Csound-dev Csound-tekno Search About

[Csnd] PythonScore Example - Bach Invention 1

Date2013-04-16 16:44
FromJacob Joaquin
Subject[Csnd] PythonScore Example - Bach Invention 1
Hello Everyone,

I'm moving from building PythonScore proof-of-concepts to creating stronger examples in hopes this will better demonstrate Python as a suitable score language for Csound. Today, I'm showcasing today is Bach's Invention 1:

Audio:


Here's a list of featured functions in this example:

* The score uses 4/4 measures. 

* Ornaments as functions. Specifically for trills and mordents. These are analogous to user-defined opcodes in the orchestra, but for the score.

* The tempo varies throughout the piece with the function varied_tempo_map(), which generates a "t" classical score event with random data.

* The harpsichord is tuned to A 415 and is well tempered.

* The final chord is arpeggiated in the final measure.

* The performance is humanized a bit. The start times and durations for the harpsichord are post-processed at the very end of the score with a slight hint of randomness.

Best,
Jake




Date2013-04-16 21:12
FromStéphane Rollandin
Subject[Csnd] [ANN] Csound-x 2.24 for Emacs released (was: PythonScore Example - Bach Invention 1)
Hello,

I just uploaded a new version of Csound-x for Emacs at the usual place:
http://www.zogotounga.net/comp/csoundx.html

It adds some support for score generators in  tag, such 
as the python example from Jacob:

> Bach's Invention 1:
> https://github.com/jacobjoaquin/csd/blob/master/examples/music/jsbach/invention_1.csd

Notably, splitting the CSD in orc & sco (for editing the score in 
python-mode) then wrapping them up into a CSD again should preserve the 
"python" reference.

Tell me of any problem and feature requests.


Stef


Date2013-05-02 10:32
Frompeiman
Subject[Csnd] Re: [ANN] Csound-x 2.24 for Emacs released (was: PythonScore Example - Bach Invention 1)
Hi Stef,

Since emacs has a built-in python mode, would it be possible to have the
PythonScore code highlighted?

Thanks
Peiman 





--
View this message in context: http://csound.1045644.n5.nabble.com/PythonScore-Example-Bach-Invention-1-tp5722016p5722791.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-05-02 11:02
FromStéphane Rollandin
SubjectRe: [Csnd] Re: [ANN] Csound-x 2.24 for Emacs released
> Since emacs has a built-in python mode, would it be possible to have the
> PythonScore code highlighted?

It is possible:

- edit a CSD such as 
http://jacobjoaquin.github.io/csd/_downloads/amen_upgrade.csd

- from the "CSD" menu, select "Structure -> edit sco & orc indirectly"

- now you will have a buffer for orchestra and a buffer for score (these 
are indirect buffers: modifying their contents do modify the CSD).

- do M-x python-mode in the score buffer

That's it.


Stef

Date2013-05-02 11:18
Frompeiman khosravi
SubjectRe: [Csnd] Re: [ANN] Csound-x 2.24 for Emacs released
Oh wow, that's really amazing! I'm liking this. It works!

BTW am I right to be using this emacs editor on os x? http://www.gnu.org/software/emacs/

Thanks
Peiman






www.peimankhosravi.co.uk || Subscribe to RSS Feed

To receive emails about upcoming concerts visit this page & enter your email address in the 'follow' section.



On 2 May 2013 11:02, Stéphane Rollandin <lecteur@zogotounga.net> wrote:
Since emacs has a built-in python mode, would it be possible to have the
PythonScore code highlighted?

It is possible:

- edit a CSD such as http://jacobjoaquin.github.io/csd/_downloads/amen_upgrade.csd

- from the "CSD" menu, select "Structure -> edit sco & orc indirectly"

- now you will have a buffer for orchestra and a buffer for score (these are indirect buffers: modifying their contents do modify the CSD).

- do M-x python-mode in the score buffer

That's it.


Stef


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"