ccrma / chuck

ChucK Music Programming Language
http://chuck.stanford.edu/
GNU General Public License v2.0
815 stars 130 forks source link

Add Machine.platform() #247

Open mulshine opened 1 year ago

mulshine commented 1 year ago

Add Machine.platform(). Retrieve operating system and device info.

e.g. so ChucK can know what OS or device it's running on (desktop Mac, iPhone, Lenovo Notepad, etc), which allows unique development for each platform type

nshaheed commented 1 year ago

This will need to touch similar parts of the codebase that Machine.silent and Machine.realtime() do

https://github.com/ccrma/chuck/commit/17746309134390e710a03d3e2cf09ab54633e3d5 and https://github.com/ccrma/chuck/commit/01ef1122bf863b5bdc201808b1d6401fb72c9508 will be helpful references