Create a waveform containing a sequence of 50 (or 25, or more) repetitions of a square wave of amplitude given. The waveform will have a length defined by the number of waveforms specified (50 in this case). The waveform will be created with only the width and amplitude set, the length will be calculated automatically from the amplitudes.
The waveform is stored in the second window.
KEYMACRO(0): Draws the waveform into the specified window.
; Create a waveform containing a sequence of 5 repeats of a square wave of amplitude 0.1
; The waveform will have a length of 5 waves, with the width being 0.1.
; The waveform is drawn to the specified window.
;
; Supported:
; - - GUI=ON
; - - Draws a window to hold the waveform
; - - Bounds=ON
; - - Creates the window with a width and height
; - - Amplitude=ON
; - - Creates the waveform with the specified amplitude
KEYMACRO(5); Length of the waveform
KEYMACRO(0.1); Amplitude of the waveform
; Calculate the length of the waveform based on the amplitude.
; The calculated waveform will be of the width set in the GUI.
KEYMACRO(LENGTH=pow(amplitude,2) + 1); Length of the waveform
; Draws the waveform in the window defined by the GUI.
; Each pixel drawn in the window is one of the waveform.
; Only the amplitude changes each time.
; The height of the waveform depends on the amplitude.
;
; Supported:
; - - GUI=ON
; - - Draws a window to hold the waveform
; - - Bounds=ON
; - - Creates the window with a width and height
; - - Amplitude=ON
; - - Creates the waveform with the specified amplitude
;
; WARNING: This function may crash your application if it gets called with bad data.
; This happens when the amplitude is set to zero, for example.
;
; @Inputs:
; - GUI: Flag indicating if the GUI should be enabled or not.
; - Bounds: Left, right, top, bottom: Rectangle defining the bounds of the window. a77f14ba26 mandros
https://www.pierslinney.com/profile/wya ... te/profilehttps://ee.minemastergeneral.com/profil ... ed/profilehttps://www.estudioeme.com.ar/profile/p ... ly/profilehttps://www.dehmiblogs.com/profile/Nagp ... er/profilehttps://www.ccfh.ca/profile/PreSonus-St ... ad/profile