Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Maxim code upgrade infrastructure #166

Open
cpdt opened this issue Feb 23, 2019 · 0 comments
Open

Maxim code upgrade infrastructure #166

cpdt opened this issue Feb 23, 2019 · 0 comments
Labels
editor Issues related to the graphical editor enhancement

Comments

@cpdt
Copy link
Member

cpdt commented Feb 23, 2019

Since it is useful to be able to modify Maxim function names and signatures, it should actually be possible to setup some sort of upgrade system for code that automatically applies changes to get the code working as expected.

E.g. in the recent case of the adsr function's return type being changed from num to (num, num), we could automatically modify code that uses it:

out:num = adsr(trig:num, a:num, d:num, s:num, r:num)
# becomes
(out:num, _) = adsr(trig:num, a:num, d:num, s:num, r:num)

And similar modifications could be made to function parameters (modifying them to pass in some default value).

Of course, this is would be a rather complicated undertaking, and since we're still in version 0.x I'm not too worried about it yet.

@cpdt cpdt added enhancement editor Issues related to the graphical editor labels Feb 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor Issues related to the graphical editor enhancement
Projects
None yet
Development

No branches or pull requests

1 participant