ArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2015-03-21T18:34:42+02:00 https://brainmodular.org/forums/app.php/feed/topic/4730 2015-03-21T18:34:42+02:00 2015-03-21T18:34:42+02:00 https://brainmodular.org/forums/viewtopic.php?t=4730&p=31623#p31623 <![CDATA[Usine base directory]]>
So Senso has provided some updates for this specifically you will find in HH2.
Refer to the Declarations and References page, where this info can be found.
function PathDelim:string; // returns '/' on MACOS, '' on windows
procedure CreateDir(dir:String);
function GetApplicationPath:string; //give the absolute path of the current Usine's folder
Very interesting for Windows / MAC OS compatibility, I was always wondering what the PathDelim was:
Just learned that it should be used when specifying paths for compatibility since the difference between Windows / MAC file path differences of
forward/back slash.

Also if saving data, I was originally using the Resources folder for my location.
I was told it was probably more appropriate to utilize the Config location to place as a Data location, since Resources are applicable to change and can be Private.

Definitely exciting, can't wait for Hollyhock II

-S

Statistics: Posted by sephult — 21 Mar 2015, 17:34


]]>
2015-03-20T20:54:20+02:00 2015-03-20T20:54:20+02:00 https://brainmodular.org/forums/viewtopic.php?t=4730&p=31610#p31610 <![CDATA[Usine base directory]]>
This seems like the only logical workaround without an expanded Fastscript, such as Pascals Get/Set/Create directory functions.

Until these functions become available, or if there are any alternatives we don't know about:
At the moment should be able just to set the base directory and read a dummy file once, to give a path to your Fastscript.

You could also read the Master Setup panel and pull the directory for one of the pre-set folders such as the MIDI directory, alternate drive, etc...


-S

Statistics: Posted by sephult — 20 Mar 2015, 19:54


]]>
2015-03-20T20:11:10+02:00 2015-03-20T20:11:10+02:00 https://brainmodular.org/forums/viewtopic.php?t=4730&p=31609#p31609 <![CDATA[Usine base directory]]> I wish the full Pascal functions were available as there are options for Get and Set of the directory as well as directory creation.

Senso would this be possible to implement?

-S

Statistics: Posted by sephult — 20 Mar 2015, 19:11


]]>
2015-03-20T19:01:32+02:00 2015-03-20T19:01:32+02:00 https://brainmodular.org/forums/viewtopic.php?t=4730&p=31608#p31608 <![CDATA[Usine base directory]]>
I too am looking into some file-handling relative to the current Usine base-directory.
Have you had any luck determining how to set the path based on this?

-S

Statistics: Posted by sephult — 20 Mar 2015, 18:01


]]>
2015-03-05T21:14:30+02:00 2015-03-05T21:14:30+02:00 https://brainmodular.org/forums/viewtopic.php?t=4730&p=31504#p31504 <![CDATA[Usine base directory]]> Simon.

Statistics: Posted by sm_jamieson — 05 Mar 2015, 20:14


]]>
2015-03-05T20:56:36+02:00 2015-03-05T20:56:36+02:00 https://brainmodular.org/forums/viewtopic.php?t=4730&p=31502#p31502 <![CDATA[Usine base directory]]> I need to know this in order to read in a stringlist file from a subdirectory.
Simon.

Statistics: Posted by sm_jamieson — 05 Mar 2015, 19:56


]]>
BrainModular BrainModular Users Forum 2015-03-21T18:34:42+02:00 https://brainmodular.org/forums/app.php/feed/topic/4730 2015-03-21T18:34:42+02:00 2015-03-21T18:34:42+02:00 https://brainmodular.org/forums/viewtopic.php?t=4730&p=31623#p31623 <![CDATA[Usine base directory]]>
So Senso has provided some updates for this specifically you will find in HH2.
Refer to the Declarations and References page, where this info can be found.
function PathDelim:string; // returns '/' on MACOS, '' on windows
procedure CreateDir(dir:String);
function GetApplicationPath:string; //give the absolute path of the current Usine's folder
Very interesting for Windows / MAC OS compatibility, I was always wondering what the PathDelim was:
Just learned that it should be used when specifying paths for compatibility since the difference between Windows / MAC file path differences of
forward/back slash.

Also if saving data, I was originally using the Resources folder for my location.
I was told it was probably more appropriate to utilize the Config location to place as a Data location, since Resources are applicable to change and can be Private.

Definitely exciting, can't wait for Hollyhock II

-S

Statistics: Posted by sephult — 21 Mar 2015, 17:34


]]>
2015-03-20T20:54:20+02:00 2015-03-20T20:54:20+02:00 https://brainmodular.org/forums/viewtopic.php?t=4730&p=31610#p31610 <![CDATA[Usine base directory]]>
This seems like the only logical workaround without an expanded Fastscript, such as Pascals Get/Set/Create directory functions.

Until these functions become available, or if there are any alternatives we don't know about:
At the moment should be able just to set the base directory and read a dummy file once, to give a path to your Fastscript.

You could also read the Master Setup panel and pull the directory for one of the pre-set folders such as the MIDI directory, alternate drive, etc...


-S

Statistics: Posted by sephult — 20 Mar 2015, 19:54


]]>
2015-03-20T20:11:10+02:00 2015-03-20T20:11:10+02:00 https://brainmodular.org/forums/viewtopic.php?t=4730&p=31609#p31609 <![CDATA[Usine base directory]]> I wish the full Pascal functions were available as there are options for Get and Set of the directory as well as directory creation.

Senso would this be possible to implement?

-S

Statistics: Posted by sephult — 20 Mar 2015, 19:11


]]>
2015-03-20T19:01:32+02:00 2015-03-20T19:01:32+02:00 https://brainmodular.org/forums/viewtopic.php?t=4730&p=31608#p31608 <![CDATA[Usine base directory]]>
I too am looking into some file-handling relative to the current Usine base-directory.
Have you had any luck determining how to set the path based on this?

-S

Statistics: Posted by sephult — 20 Mar 2015, 18:01


]]>
2015-03-05T21:14:30+02:00 2015-03-05T21:14:30+02:00 https://brainmodular.org/forums/viewtopic.php?t=4730&p=31504#p31504 <![CDATA[Usine base directory]]> Simon.

Statistics: Posted by sm_jamieson — 05 Mar 2015, 20:14


]]>
2015-03-05T20:56:36+02:00 2015-03-05T20:56:36+02:00 https://brainmodular.org/forums/viewtopic.php?t=4730&p=31502#p31502 <![CDATA[Usine base directory]]> I need to know this in order to read in a stringlist file from a subdirectory.
Simon.

Statistics: Posted by sm_jamieson — 05 Mar 2015, 19:56


]]>