How to map an on / off button for mathengine?
Posté Thu 09 Jul 20 @ 3:56 pm
Can use this action :
setting 'mathEngine' 'Disabled' ? setting 'mathEngine' 'Automatic' : setting 'mathEngine' 'Disabled'
Posté Thu 09 Jul 20 @ 4:55 pm
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>
<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>
Posté 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'
Posté Thu 09 Jul 20 @ 5:23 pm
Thanks!!!
Posté 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)
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)
Posté Thu 09 Jul 20 @ 5:33 pm
Yes, but with mathengine is ON and precomputeStems is "only use precomputed" are waveforms monochrome and i want colored waveform as before.
Posté Thu 09 Jul 20 @ 5:44 pm
depending on mathengine state songpos and waveform may display differently (no shape), and system load differ too on old system
Posté Thu 09 Jul 20 @ 5:48 pm
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.
Posté 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
Posté Thu 09 Jul 20 @ 6:02 pm
Rune (dj-in-norway) wrote :
It wont do that if you set precompute setting to "only use precompute" ;-)
It wont do that if you set precompute setting to "only use precompute" ;-)
Will it work with colored waveforms? Where I turn them on?
Posté Thu 09 Jul 20 @ 6:23 pm
If you want coloured waves just change the waveformTypes within settings
Posté 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'
Posté Sun 25 Oct 20 @ 8:11 pm