Current Page: NeXtMidas Training Primitives Lab 7 Instructions
| Lab 7: For this lab you are given a primitive that creates a sinewave and an interactive macro that will test the real-time controls for the primitive. Your job will be to add those real-time controls to the primitive. Files (be sure to save these with the correct names): primlab7.java - The primitive. test_primlab7.mm - Test macro. test_primlab7.mmp - Setup file for test macro. Use update to add the primitive to the command dictionary. It has 6 parameters (`OUT=,ELEM=,AMP=1,FREQ=0.01,START=0,DELTA=1`). Add the real-time controls necessary to get and set the frequency and amplitude of the waveform. Use the test macro to test them out. Hint: This lab requires you to write 4 new methods for the primitive. Each of the methods will be a single line in length. You can assume that the user will only use valid input values (i.e. you do not need to do any error checking).