tmhglnd / mercury

A minimal and human-readable language and environment for the live coding of algorithmic electronic music.
http://www.timohoogland.com/mercury-livecoding
GNU General Public License v3.0
292 stars 13 forks source link

Automatically log code #27

Closed tmhglnd closed 4 years ago

tmhglnd commented 4 years ago

Add an option to automatically store the current code everytime the code gets executed. This can be stored under ~/Documents/Mercury/logs for example.

GuillemGongora commented 4 years ago

Oh, that's super nice for keeping track of the changes!! Thank you!!

tmhglnd commented 4 years ago

Sadly it's not yet implemented, but i'm working on it!

tmhglnd commented 4 years ago

This is now included in the latest commit. There are 2 ways to turn on the Auto Logging:

  1. Click the toggle Auto Log Code in the main mercury window
  2. Run the code autoLog 1 in the mercury code editor

The setting is also automatically stored in the preferences.

The logs are stored under: /Users/<username>/Documents/Mercury/Code Logs/(same on mac and windows)

Also added the recording feature that stores the files to /Users/<username>/Documents/Mercury/Recordings/