tmhglnd / mercury

A minimal and human-readable language and environment for the live coding of algorithmic electronic music.
http://www.timohoogland.com/mercury-livecoding
GNU General Public License v3.0
291 stars 13 forks source link

Parameter setting using OSC-in #56

Closed GuillemGongora closed 3 years ago

GuillemGongora commented 3 years ago

Setting parameters using OSC-in locks the source of the value to always OSC-in even when deleting the OSC path and assigning a new fixed value. For example: new synth sine note(/OSC/input1 3) always gets the value from /OSC/input1 even when replacing and running new code new synth sine note(0 3)

tmhglnd commented 3 years ago

Will investigate soon! Most likely a bug in the [getVariables] patcher.

tmhglnd commented 3 years ago

Let me know if this fixes the bug, haven't had time to test it!

GuillemGongora commented 3 years ago

Fixes the bug but doesn't allow for a constant stream of OSC values anymore, only one change after evaluating

tmhglnd commented 3 years ago

Okay, this needs a bit more attention then haha!

tmhglnd commented 3 years ago

Okay, now it should be fixed! Only when changing from an argument (like a ring) to an OSC message it will preserve the ring as long as it has not received any message from the OSC yet. Not sure if this is wanted or that it should reset to default first, but I think this might be the nicest way that doesn't give unwanted results during a performance.