Lua beginner problems

Everything is better after a few Duvels! :wink:

2 Likes

Now I got some time to try your demo preset. Very nice! I think I understand the code. But yes, it’s a kind of difficult to get a list of configured devices when nothing is configured. In such case: can Lua handle exceptions?

It would be very cool if there would be a <Device>:create(name, channel, rate) function… @martin :slight_smile:

I will go on and try to implement your functions for my Zynthian setup.

Remember - “Device” in this context is related to things defined/installed/created on the Electra One. I can load up multiple presets that talk to synthesizers and effects that I do not own. As long as they have a device name/id/etc, they will show up when you query the devices. This doesn’t mean that the preset will actually be useful, just that it is installed in the Electra One.

If you’re looking for some way to go out across the MIDI cables and look for actual devices that are up and running, that’s a different problem.