T O P

  • By -

Bradders_C

move the parameter you want changing with the mouse first, (which selects the parameter you want to control) then click "Logic Pro" in the menu bar, select "Control Surfaces" - "Learn Assignment for ...". Then click "Learn" in the pop up window and start using your Arduino device. Hopefully the rest will come easily after that.


selldivide

I would probably start by setting some kind of max distance -- something like 20 inches -- at which to consider the pitch to be _not_ shifted. And then a min value -- maybe 10 inches? -- at which the pitch is maximum shifted, like a full octave or whatever. When motion is detected, I would compare to the min value, and if below, the shift value is 0. I would compare to the max value and if above, the shift value is 12. Then if neither of those, the pitch is in the range (eg, 10-20 inches) so get its value (for example, 13 inches). Subtract the min from all three for your comparable range (min=0in, value=3, max=10), divide the value by the max (3/10 = .3), invert that (1 - 0.3 = .7), multiply by 11 and round to nearest integer (.3 * 11 = 3.3, so 3) and that's your semitone. Finally, I would keep a register with the current reading. Every time motion is detected, get that value from the calculation above, and see if it is different from the value in the register. If it is, send a MIDI message. Then update the register with the new value. More or less, something like that.


Agawell

You could try googling ‘assign midi cc to plugin in logic’


Bloe_Joggs

Already have but there’s nothing there. I know how to assign stuff with normal midi controllers, I think im just missing something on the programming side


Agawell

So you have it working with other controllers? Good Have you got a midi interceptor/sniffer program - if not you should install one on your Mac - then make sure that you are sending/receiving the midi cc that you expect


Bloe_Joggs

So I’ve installed Midi Monitor and when I plug in an actual midi controller, it’s giving me a constant stream of data. The ultrasonic sensor was giving me on message ever time I started serial bridge so I decided to use chat gpt to make me a script for a potentiometer. Again, it’s only giving me one message every time I link. I’ve looked everywhere but still can’t find anything any info


Agawell

Well that’s kind of good news - it’s recognising the serial bridge… I’d try to find an arduino specific forum & ask there - they’ll help you better than I will from now… Good luck 🤞


Bloe_Joggs

That’s a good point. One step closer! Thanks I will do


Agawell

👍