monome / bowery

druid script collection
75 stars 35 forks source link

`snippets/acquaintances.lua`: frequency does not update #13

Closed joshuagoran closed 9 months ago

joshuagoran commented 1 year ago

within the update_speeds function, I am seeing freq remain a static value (7.389056, which is equal to math.exp(2)) no matter what voltage is present at input 1.

I think this is due to some issue with line 21. math.exp() seems to expect one argument according to the Lua docs I am seeing (example) and replit.com. the second argument is being ignored in the current script.

maybe this should be using a different math function?

joshuagoran commented 1 year ago

side note: I am super stoked to try this out in a fully working state! :)

m9dfukc commented 9 months ago

bumping this up ... stumbled into the same issue!

dndrks commented 9 months ago

@m9dfukc + @joshuagoran , thanks so much for the note! fix has been implemented :)