Developer Tutorial : Midi Event Music Visuals

contains the latest version of our visualizer plugin (replacing Chrome)
[You can only see part of this thread as you are not logged in to the forums]
StevenM
 
Jul 11, 2011 (6:02)
06. FL Studio ZGameEditor Visualizer: Midi Event Music Visualization

This is an incredible feature within the ZGameEditor. In this video I will show you how to link midi data to your music visualizations. We will link note on off data to turn an object light on/off for a 3d sphere and also use midi keys to move the object in all directions. The concept of status messages and other events like volume,panning, and velocity is also explained.



To monitor midi messages.

Code: Select all
void OnMidiMessage(int Status, int Data1, int Data2)
{
trace("Status="+IntToStr(Status));
trace("Data1="+IntToStr(Data1));
trace("Data2="+IntToStr(Data2));
}


Pitch Values:

This is a special case where the Data1 and Data2 need to be combined to a 14-bit value between 0..16383.

This function does the trick:

Code: Select all
int PitchBytes(int First, int Second)
{
int data14bit;
data14bit = Second;
data14bit = data14bit << 7;
data14bit = data14bit|First;
return data14bit;
}


Pitch Function useage Example:

Code: Select all
//use function to convert data1 and data2 to a standard 14bit value.

float Pitch=PitchBytes(MidiData1,Mididata2);

//for use you can rescale values to suite your needs, this sets a range of -127 to 127

int PitchScaled=floor(((Pitch-8192)/16383)*127*2);

DJ Nobody
 
Jul 11, 2011 (20:16)
Nice tutorial though you still have the typo in...

StevenM
 
Jul 11, 2011 (20:29)
Weird - must be hard wired in me. Made the sam...

DJ Nobody
 
Jul 11, 2011 (21:00)
yes thats the strange thing made this btw, I wa...
You do not have the required permissions to view the files attached to this post.

StevenM
 
Jul 12, 2011 (0:43)
Array of models is possible - Define an array o...

StevenM
 
Jul 12, 2011 (1:06)
SomeModelName would refer to a model that you a...

StevenM
 
Jul 12, 2011 (1:28)
Just checked out you project. Like what you di...

StevenM
 
Jul 12, 2011 (5:06)
Here You Go.Onloaded ZExpression creates 36 cub...
You do not have the required permissions to view the files attached to this post.

DJ Nobody
 
Jul 12, 2011 (11:31)
nice I was thinking the same about the array o...

StevenM
 
Jul 12, 2011 (15:14)
If you need more help with model arrays let me ...

Kjell
 
Jul 12, 2011 (15:55)
@Steven - Here you go .. http://www.emix8.org/f...

StevenM
 
Jul 12, 2011 (16:43)
Thank Kjell - with the new camera components, I...

StevenM
 
Jul 12, 2011 (16:52)
KJell - Look-at example works perfect! Thank a...

Kjell
 
Jul 12, 2011 (17:47)
Actually, the gluLookAt function would be prett...
You do not have the required permissions to view the files attached to this post.

DJ Nobody
 
Jul 12, 2011 (19:38)
still needs work but:colored the notes and made...
You do not have the required permissions to view the files attached to this post.

StevenM
 
Jul 12, 2011 (21:33)
Kjell wrote:Actually, the gluLookAt function wo...

StevenM
 
Jul 12, 2011 (23:23)
DJ Nobody wrote:still needs work but:colored th...

Kjell
 
Jul 13, 2011 (12:15)
@Steven - You might want to take Diki's Box2D w...

DJ Nobody
 
Jul 13, 2011 (18:44)
StevenM wrote:DJ Nobody wrote:still needs work ...

StevenM
 
Jul 14, 2011 (9:19)
You might want to take Diki's Box2D wrapper fo...

DJ Nobody
 
Jul 14, 2011 (17:46)
StevenM wrote:2d is easier but switching to 3d ...
You do not have the required permissions to view the files attached to this post.

cron