joshjg / react-canvas-knob

Flexible knob/dial input component
MIT License
44 stars 28 forks source link

onChange index #23

Closed cannc4 closed 5 years ago

cannc4 commented 5 years ago

Hello,

Thanks for creating this. I have a problem hope that you may be able to guide me through.

I'd like to create a bunch of knobs with using a map function but I can't seem to send multiple parameters within the onChange function. I am trying to accomplish something like this:

 <Knob 
                    title ={MIDIParam.name}
                    height ={50}
                    width ={50}
                    max = {127}
                    font= {'Monaco'}
                    value={MIDIParam.ccv}
                    onChange={ctx.changeValue(MIDIParam.ccn)}
/>

any suggestions?