Move all existing code into a new package under the existing ones called model, then add a package called "view". (This is MVC separation)
In the view subdirectory, add a new class based on a JFrame and approrpiate components that would be a suitable GUI for this basic synthesis program.
I.e. make sliders, perhaps for the various values that are currently coming from the command line?
Or maybe have a place where you can "draw" an envelope by moving something around?
(Start with the sliders, but considering drawing the resulting envelope?)
Then if its easy, just "call" the function from the model classes---refactor if needed.. so that you keep a clean separation between the GUI and the rest of the code.
Move all existing code into a new package under the existing ones called model, then add a package called "view". (This is MVC separation)
In the view subdirectory, add a new class based on a JFrame and approrpiate components that would be a suitable GUI for this basic synthesis program.
I.e. make sliders, perhaps for the various values that are currently coming from the command line?
Or maybe have a place where you can "draw" an envelope by moving something around?
(Start with the sliders, but considering drawing the resulting envelope?)
Then if its easy, just "call" the function from the model classes---refactor if needed.. so that you keep a clean separation between the GUI and the rest of the code.
~estimate: 240