Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion mod/host.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -4295,8 +4295,14 @@ def save_state_mainfile(self, bundlepath, title, titlesym):
lv2:OutputPort .
""" % (instance, port['symbol'])

# control input, save values
# control input, save values.
# use default for pprops:trigger ports (momentary; never save that)
triggers = dict((port['symbol'], port['ranges']['default'])
for port in info['ports']['control']['input']
if "trigger" in port['properties'])

for symbol, value in pluginData['ports'].items():
value = triggers.get(symbol, value)
blocks += """
<%s/%s>
ingen:value %f ;%s
Expand Down