ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2019-02-13T22:05:09+02:00 https://brainmodular.com/forums/app.php/feed/topic/6403 2019-02-13T22:05:09+02:00 2019-02-13T22:05:09+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40884#p40884 <![CDATA[OS is Win=0 / OSX = 1]]> the module path is saved with the wkp and the old value reloaded on the new platform.
will be corrected in the v187

Statistics: Posted by senso — 13 Feb 2019, 21:05


]]>
2019-02-13T21:48:19+02:00 2019-02-13T21:48:19+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40883#p40883 <![CDATA[OS is Win=0 / OSX = 1]]> Let's see what we get.

Statistics: Posted by lytz1 — 13 Feb 2019, 20:48


]]>
2019-02-13T21:11:00+02:00 2019-02-13T21:11:00+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40882#p40882 <![CDATA[OS is Win=0 / OSX = 1]]> Statistics: Posted by 23fx23 — 13 Feb 2019, 20:11


]]>
2019-02-13T19:36:48+02:00 2019-02-13T19:36:48+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40881#p40881 <![CDATA[OS is Win=0 / OSX = 1]]>
Same for the delimiter module.

When saved in OSX it will stay with the application path from OSX (not recalculating) and vice versa.
The same might be true for the path delimiter module. Didn't check that yet though.

(EDIT: Yes indeed. When I add a brand new path delimited in Windows, I get the correct delimitation.
So something is off here. Or the modules aren't built for dynamically calculating these things?)


That also would explain why the script does fail in the other direction. (It worked depending under which OS
the workspace was saved in the first place)

Statistics: Posted by lytz1 — 13 Feb 2019, 18:36


]]>
2019-02-13T18:46:07+02:00 2019-02-13T18:46:07+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40880#p40880 <![CDATA[OS is Win=0 / OSX = 1]]> Not sure what's going on.

/Applications/Usine Hollyhock MacOSX 3.0.186.app

Gonna test some more.

Statistics: Posted by lytz1 — 13 Feb 2019, 17:46


]]>
2019-02-13T18:21:38+02:00 2019-02-13T18:21:38+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40879#p40879 <![CDATA[OS is Win=0 / OSX = 1]]> "C:Usine Hollyhock Win64 3.0.166" of currently running usine instance the script is trigged from and check if it contains "Win"
i suppose the path of the OSX doesn't contain Win? can't figure the problem.. strange path delim wouldn't work as well..
what do you see as path on the text out of script when run on OSX?

Statistics: Posted by 23fx23 — 13 Feb 2019, 17:21


]]>
2019-02-13T18:03:25+02:00 2019-02-13T18:03:25+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40878#p40878 <![CDATA[OS is Win=0 / OSX = 1]]>
but easier with the file-path-delimiter module
if the output is '/' its OSX if the out is '' it's WIN
senso+++
No, that doesn't work here.
Always get "/"

I did a Path delim going into a string =
that checks against "/" and I get always a 1 on Win10 and on OSX as well...
(Meaning OSX path delimitation. Also on Win10, no change)

Any idea why that is?

Image

Statistics: Posted by lytz1 — 13 Feb 2019, 17:03


]]>
2019-02-13T17:48:18+02:00 2019-02-13T17:48:18+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40877#p40877 <![CDATA[OS is Win=0 / OSX = 1]]>
So it seems there might be a problem.

I get always a 1 (1=win10) from the script. I noticed when loading a workspace back on OSX.

I thought it worked flawless, because I imported OSX workspaces into Windows,
and there was no problem.
However: The workspace on OSX also outputs a 1. How come? Any idea?

Thanks,
tL.

Statistics: Posted by lytz1 — 13 Feb 2019, 16:48


]]>
2019-02-11T20:01:14+02:00 2019-02-11T20:01:14+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40849#p40849 <![CDATA[OS is Win=0 / OSX = 1]]>
@Senso:

It seems that the Sampler tries to load the files even before an "on init" can change the path so
that the files get found immediately.

I still get a long file not found/search list when loading a workspace. When the search is over and nothing was found,
wkp loading completes and THEN the path gets triggered and all samples are there as soon as I enable the engine .

The thing that I did is to move between OSX and Windows without always having to relocate the files.
So again, this works now automatically thanks to 23fx23's script, but it still doesn't suppress the file not found/search
stuff. Even if it should? Is there any way around this?

I mean it does work but I still have quite some downtime until the (in this case unnecessary) search process is over.

Thanks & best,
tL.

Statistics: Posted by lytz1 — 11 Feb 2019, 19:01


]]>
2019-02-11T17:09:43+02:00 2019-02-11T17:09:43+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40848#p40848 <![CDATA[OS is Win=0 / OSX = 1]]> but easier with the file-path-delimiter module
if the output is '/' its OSX if the out is '' it's WIN
senso+++

Statistics: Posted by senso — 11 Feb 2019, 16:09


]]>
2019-02-11T16:45:17+02:00 2019-02-11T16:45:17+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40847#p40847 <![CDATA[OS is Win=0 / OSX = 1]]> Statistics: Posted by nay-seven — 11 Feb 2019, 15:45


]]>
2019-02-11T14:58:59+02:00 2019-02-11T14:58:59+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40846#p40846 <![CDATA[OS is Win=0 / OSX = 1]]> Statistics: Posted by lytz1 — 11 Feb 2019, 13:58


]]>
2019-02-11T03:22:29+02:00 2019-02-11T03:22:29+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40845#p40845 <![CDATA[OS is Win=0 / OSX = 1]]>

CODE:

//////////////////////////// Extract usine app path with refresh button         /////////////////////////                                                          // declaration                                                            var refresh,textOut &#58; Tparameter;     var position &#58;  integer;     var pathstr &#58; string;      var is_windows &#58; Tparameter;// initialisation &#58; create parametersprocedure init;                       begin    refresh &#58;= CreateParam&#40;'get_path',ptButton&#41;;                                SetIsOutPut&#40;refresh,false&#41;;                                                               textOut &#58;= CreateParam&#40;'path',ptTextField&#41;;        SetIsInPut&#40;textOut,false&#41;;          is_windows &#58;= CreateParam&#40;'is_windows',ptSwitch&#41;;  SetIsInPut&#40;is_windows,false&#41;;                                  end;                                                                                                                          // Callbackprocedure callBack&#40;n&#58;integer&#41;;begin                   pathstr &#58;=  GetApplicationPath&#40;&#41;;            setStringValue&#40;textout,pathstr&#41;;             position &#58;=  pos&#40;'Win',pathstr&#41;;                       if&#40;position>0&#41; then begin              setValue&#40;is_windows,1&#41;;             end;end;

Statistics: Posted by 23fx23 — 11 Feb 2019, 02:22


]]>
2019-02-11T01:50:52+02:00 2019-02-11T01:50:52+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40843#p40843 <![CDATA[OS is Win=0 / OSX = 1]]>
Is it possible to get a true/false message (0/1) depending on which OS HH is running?

Unfortunately, the Usine Path module seems to be static. I hoped it would update the path dynamically
depending on which OS HH3 is currently running, but it doesn't.

Basically, I just need the Path module to update the path on .wkp loading and all would be fine.
But it is not.

Any ideas?

Thanks,
tL.

Statistics: Posted by lytz1 — 11 Feb 2019, 00:50


]]>
BrainModular BrainModular Users Forum 2019-02-13T22:05:09+02:00 https://brainmodular.com/forums/app.php/feed/topic/6403 2019-02-13T22:05:09+02:00 2019-02-13T22:05:09+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40884#p40884 <![CDATA[OS is Win=0 / OSX = 1]]> the module path is saved with the wkp and the old value reloaded on the new platform.
will be corrected in the v187

Statistics: Posted by senso — 13 Feb 2019, 21:05


]]>
2019-02-13T21:48:19+02:00 2019-02-13T21:48:19+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40883#p40883 <![CDATA[OS is Win=0 / OSX = 1]]> Let's see what we get.

Statistics: Posted by lytz1 — 13 Feb 2019, 20:48


]]>
2019-02-13T21:11:00+02:00 2019-02-13T21:11:00+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40882#p40882 <![CDATA[OS is Win=0 / OSX = 1]]> Statistics: Posted by 23fx23 — 13 Feb 2019, 20:11


]]>
2019-02-13T19:36:48+02:00 2019-02-13T19:36:48+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40881#p40881 <![CDATA[OS is Win=0 / OSX = 1]]>
Same for the delimiter module.

When saved in OSX it will stay with the application path from OSX (not recalculating) and vice versa.
The same might be true for the path delimiter module. Didn't check that yet though.

(EDIT: Yes indeed. When I add a brand new path delimited in Windows, I get the correct delimitation.
So something is off here. Or the modules aren't built for dynamically calculating these things?)


That also would explain why the script does fail in the other direction. (It worked depending under which OS
the workspace was saved in the first place)

Statistics: Posted by lytz1 — 13 Feb 2019, 18:36


]]>
2019-02-13T18:46:07+02:00 2019-02-13T18:46:07+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40880#p40880 <![CDATA[OS is Win=0 / OSX = 1]]> Not sure what's going on.

/Applications/Usine Hollyhock MacOSX 3.0.186.app

Gonna test some more.

Statistics: Posted by lytz1 — 13 Feb 2019, 17:46


]]>
2019-02-13T18:21:38+02:00 2019-02-13T18:21:38+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40879#p40879 <![CDATA[OS is Win=0 / OSX = 1]]> "C:Usine Hollyhock Win64 3.0.166" of currently running usine instance the script is trigged from and check if it contains "Win"
i suppose the path of the OSX doesn't contain Win? can't figure the problem.. strange path delim wouldn't work as well..
what do you see as path on the text out of script when run on OSX?

Statistics: Posted by 23fx23 — 13 Feb 2019, 17:21


]]>
2019-02-13T18:03:25+02:00 2019-02-13T18:03:25+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40878#p40878 <![CDATA[OS is Win=0 / OSX = 1]]>
but easier with the file-path-delimiter module
if the output is '/' its OSX if the out is '' it's WIN
senso+++
No, that doesn't work here.
Always get "/"

I did a Path delim going into a string =
that checks against "/" and I get always a 1 on Win10 and on OSX as well...
(Meaning OSX path delimitation. Also on Win10, no change)

Any idea why that is?

Image

Statistics: Posted by lytz1 — 13 Feb 2019, 17:03


]]>
2019-02-13T17:48:18+02:00 2019-02-13T17:48:18+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40877#p40877 <![CDATA[OS is Win=0 / OSX = 1]]>
So it seems there might be a problem.

I get always a 1 (1=win10) from the script. I noticed when loading a workspace back on OSX.

I thought it worked flawless, because I imported OSX workspaces into Windows,
and there was no problem.
However: The workspace on OSX also outputs a 1. How come? Any idea?

Thanks,
tL.

Statistics: Posted by lytz1 — 13 Feb 2019, 16:48


]]>
2019-02-11T20:01:14+02:00 2019-02-11T20:01:14+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40849#p40849 <![CDATA[OS is Win=0 / OSX = 1]]>
@Senso:

It seems that the Sampler tries to load the files even before an "on init" can change the path so
that the files get found immediately.

I still get a long file not found/search list when loading a workspace. When the search is over and nothing was found,
wkp loading completes and THEN the path gets triggered and all samples are there as soon as I enable the engine .

The thing that I did is to move between OSX and Windows without always having to relocate the files.
So again, this works now automatically thanks to 23fx23's script, but it still doesn't suppress the file not found/search
stuff. Even if it should? Is there any way around this?

I mean it does work but I still have quite some downtime until the (in this case unnecessary) search process is over.

Thanks & best,
tL.

Statistics: Posted by lytz1 — 11 Feb 2019, 19:01


]]>
2019-02-11T17:09:43+02:00 2019-02-11T17:09:43+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40848#p40848 <![CDATA[OS is Win=0 / OSX = 1]]> but easier with the file-path-delimiter module
if the output is '/' its OSX if the out is '' it's WIN
senso+++

Statistics: Posted by senso — 11 Feb 2019, 16:09


]]>
2019-02-11T16:45:17+02:00 2019-02-11T16:45:17+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40847#p40847 <![CDATA[OS is Win=0 / OSX = 1]]> Statistics: Posted by nay-seven — 11 Feb 2019, 15:45


]]>
2019-02-11T14:58:59+02:00 2019-02-11T14:58:59+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40846#p40846 <![CDATA[OS is Win=0 / OSX = 1]]> Statistics: Posted by lytz1 — 11 Feb 2019, 13:58


]]>
2019-02-11T03:22:29+02:00 2019-02-11T03:22:29+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40845#p40845 <![CDATA[OS is Win=0 / OSX = 1]]>

CODE:

//////////////////////////// Extract usine app path with refresh button         /////////////////////////                                                          // declaration                                                            var refresh,textOut &#58; Tparameter;     var position &#58;  integer;     var pathstr &#58; string;      var is_windows &#58; Tparameter;// initialisation &#58; create parametersprocedure init;                       begin    refresh &#58;= CreateParam&#40;'get_path',ptButton&#41;;                                SetIsOutPut&#40;refresh,false&#41;;                                                               textOut &#58;= CreateParam&#40;'path',ptTextField&#41;;        SetIsInPut&#40;textOut,false&#41;;          is_windows &#58;= CreateParam&#40;'is_windows',ptSwitch&#41;;  SetIsInPut&#40;is_windows,false&#41;;                                  end;                                                                                                                          // Callbackprocedure callBack&#40;n&#58;integer&#41;;begin                   pathstr &#58;=  GetApplicationPath&#40;&#41;;            setStringValue&#40;textout,pathstr&#41;;             position &#58;=  pos&#40;'Win',pathstr&#41;;                       if&#40;position>0&#41; then begin              setValue&#40;is_windows,1&#41;;             end;end;

Statistics: Posted by 23fx23 — 11 Feb 2019, 02:22


]]>
2019-02-11T01:50:52+02:00 2019-02-11T01:50:52+02:00 https://brainmodular.com/forums/viewtopic.php?t=6403&p=40843#p40843 <![CDATA[OS is Win=0 / OSX = 1]]>
Is it possible to get a true/false message (0/1) depending on which OS HH is running?

Unfortunately, the Usine Path module seems to be static. I hoped it would update the path dynamically
depending on which OS HH3 is currently running, but it doesn't.

Basically, I just need the Path module to update the path on .wkp loading and all would be fine.
But it is not.

Any ideas?

Thanks,
tL.

Statistics: Posted by lytz1 — 11 Feb 2019, 00:50


]]>