mcjMidiVU - a 128-channels prop for live display of Midi Music Events ( or general purpose bar chart
!READY ! READY ! READY ! READY ! READY ! READY !
https://sites.google.com/site/mcasualsdazscripts5/mcjmidivu
and if you have trouble downloading the zip here’s the direct link
https://sites.google.com/site/mcasualsdazscripts5/mcjmidivu/mcjMidiVU.zip?attredirects=0&d=1
-
that's part of my midi music to Daz Studio Animation kit of script
but i think it has a bright future for other needs, namely, it can be used to create 128-points curves
--
there’s 128 morph channels, and each one controls the position of the red VU bar for that note/drum
it will serve as an in-scene visual guide during the production of music videos
for non-percussive instruments, the prop simply has to be relabeled
( and a first occasion to use one of the 260 New Free mcjDoorFrames ! )
the little script i wrote to create the animation
node = Scene.getPrimarySelection()
obj=node.getObject()
for( fr = 0; fr <= 30; fr++ )
{
Scene.setFrame(fr)
for(i = 0; i <128;i++)
{
off = fr / 30 * Math.PI * 2
mo = obj.getModifier(i)
pr = mo.getValueChannel();
pr.setValue( .5 + .5 * Math.cos ( off + i / 127 * 8 * Math.PI + Math.PI) )
}
}
Fig 5 - added a morph to widen the backdrop
i'll probably add a morph to globally set the width of the bars
so you could even turn this into a 128 pickets picket fence
Comments
the uv mapping of the bars is not super ideal but it's workable
each bar has a material
each one of the 5 faces of a bar occupies 1/3 x 1/3 of the UV map and are non-overlapping
and the normals are outside, so it renders ok as cartoony/shaders
figure2
the definition of tedious, making a pixel-precise midi note texture ) ( using ds script + Chrome + paintshop )
the prop will use a 4096x512 image, if its not too big i'll pack smaller versions in the distribution )
!READY ! READY ! READY ! READY ! READY ! READY !
https://sites.google.com/site/mcasualsdazscripts5/mcjmidivu
and if you have trouble downloading the zip here's the direct link
https://sites.google.com/site/mcasualsdazscripts5/mcjmidivu/mcjMidiVU.zip?attredirects=0&d=1
Test Script
MCJMIDIVUANIMATEDSINE is purely for demonstration purposes
it demonstrates how the prop's 128 bars can be animated over a range of 30 frames
download it here
https://sites.google.com/site/mcasualsdazscripts5/mcjmidivu
or here
unzip in your Daz Studio Content folder
you can then find it in the scripts/mcasual section of your content library
select an mcjMidiVU prop
run the script
minor Update
a new version was posted which looks good even when loaded in DS4.7 when the Per-Pixel-Shader view mode is in effect
download it here
https://sites.google.com/site/mcasualsdazscripts5/mcjmidivu
or here is a direct download link for the zip package
( the first version had diffuse strength = 0 and ambient = 100% ... because it looked good in software render mode )
note: did you know that if you apply a Metal shader like GeorgeHaze's metal shaders
and you're in DS4.7's per-pixel-sgading view mode, you get nice chromes like that live !?
and did you know that using mcjElevate you can turn a plane into a wavey surface?
normally you'd use a perlin noise image for the waves but i used one of those https://sites.google.com/site/mcasualsdazscripts4/mcj