Saturday, December 08, 2007

MIDI control of monitor source

These are the changes needed to implement MIDI control of monitor source:

in MidiInfo.h:

enum { // plugin MIDI properties
MP_BYPASS,
MP_MONITOR,
PLUGIN_MIDI_PROPS
};

in MainMidi.cpp:

const int CMainFrame::m_PluginMidiPropName[PLUGIN_MIDI_PROPS] = {
IDS_MP_BYPASS,
IDS_MP_MONITOR
};

case MP_MONITOR:
if (Toggle)
Val = (GetMonitorSource() != ParmIdx);
{
bool IsMod = IsModified();
SetMonitorSource(Val >= .5 ? ParmIdx : -1);
SetModify(IsMod); // restore modify flag
}
break;

The above change also requires a new version of the project file format, otherwise errors will occur in CFFPlugInfo::Serialize due the increased size of m_MidiInfo. This probably could have been avoided if the size of m_MidiInfo had been serialized, but it's too late for that now. The only remaining option is an explicit version test. Note that the version being tested is from the next level up, i.e. it's a CFFProject version, not a CFFPlugInfo version. The CFFPlugInfo version must be increased too, so that the clipboard format changes.

// this was tested and works fine
int MidiInfoSize = Version > 4 ? sizeof(m_MidiInfo) : sizeof(CMidiInfo);
...
ar.Write(m_MidiInfo, MidiInfoSize);
...
ar.Read(m_MidiInfo, MidiInfoSize);

6 comments:

PSF said...

Just want to thank for for this very impressive software! I've made several meta-plugin motion backgrounds for DVD slideshow GUI loaded with avisynth.

Maybe when starting up the first time the default resolution should be a bit lower so people can see how fast this really is.

One question: is there a way to key out colors with a freeframe plugin? Work with an alphachannel in a layer?

It would also be nice to have a gradient plugin which fills the screen and changes over time as a source.

In the flv player on http://download.videohelp.com/tin2tin/index.htm you can see some of the backgrounds I did with FFrend and Pete's plugins.

逛街 said...

I love readding, and thanks for your artical.........................................

睡衣 said...

pleasure to find such a good artical! please keep update!! ........................................

結果 said...

思想與理論,貴呼先於行動,但行動較思想或理論更高貴 ..................................................

姿英姿英 said...

男同志色教館av影片杜雷斯正妹牆月宮貼圖微風寫真館正妹牆帶回家正妹牆成人網正妹貼圖區正妹牆成人網sexav999免費影片日本情色小說日本情色影片日本情人趣味日本情侶自拍日本情侶成人影片日本愛情動畫日本愛情卡通日本情色bt日本情色av女優日本性教育影片視訊 辣妹美女 視訊線上a片打手槍凹凸電影院愛愛一葉情貼影色站露點girl5320免費a片下載成人情色18成人免費girl5320貼影片foxy下載kiss168成人辣妹視訊論壇男人的最愛線上看av080聊天室 曼雪兒情色文學小說曼雪兒情色文學網曼雪兒免費成人小說曼雪兒小說曼雪兒影片

怡均怡均怡均 said...

nice to know you ~........................................