Hi, I’m new to TD, and I didn’t know about python before…
But I a m a composer, I am using TD for some cool design.
Here’s my original thoughts: I can possibly split the videos into maybe 48 blocks, and each one of them stands for one MIDI note.
I’ve look through the forum and found one interesting mouse tracking midi output, but I feel 127 in each axis is too much. I want them be set to blocks to be performable.
Here’s the problem that I encounter: I don’t know how I can count the blocks in TD.(or in python), So now I have the real-time coordinate of my mouse like (4,4), which I think should be block_index 25. (As they starts from 0) I’ve tried chop to DAT and scrip DAT for calculation, but I don’t know how to loop them per frame, so the table dat output isn’t in real time.
Also, I think Script CHOP might work, but I have no idea about their languages.
And here’s a bonus: I may want to rename the blocks to trigger some more organized MIDI notes, for example, block 1’s output will actually be 12ch1, to trigger the 12th midi note.
In the end I want to map the information gathered by Mediapipe in math and do a camera MIDI. But there are more difficulties than I imagine.
I appreciate a lot if anyone can help me with that, or if there’s already some cool midi triggering patches, please let me know.