tmhglnd / mercury-playground

The Mercury live coding environment running in the browser
GNU General Public License v3.0
62 stars 6 forks source link

Display custom loaded sound names #15

Closed tmhglnd closed 2 years ago

tmhglnd commented 2 years ago

When sounds are added you can't see the filenames anymore after the code is executed (because removed from log screen). A way to retrieve the filenames would be nice, for example with print soundNames() similar to how print scaleNames() works.

tmhglnd commented 2 years ago

The sounds button is replaced by a sounds menu. A dropdown list of all the loaded sounds. When new sounds are added via add sounds their names also appear in this list on the bottom. Clicking on a soundfile will put the text in the editor on the place of the cursor. When a portion of code is selected that is replaced by the selected soundfile.