Video as background eats CPU (obviously)
-
@Christoph-Hart Ohhh. I see.
Then... what if I do some kind of layered transparent pngs? and move them onNoteOn or whatever? (timers will kill cpu)This are 8 layers (moons, terrain, etc)
-
Yes that might sound like the best solution - and shuffling around 8 images at 25fps shouldn't kill the CPU.
-
@hisefilo - you could try independently scaling the layers - the "disney" technique...
-
@Lindon LOL true. HISE becomes a 2D animation framework
-
-
@Christoph-Hart LOL
-
@Christoph-Hart Haha, just wait...
-
Silly question. Anyone knows how to do a function that ramps from zero to 1 value in "x" time (without a timer callback)?, then to return to zero in "x" time ? like an attack and release but not for audio but UI ?? (yes I am trying to move objects like in a timeline)
-
@hisefilo What is going to be changing the value if not a timer?
-
@d-healey I was thinking in getSystemTime and parsing milliseconds. But maybe will use CPU as the timer callback
-
@hisefilo
getSystemTime
is a function that will give you the current time, it's not a callback. Why not give up on your crazy dreams of putting videos in audio plugins :p -
@d-healey never! LOL. I'm also thinking into a VR add-on to allow users to play VSTs in Metaverse
-
@hisefilo I wouldn't back that horse.
-
@d-healey Yea I know. Is already dead.
-
@hisefilo I think you're using the wrong timer. There's the "synth" timer with the
onTimer
callback, but you can also use aEngine.createTimerObject()
, or since you're most likely working on a Panel, use its timer callback. -
@Christoph-Hart oh I forgot about the onTimer. Thanks!!