@Galapagoose All I did was copy your code, paste it into mine and removed the
function init()
ii.pullup(true)
ii.jf.mode(1)
input[1].mode(āchangeā, 1, 0.1, ārisingā)
end
saved it and uploaded it to crow. it then starts running the script and then I get
Merto.init: nothing available
my code now looks like this:
input[1].change = function(s)
ii.jf.play_note(input[2].volts,5)
end
ā add this function to your script
ā (to be included in crow firmware in future)
function delay( time, action )
local function devent()
action() ā this line executes the delayed function
metro.free(dmetro.id)
end
local dmetro = metro.init( devent, time, 1 )
end
ā delay the call that reads the input voltage by 3ms
ā the old line is āwrappedā in a function
ā this stops it from being executed immediately
input[1].change = function(s)
delay( 0.003, function() ii.jf.play_note(input[2].volts,5) end )
end
function init()
ii.pullup(true)
ii.jf.mode(1)
input[1].mode(āchangeā, 1, 0.1, ārisingā)
end
Iām still a super noob so i may have stuffed it up?
I had a look at metro.lua on github and the code has metro with an uppercase M throughout it. would that be the issue?
Also is there a simple way to have JF base frequency start lower as i like to tune my oscillators to C3 on kriaās 3rd octave setting to enable me to go up and down in octaves.
Cheers!