ParsedBlock#
- class csoundengine.csoundlib.ParsedBlock(kind, text, startLine, endLine=-1, name='', attrs=None)[source]#
Bases:
object
A ParsedBlock represents a block (an instr, an opcode, etc) in an orchestra
Used by
parseOrc()
to split an orchestra in individual blocks- kind#
the kind of block (‘instr’, ‘opcode’, ‘header’, ‘include’, ‘instr0’)
- text#
thet text of the block
- startLine#
where does this block start within the parsed orchestra
- endLine#
where does this block end
- name#
name of the block
- attrs#
some blocks need extraOptions information. Opcodes define attrs ‘outargs’ and ‘inargs’ (corresponding to the xin and xout opcodes), header blocks have a ‘value’ attr
Attributes Summary
Attributes Documentation
-
attrs:
dict
[str
,str
] |None
= None#
-
endLine:
int
= -1#
-
name:
str
= ''#