I finally found some time to implement a csound-play method. As depicted in the code documentation, it is aimed at creating Csound-scores from sc-objects for one or more players and writing it to a .sco-file. All p-fields other than p1-p3 (i.e. the Csound-instrument name, the onset and the duration) will be generated either by a list of lists (for static values) or a user defined function. The latter is the reason why I created a csound.lsp-file and included a simple helper function for creating p-fields for the frequency and amplitude values derived from the events processed by csound-play.
Some work might be necessary in order to implement sndfile-palette compatibility. Albeit there is already a draft of this feature on my hard drive, I decided to keep things straightforward and just push this first working version.
I tested it with a set of my own compositions and with some of the tutorial compositions in your manual and, so far, did not encounter any inconvenience.
Hello Michael,
I finally found some time to implement a csound-play method. As depicted in the code documentation, it is aimed at creating Csound-scores from sc-objects for one or more players and writing it to a
.sco
-file. All p-fields other than p1-p3 (i.e. the Csound-instrument name, the onset and the duration) will be generated either by a list of lists (for static values) or a user defined function. The latter is the reason why I created acsound.lsp
-file and included a simple helper function for creating p-fields for the frequency and amplitude values derived from the events processed bycsound-play
. Some work might be necessary in order to implementsndfile-palette
compatibility. Albeit there is already a draft of this feature on my hard drive, I decided to keep things straightforward and just push this first working version.Here is an example call of the method:
I tested it with a set of my own compositions and with some of the tutorial compositions in your manual and, so far, did not encounter any inconvenience.
Hope you like it…
Greetings Ruben