midi motion?

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
AlanPS
Posts: 105
Joined: Thu Sep 29, 2005 12:23 am

midi motion?

Post by AlanPS »

I have no scripting skill, but I was wondering if anyone has thought of or made a script that allows switch layers to be controlled by midi note-triggers similar to a package I believe is called Midi Motion for 3d animation.
This would really be cool for those of us wanting to do music videos or syncing animation to music more effectively.
myles
Posts: 821
Joined: Sat Aug 21, 2004 3:32 am
Location: Australia, Victoria, Morwell
Contact:

Post by myles »

It might be easier to use something like midi2abc to convert the MIDI to a text file, then convert the text file to a Switch data file.

midi2abc binaries (Mac/Win/Linux): http://abcplus.sourceforge.net/#abcMIDI

abcMIDI Source forge page: http://abc.sourceforge.net/abcMIDI/

Possibly using the -midigram option to get timing: "a list of all notes in the
MIDI file are printed in a fixed format. Each line represents
a pair of MIDI note on/off event. The line contains the
on/off time of the note, its track number, channel number,
midi pitch and midi velocity. "

Regards, Myles.
"Quote me as saying I was mis-quoted."
-- Groucho Marx
AlanPS
Posts: 105
Joined: Thu Sep 29, 2005 12:23 am

whoa!

Post by AlanPS »

gosh myles,
looks like you are another one of those recipients of that revolutionary brain compression technology- they take a whole bunch of knowledge and compress it into a normal size brain and then stick it into a normal person's head (some people are unwilling recipients, others are voluntary). Man!

Well, pretty much all you said was way over my head. I did download a whole bunch of stuff from those links but it sounds pretty complicated. I use Cakewalk Home Studio, which can export into different forms of midi. Any suggestions there?
myles
Posts: 821
Joined: Sat Aug 21, 2004 3:32 am
Location: Australia, Victoria, Morwell
Contact:

Post by myles »

Hi Alan,

you'd still need to write a script to create the Moho switch data.

However, writing a script to decode a binary MIDI file is probably hard work, except for 7feet/Brian.
Writing a script to read a text file, where each line represents details about a single musical note (including timing), is probably a lot easier.

The midi2abc file included in the abcMIDI set of programs enables you to convert a MIDI file into a text file.

Step 1: Run midi2abc - MIDI file in, text file out.
Step 2: Run your hypothetical script - text file in, switch data file out.

I just thought I'd make the task seem a little easier for any volunteer scripters.

Unless you are talking about using real-time triggers from a MIDI keyboard - which sounds like extra hard work.

Regards, Myles.
"Quote me as saying I was mis-quoted."
-- Groucho Marx
User avatar
donsandwhich
Posts: 3
Joined: Fri Jul 20, 2007 12:48 am
Location: Warshington State
Contact:

Re: midi motion?

Post by donsandwhich »

AlanPS wrote:I have no scripting skill, but I was wondering if anyone has thought of or made a script that allows switch layers to be controlled by midi note-triggers similar to a package I believe is called Midi Motion for 3d animation.
This would really be cool for those of us wanting to do music videos or syncing animation to music more effectively.
I agree and have been hoping for the same thing. I'm hoping to find a way to bridge bone movements with midi CC#. I've been warping pictures with the bones and this could be a cheap way to make psychedelic visuals for a performance.
The Weyland Yutani Corporation will be bought out by A.) Haliburton B.) Walmart or C.) Yamaha
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Post by funksmaname »

they take a whole bunch of knowledge and compress it into a normal size brain
have you SEEN myles? his head is the size of a watermelon! :lol:
Post Reply