There is a new release of abcsound. Different URL this time: http://www.kneuro.net/abcsound/
I've added the ability to control pfield values within the abc score. There's also a somewhat whimsical tutorial page that explains how to use abcsound.py to generate .csd files, including multiple voices and pfield control.
Ciao, JK



Something new...
The new version works as advertised on the included sample, but throws an exception on a file of mine that worked previously. Here's a section of the file (edited down from the original version, here).
instr Guitar csound=1 p4=pitch
voices Guitar
X:1
T:The Mermaid
Q:120
M:4/4
L:1/8
K:D
(F3/G/)| A2-A3/F/ A2-A3/B/|A3/G/ F3/E/ D2 A3/A/| B2 G2 d2 c3/B/|A6
B3/c/|d2 d3/d/ (d3/c/) A3/F/|(G3/F/) G3/A/ B2
c3/d/|A2 A3/F/ A3/G/ E3/F/|D3/E/ F3/G/ A2
d3/B/|A2 A3/F/ A3/G/ E3/F/ D6|
F3/G/|A2 F2 (A3/G/) (E3/C/)|D6 D3/D/|B2 G2 d2 (c3/B/)|A6
(B3/c/)| d2 d3/d/ d3/c/ A3/F/|(G3/F/) G3/A/ B2
c3/d/|A2 A3/F/ A3/G/ E3/F/|D3/E/ F3/G/ A2
d3/B/|A2 A3/F/ A3/G/ E3/F/|D6|
And this is the exception trace when I run it:
; instr: Updating instr {} with score {}
Traceback (most recent call last):
File "abcsound.py", line 1411, in
csal.writeScore(csdLines)
File "abcsound.py", line 1112, in writeScore
self.writeCsdScore(csdLines)
File "abcsound.py", line 1126, in writeCsdScore
self.writeScore(None)
File "abcsound.py", line 1120, in writeScore
item.csoundPrint(self)
File "abcsound.py", line 1055, in csoundPrint
item.csoundPrint(score)
File "abcsound.py", line 744, in csoundPrint
istmt=instrEl.buildIstmt(self,score)
File "abcsound.py", line 412, in buildIstmt
fields[1]=startTime
IndexError: list assignment index out of range
--
http://www.jamendo.com/en/artist/bruce.h.mccosar
http://bmccosar.wordpress.com/
will check it out
I'll take a look when I get home. Also, next version will include support for key signatures :-)
instr syntax has changed
Use:
instr Guitar [p1=4:p4=pitch]
instead of your existing instrument line. (This is covered in the "tutorial" page, which you can be forgiven for not reading, given your long history as an abcsound alpha-tester. :)
http://kneuro.net/abcsound/index.php?file=tutorial.html
-- JK
Argh, I forgot the first
Argh, I forgot the first rule of alpha testing . . . the more things change, the more they don't stay the same . . . . ;-)
---
http://www.jamendo.com/en/artist/bruce.h.mccosar
http://bmccosar.wordpress.com/