Puredata yml file questions

Hi there,

i checked the zynthian_controller.py file on github and discovered that the yml config file seems to have lots more options. I discovered this method for loading the config options:

    def set_options(self, options):
		if 'symbol' in options:
			self.symbol=options['symbol']
		if 'name' in options:
			self.name=options['name']
		if 'short_name' in options:
			self.short_name=options['short_name']
		if 'value' in options:
			self.value=options['value']
		if 'value_default' in options:
			self.value_default=options['value_default']
		if 'value_min' in options:
			self.value_min=options['value_min']
		if 'value_max' in options:
			self.value_max=options['value_max']
		if 'labels' in options:
			self.labels=options['labels']
		if 'ticks' in options:
			self.ticks=options['ticks']
		if 'is_toggle' in options:
			self.is_toggle=options['is_toggle']
		if 'is_integer' in options:
			self.is_integer=options['is_integer']
		if 'midi_chan' in options:
			self.midi_chan=options['midi_chan']
		if 'midi_cc' in options:
			self.midi_cc=options['midi_cc']
		if 'osc_port' in options:
			self.osc_port=options['osc_port']
		if 'osc_path' in options:
			self.osc_path=options['osc_path']
		if 'graph_path' in options:
			self.graph_path=options['graph_path']
		self._configure()

Are those all working and usable? Is there somewhere a documentation on this? The examples I found are only use a small subset of those.I also have some problems that my yml files dont get parsed correctly and Zynthian is loading the default mapping. Is there a description which chars and syntax is allowed?

1 Like

Hi @rbot!

You are right. In theory, all the controller’s can be used on PD YML files, although i’ve not tested all of them, so please, feel free to do it and give feedback.

Of course, if some of them is not working as expected, please, send your PD patch and i will try to help you and, eventually, fix the problems you find.

Regarding the “documentation”, it should be improved, so please, please, please, feed free to edit the
wiki:

https://wiki.zynthian.org/index.php/Pure_Data

Other zynthian users (including me!) will love you for doing so … :smiling_face_with_three_hearts:
If you want a wiki account, simply ask me for it …

Thanks!

Hey there,

thanks for the explanation. I will try out some more of them. And write down my experience here.
Expanding the wikipage is a good idea. I will see what I can contribute. I also would like to see pd patches for zynthian on patchstorage.com. What do you think of this idea?

I love it :heart_eyes:

And also SnapShots, please :wink: