@ustk Nice done!
Posts
-
RE: Real time pitch shifting with ScriptNode
@JulesV I found the libs here:
https://github.com/grame-cncm/faust/tree/master-dev/embedded/faust4processing/src/faust-libraries
and they seems to be included in the main Faust lib -
RE: How to (Host Transport Callbacks)
@Jay your speed regs will stay at zero, because you don't change them anywhere
reg lspeed = 0; reg rspeed = 0;
so if you have them set to some value, your animations will work, here I have them set like this
reg lspeed = 1; reg rspeed = 2;
-
RE: How to (Host Transport Callbacks)
@Jay well what you asked in your question is working here
but your rotations is not working, I'll take a look... -
RE: How to keep the color of the selected row unchanged
@CatABC it works here
The value in the viewport is saved with the preset -
RE: How to (Host Transport Callbacks)
@Jay Do you have a snippet of the whole code, I don't know what you're trying to do
-
RE: How to keep the color of the selected row unchanged
@CatABC what if you set GrooveBrowser value to obj.rowIndex, would it work?
inline function onTableCallback(obj) { if (obj.Type == "Click") { //Console.print("Clicked on row: " + obj.rowIndex); // Load the corresponding MIDI file onGrooveBrowserRowClick(obj.rowIndex); GrooveBrowser.setValue(obj.rowIndex); GrooveBrowser.changed(); } };
-
RE: How to (Host Transport Callbacks)
@Jay
Try this insteadthPlayingBtn.setValue(!isPlaying);
-
RE: I am trying to get the position of the component that is being hovered over by the mouse to no avail
@VirtualVirgin it's Content.getComponent("ScriptLabel1"), you forgot the "Content"
-
RE: I am trying to get the position of the component that is being hovered over by the mouse to no avail
@VirtualVirgin said in I am trying to get the position of the component that is being hovered over by the mouse to no avail:
But how do I access the position data itself?
In the code under this, the position data is retrieved using this function:
getPositionOfComponent(comp)
getHoveredComponentBC.addListener(AllComponents, "get position", function(component, event) { if (event.hover) { var comp; for (c in AllComponents) if (c.get("id") == Content.getComponentUnderMouse()) { comp = c; break; } if (isDefined(comp)) { TooltipPanel.data.tooltip = comp.get("tooltip") + " || pos: "+ trace(getPositionOfComponent(comp)); TooltipPanel.repaint(); } } });
-
RE: Button.setValue(1) oninit not reflected in UI
@CyberGen does it have "saveInPreset" enabled?
In that case it will remember the value you set when you save the project -
RE: Arc slider
@udalilprofile when working with look and feel functions, it's very informative to
Console.print(trace(obj));
you will get all the information that is used inside.
Same inside a keyPressCallback, use Console.print(trace(obj));
or inside a mouseCallback, Console.print(trace(event)); -
RE: Arc slider
@udalilprofile if it's inside a laf, you need to get the width and height from the obj.area
"this" will not workg.setGradientFill([Colours.blue, 0, 0, Colours.red, obj.area[2], obj.area[3]]);
-
RE: Button.setValue(1) oninit not reflected in UI
@CyberGen you need to set button.changed() as well, however the .changed() will not work during the onInit callback.
Where do you set the value change?
-
RE: Trying to make a factory method but getting an error
@VirtualVirgin Ah, sorry I misunderstood
-
RE: I am trying to get the position of the component that is being hovered over by the mouse to no avail
@VirtualVirgin you could also do like this, it also takes care of components inside other components inside other...etc
It's also based on the broadcaster function, a great implementation, thanks to Christoph!
HiseSnippet 2204.3ocsYstbabaEdWYs1lLIt1osYlN8FJmzYnJ0PSJQIpTMdLEIkbjqkISDiuLtIof6BRhnkKX1EjhLNpim9Hzmf7m9Bzm.+29TzWg7Fjd.vx8B4RJJkF8CpE.myAemq3fca5xLIddLWM8zslLfno+tFmNwg2qVOL0Q635Z5+FilLOJmxbZz4iYiHtDqZr9CXNDGtV0ICvddDKMc8a7HAG5oVWS922+vpXariIIbJMsmwnljmP6S4gy1rxegZaeD1hzh1OB0kpbrIyoFylMDP2MLJnM.adFtK4oXAYqYn8wXudZ5+ICqhkJ1YOS7t6UrzVllasW4s9nxlDbmNjcKtS4R60oTGrYgszzu4gVTNy8TNlS7zzWuJyZxo8Xm6n1fmQ8nssIhAE0NE1Y0zGwrsDpnXVsZ8n1VMmZ17z.ozLzHdCkQ7WXbB0hFLenw7txEPgbD0.puVb3ciXvqXT3UHB7R.R5Qfz5JHcOiSMcoC3gqHvy6XbrCm3BlGRLnnnUasKtkQMFPgCOee7YjibgAAbjc2BE1DA+rw9oSC9JON5.a6ffCOzCPSYtKgGaorYxHX592GU0kgsLwdfLQVjNTGYnlu3FgcQ.qyF1UsFH5Cc5RcH4McIf0JhTx95zHTFp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4fe.9yewhhw59KVb5hZ8wltruzTccNw2u31xY.L4H+VOoLNQLFkv8E6SsneooYbQMGiaccYb6qKikttLty0kwcutLV95x3dWNihu10AC4r9pzFMsSZdn7Vv55G5HNPQFsp8+fXth6L
-
RE: Arc slider
@ustk said in Arc slider:
@ulrik Amazing! Forgot the function has override!
Yes I had also forgot it, but I found it in the documentation.
So, what does "override" really means?