Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: on / off button for mathengine

This topic is old and might contain outdated or incorrect information.

LudekPRO InfinityMember since 2005
How to map an on / off button for mathengine?
 

Posted Thu 09 Jul 20 @ 3:56 pm
Can use this action :
setting 'mathEngine' 'Disabled' ? setting 'mathEngine' 'Automatic' : setting 'mathEngine' 'Disabled' 


 

Posted Thu 09 Jul 20 @ 4:55 pm
LudekPRO InfinityMember since 2005
Yes it works, but the button does not change color when mathengine is turned on. i am using a similar script for hide tracks info and it works there.

<button action="setting 'mathEngine' 'Disabled' ? setting 'mathEngine' 'Automatic' : setting 'mathEngine' 'Disabled' " class="leftcross2">
<tooltip>Math engine on/off</tooltip>
<pos x="1520" y="13"/>
<text format="M" align="center" />
</button>

definition:

<define class="leftcross2" action="leftcross">
<pos x="+6" y="+2" />
<size width="20" height="19" />
<off x="692" y="1480+1176"/>
<on x="736" y="1480+1176"/>
<over x="714" y="1480+1176"/>
<text size="13" color="#e1e1e1" align="center" />
</define>


working script :
<button action="setting 'hideSongInfo'" class="leftcross2">
<tooltip>Hide tracks info</tooltip>
<pos x="680" y="13"/>
<text format="H" align="center" />
</button>
 

Posted Thu 09 Jul 20 @ 5:16 pm
Just add on/off as part of the script for that ...

setting 'mathEngine' 'Disabled' ? off & setting 'mathEngine' 'Automatic' : on & setting 'mathEngine' 'Disabled'
 

Posted Thu 09 Jul 20 @ 5:23 pm
LudekPRO InfinityMember since 2005
Thanks!!!
 

Posted Thu 09 Jul 20 @ 5:28 pm
Worth considering (and maybe better), would just be to leave it on.
And change the setting precomputeStems to "only use precomputed" (could even make a button for this instead)

And then just rightclick, and choose "precompute" for songs you want to use stems for in the browser
(instead of toggling the math engine on off.. )

That way you will still have the modern waveform, just not generating stems on deck ;-) (but still be able to use it for precomputed you select to)
 

Posted Thu 09 Jul 20 @ 5:33 pm
LudekPRO InfinityMember since 2005
Yes, but with mathengine is ON and precomputeStems is "only use precomputed" are waveforms monochrome and i want colored waveform as before.
 

Posted Thu 09 Jul 20 @ 5:44 pm
NicotuxHome userMember since 2014
depending on mathengine state songpos and waveform may display differently (no shape), and system load differ too on old system
 

Posted Thu 09 Jul 20 @ 5:48 pm
LudekPRO InfinityMember since 2005
I only want to use effects with STEM occasionally and I don't want mathengine to use my CPU 100 percent for a few seconds every time I load a song . Therefore ON / OFF switch.
 

Posted Thu 09 Jul 20 @ 5:56 pm
Ludek wrote :
I only want to use effects with STEM occasionally and I don't want mathengine to use my CPU 100 percent for a few seconds every time I load a song . Therefore ON / OFF switch.


It wont do that if you set precompute setting to "only use precompute" ;-)
But on/off is ok too .. was just a suggestion to something that might be better, depending on what usage/intention you have
 

Posted Thu 09 Jul 20 @ 6:02 pm
LudekPRO InfinityMember since 2005
Rune (dj-in-norway) wrote :

It wont do that if you set precompute setting to "only use precompute" ;-)


Will it work with colored waveforms? Where I turn them on?
 

Posted Thu 09 Jul 20 @ 6:23 pm
If you want coloured waves just change the waveformTypes within settings
 

Posted Thu 09 Jul 20 @ 6:31 pm
Thank You Very Much.

Rune (dj-in-norway) wrote :
Just add on/off as part of the script for that ...

setting 'mathEngine' 'Disabled' ? off & setting 'mathEngine' 'Automatic' : on & setting 'mathEngine' 'Disabled'



 

Posted Sun 25 Oct 20 @ 8:11 pm


(Old topics and forums are automatically closed)