AnsweredSONAR Environment Variables...

Author
dantarbill
Max Output Level: -57 dBFS
  • Total Posts : 1820
  • Joined: 2004/12/15 10:48:18
  • Location: Monrovia, CA
  • Status: offline
2015/02/02 14:04:33 (permalink)

SONAR Environment Variables...

Sorry to interrupt all of the Platinum install noise...
 
There's a number of file location paths that are presented in the SONAR UI (Preferences/File/Folder Locations).  Some of these show up in the registry in places like HKUSER\Software\Cakewalk Music Software\SONAR Producer\X3\UserPaths or HKLM\Wow6432Node\Cakewalk Music Software\SONAR Producer\X3\ContentLocations.
 
There's a bunch of these definitions that refer to what looks like environment variables, like...
%USERMUSIC%
%PROJECTAUDIOFILES%
%PROJECTFILES%
%STEPSEQUENCES%
%TRACKICONS%
%TRACKTEMPLATES%
 
Can anyone tell me where the environment variables for SONAR are defined?

Dan Tarbill
#1
Greeny
Max Output Level: -87 dBFS
  • Total Posts : 181
  • Joined: 2014/09/26 11:55:12
  • Status: offline
Re: SONAR Environment Variables... 2015/02/02 14:13:29 (permalink)
Preferences, file, folder locations :)
 
Oh and they just point to folder locations, not really environment variables as such.
#2
js516
Max Output Level: -84 dBFS
  • Total Posts : 347
  • Joined: 2006/05/17 15:14:53
  • Status: offline
Re: SONAR Environment Variables... 2015/02/02 14:15:54 (permalink)
They are not defined anywhere. I believe that they are used internally to refer to the configuration settings.

Joe Sera
 
Gigabyte GA-990FXA-UD3, AMD FX-8320, Corsair 32GB 1600 Ram, MOTU AVB on USB3, AMD Radeon R7-200
#3
dantarbill
Max Output Level: -57 dBFS
  • Total Posts : 1820
  • Joined: 2004/12/15 10:48:18
  • Location: Monrovia, CA
  • Status: offline
Re: SONAR Environment Variables... 2015/02/02 17:52:52 (permalink)
Is there anyone who actually knows the answer to this that would care to answer?  Are there any Cakewalk devs out there?

Dan Tarbill
#4
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: SONAR Environment Variables... 2015/02/02 18:22:25 (permalink)
No, there are rarely Devs around here as I'm sure you know; this is primarily a user forum. And if a Dev were to happen along, I suspect he would likely not understand the question as-written, either, as it seems to answer itself:
 
These path variables are intended to be defined in Preferences > File > Folder Locations, and their values are stored "in the registry in places like HKUSER\Software\Cakewalk Music Software\SONAR Producer\X3\UserPaths or HKLM\Wow6432Node\Cakewalk Music Software\SONAR Producer\X3\ContentLocations."
 
So what's the question? 

SONAR Platinum x64, 2x MOTU 2408/PCIe-424  (24-bit, 48kHz)
Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
#5
dantarbill
Max Output Level: -57 dBFS
  • Total Posts : 1820
  • Joined: 2004/12/15 10:48:18
  • Location: Monrovia, CA
  • Status: offline
Re: SONAR Environment Variables... 2015/02/02 18:59:18 (permalink)
brundlefly
No, there are rarely Devs around here as I'm sure you know; this is primarily a user forum. And if a Dev were to happen along, I suspect he would likely not understand the question as-written, either, as it seems to answer itself:
 
These path variables are intended to be defined in Preferences > File > Folder Locations, and their values are stored "in the registry in places like HKUSER\Software\Cakewalk Music Software\SONAR Producer\X3\UserPaths or HKLM\Wow6432Node\Cakewalk Music Software\SONAR Producer\X3\ContentLocations."
 
So what's the question? 


The question is...in some of those ContentLocation registry keys...instead of full path specifiers, there are upper case identifiers surrounded with percent signs (%) in the same way that you would use to substitute an environment variable for a literal string in a batch file.  (Maybe I'm just showing my age here by going back to the DOS days.)
 
So...%TRACKICONS% would get substituted with the contents of the TRACKICONS environment variable at runtime.  That is to say that some of the registry entries are referring to variables that are defined elsewhere.  My question is, where would I find the definitions of env vars such as TRACKICONS, et al?  Perhaps more simply put...where is the "elsewhere"?

Dan Tarbill
#6
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: SONAR Environment Variables... 2015/02/02 20:02:48 (permalink)
Thanks for taking the time to clarify, Bill. I had done a quick check of User Paths, and they were all full, explicit paths. But I see now that many of the paths in Content Locations use that variable format. I suspect this is how the installer refers to those user paths when copying content to them on install.
 
Are you encountering some issue related to all of this or you're just curious or you want to customize something or...?
 
 

SONAR Platinum x64, 2x MOTU 2408/PCIe-424  (24-bit, 48kHz)
Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
#7
Noel Borthwick [Cakewalk]
Cakewalk Staff
  • Total Posts : 6475
  • Joined: 2003/11/03 17:22:50
  • Location: Boston, MA, USA
  • Status: offline
Re: SONAR Environment Variables... 2015/02/02 23:00:50 (permalink) ☼ Best Answerby robert_e_bone 2015/02/03 00:19:56
They are "internal" environment variables used within SONAR and to expand to their corresponding per user paths. 
I cooked these up to allow the installer to set up various default content location presets as used in the media browser. Since the installer does not know the current user this allows it to use abstract paths that get expanded to the right ones at runtime in SONAR. They are currently only used in browser presets. 
 
The current list is:
 
%USERDOCUMENTS% // my documents
%USERMUSIC% // my music
%PROJECTFILES% // project files folder
%PROJECTTEMPLATES% // project templates folder
%TRACKTEMPLATES%" // track templates folder
%TRACKICONS% // track icons folder
%PROJECTAUDIOFILES% // project audio files folder;
%VIDEOFILES% // video files folder
%PLAYLISTFILES% // playlist files folder
%STEPSEQUENCES% // step sequences folder

Noel Borthwick
Senior Manager Audio Core, BandLab
My Blog, Twitter, BandLab Profile
#8
dantarbill
Max Output Level: -57 dBFS
  • Total Posts : 1820
  • Joined: 2004/12/15 10:48:18
  • Location: Monrovia, CA
  • Status: offline
Re: SONAR Environment Variables... 2015/02/03 10:39:54 (permalink)
Noel Borthwick [Cakewalk]
They are "internal" environment variables used within SONAR and to expand to their corresponding per user paths.




Ok...that is to say that they only exist in the context of a SONAR executable and can't be modified by normal humans?
 
And thanks for the answer by the way.  That's what I was looking for.

Dan Tarbill
#9
BobF
Max Output Level: 0 dBFS
  • Total Posts : 8124
  • Joined: 2003/11/05 18:43:11
  • Location: Missouri - USA
  • Status: offline
Re: SONAR Environment Variables... 2015/02/03 11:26:35 (permalink)
dantarbill
Sorry to interrupt all of the Platinum install noise...
 
There's a number of file location paths that are presented in the SONAR UI (Preferences/File/Folder Locations).  Some of these show up in the registry in places like HKUSER\Software\Cakewalk Music Software\SONAR Producer\X3\UserPaths or HKLM\Wow6432Node\Cakewalk Music Software\SONAR Producer\X3\ContentLocations.
 
There's a bunch of these definitions that refer to what looks like environment variables, like...
%USERMUSIC%
%PROJECTAUDIOFILES%
%PROJECTFILES%
%STEPSEQUENCES%
%TRACKICONS%
%TRACKTEMPLATES%
 
Can anyone tell me where the environment variables for SONAR are defined?




I checked here with Sonar running and not.  No environment variables related to Sonar showed up.
 


Bob  --
Angels are crying because truth has died ...
Illegitimi non carborundum
--
Studio One Pro / i7-6700@3.80GHZ, 32GB Win 10 Pro x64
Roland FA06, LX61+, Fishman Tripleplay, FaderPort, US-16x08 + ARC2.5/Event PS8s 
Waves Gold/IKM Max/Nomad Factory IS3/K11U

#10
dantarbill
Max Output Level: -57 dBFS
  • Total Posts : 1820
  • Joined: 2004/12/15 10:48:18
  • Location: Monrovia, CA
  • Status: offline
Re: SONAR Environment Variables... 2015/02/03 11:32:33 (permalink)
BobF
dantarbill
 
Can anyone tell me where the environment variables for SONAR are defined?




I checked here with Sonar running and not.  No environment variables related to Sonar showed up.
 





If I properly understand Noel's answer...you'd have to open a DOS shell within the SONAR process to see the env vars in question.  They wouldn't be global to the entire system.

Dan Tarbill
#11
BobF
Max Output Level: 0 dBFS
  • Total Posts : 8124
  • Joined: 2003/11/05 18:43:11
  • Location: Missouri - USA
  • Status: offline
Re: SONAR Environment Variables... 2015/02/03 11:52:11 (permalink)
Weird.  When I opened this thread, Noel's post wasn't there.  If I had seen that I wouldn't have posted what I posted.
 
Maybe the Bakers need to start a membership fee for the forum so we can get bug fixes here too 

Bob  --
Angels are crying because truth has died ...
Illegitimi non carborundum
--
Studio One Pro / i7-6700@3.80GHZ, 32GB Win 10 Pro x64
Roland FA06, LX61+, Fishman Tripleplay, FaderPort, US-16x08 + ARC2.5/Event PS8s 
Waves Gold/IKM Max/Nomad Factory IS3/K11U

#12
Noel Borthwick [Cakewalk]
Cakewalk Staff
  • Total Posts : 6475
  • Joined: 2003/11/03 17:22:50
  • Location: Boston, MA, USA
  • Status: offline
Re: SONAR Environment Variables... 2015/02/03 15:43:29 (permalink)
dantarbill
Ok...that is to say that they only exist in the context of a SONAR executable and can't be modified by normal humans?

 
They aren't really in the environment that way. Its just a shortcut for special paths that follow the same conventions as environment variables. However only SONAR knows how to expand them.
A user could edit content presets manually using those variables if they wanted to but thats the only place they are used currently.

Noel Borthwick
Senior Manager Audio Core, BandLab
My Blog, Twitter, BandLab Profile
#13
Greeny
Max Output Level: -87 dBFS
  • Total Posts : 181
  • Joined: 2014/09/26 11:55:12
  • Status: offline
Re: SONAR Environment Variables... 2015/02/03 15:51:06 (permalink)
dantarbill
Is there anyone who actually knows the answer to this that would care to answer?  Are there any Cakewalk devs out there?


Nevermind. I'll keep it to myself next time, rude or what.
post edited by Greeny - 2015/02/03 16:06:51
#14
Jump to:
© 2025 APG vNext Commercial Version 5.1