Edit mode destroys source code (Windows 10/11)

What I do, is very simple:

  1. open a new file
  2. add “size(600, 500), colour(200, 200, 200), textColour (0,0,0)” to the caption
  3. add the following lines to the cabbage part:
    #define SLIDER1 textColour ( 0, 0, 0), trackerColour (170, 170, 170)
    #define LABEL1 textColour ( 0, 0, 0), fontColour (0, 0, 0)
    #define COMBO1 colour (170, 170, 170), fontColour (0, 0, 0)
    rslider $SLIDER1 bounds ( 12, 14, 105, 101), channel (“att”), range (0, 20, 0.1, 1, 0.01), text (“Attack”)
    rslider $SLIDER1 bounds (114, 14, 105, 101), channel (“dec”), range (0, 20, 0.5, 1, 0.01), text (“Decay”)
    rslider $SLIDER1 bounds (218, 14, 105, 101), channel (“sus”), range (0, 1, 0.5, 0.5, 0.01), text (“Sustain”)
    rslider $SLIDER1 bounds (322, 14, 105, 101), channel (“rel”), range (0, 20, 0.7, 1, 0.01), text (“Release”)
  4. say “Run” to bring the GUI up
  5. say “Stop”
  6. enter edit mode
  7. move a slider.

Result: garbage.

That’s all.

1 Like