Currently, running a Csound piece written in Python in the SciTE "playpen" will save and restore channel values set during performance.
Change the way this works, so that channel value "preset" saved from a Python piece will automatically be read and restored from an automatically saved csd file and preset file.
In other words, performing a Python piece with a UI will enable saving a picece.py.csd file and a piece.ui.channels preset file. When the piece.py.csd is performed standalone, it will automatically read piece.ui.channels and restore the channel files in the orchestra header.
This might be tricky because of chnexport.
Should be doable by sending lines from readfi to evalstr at the end of the orchestra header. That means changing the playpen code to write not JSON but:
Currently, running a Csound piece written in Python in the SciTE "playpen" will save and restore channel values set during performance.
Change the way this works, so that channel value "preset" saved from a Python piece will automatically be read and restored from an automatically saved csd file and preset file.
In other words, performing a Python piece with a UI will enable saving a
picece.py.csd
file and apiece.ui.channels
preset file. When thepiece.py.csd
is performed standalone, it will automatically readpiece.ui.channels
and restore the channel files in the orchestra header.This might be tricky because of
chnexport
.Should be doable by sending lines from
readfi
toevalstr
at the end of the orchestra header. That means changing the playpen code to write not JSON but: