Random Integer from (-1.0 -> +1.0)
-
@d-healey I typed it out myself. Its an " * " right?
-
@d-healey I didnt change my font either. Thats default font.
-
@Chazrox What happens when you copy/paste those two lines to a new empty HISE file?
-
@Chazrox What do you have before line 7? sometimes an error ahead can appear later, for instance when a line of code isn't closed
;
-
@d-healey looks the same.
this is your code snippet copy/pasted. -
@Chazrox said in Random Integer from (-1.0 -> +1.0):
looks the same.
Yes, but does it work in the new project?
-
-
@ustk I been changing each one to test but it wasnt working. Trying it in a new snippet per David rn. My lines are closed up above.
-
@Chazrox Since it's a namespace, maybe it's in the main script... The console is definitely saying something about a missing semicolon so...
-
@Chazrox And when you compile, is the focus on the script? meaning not "(detached)". This happens when you edit another script at the same time, so the modifications aren't compiled.
I find myself being tricked a lot by this everyday... "why the heck this isn't working... Oh ok... silly me..." -
@Chazrox Don't use var for variables except when you have no other choice
-
-
@d-healey sorry that pic was cut off. They're const vars for sure. I remember you teaching that in the tutorial.
-
More than just helping me fix the problem. I always appreciate the logic! You guys are the best!
-
@ustk said in Random Integer from (-1.0 -> +1.0):
is the focus on the script?
you mean am I compiling while on the main script?
I havent seen that "detached' yet. My namespaces are local (external scripts) to the project. Would that apply to this situation?
If im working within a namespace i'll usually do both for good measure...atleast I think thats good measure. lol.
-
@Chazrox
detached
appears when you have more than one script in the module list. If you click in the module list to modify another script, or show its network for instance, this detaches the other scripts currently being edited. So if when you make a change, it's not compiled until you "re-attach" the script from the module's list and re-compile. -
@ustk hmm...I never noticed that in my project yet. I'll keep that in mind. Sometimes a bunch of stuff will stop working and just start working again, I suspect thats whats happening but I just havent seen that message yet. Thanks!