Expressions Documentation

A reference for SpectroDraw Pro's javascript expressions.

Global variables

Variable Note
brush.tool.size
brush.tool.width
brush.tool.height
brush.tool.opacity
brush.tool.harmonics
brush.tool.clonerRefX
brush.tool.clonerRefY
brush.tool.clonerScale
brush.effect.brightness
brush.effect.blurRadius
brush.effect.amplify
brush.effect.aggressiveness
brush.effect.autotuneStrength
brush.effect.baseHz
brush.effect.notesPerOctave
brush.effect.phaseTexture
brush.effect.phaseSettings
brush.effect.phaseStrength
brush.effect.phaseShift
brush.effect.panTexture
brush.effect.panShift
brush.effect.panStrength
brush.effect.panBand
brush.effect.magnitudeStrength
eqBands
mouse.frameMouse X, raging from 0 to specWidth
mouse.binMouse Y, ranging from 0 to specHeight, log scale does not apply
mouse.startFrameThe value of mouse.frame immediately after a mouse down on the spectrogram
mouse.startBinThe value of mouse.bin immediately after a mouse down on the spectrogram
zoom.x.min
zoom.x.max
zoom.y.min
zoom.y.max
currentLayer.logScale
sampleRate
specHeightEqual to (pitch resolution)/2
specWidthSpectrogram width in frames, equal to (buffer length) * sampleRate/hop
currentTool
currentEffect
pixel.frameX position of a particular pixel. Use this if you need a very smooth gradient. Warning: may cause lag
pixel.binY position of pixel. Does not follow log scale.
hopEqual to the time resolution
brush.effect.phaseSettings.t0
brush.effect.phaseSettings.tau
brush.effect.phaseSettings.sigma
brush.effect.phaseSettings.harmonicCenter
brush.effect.phaseSettings.userDelta
brush.effect.phaseSettings.refPhaseFrame
brush.effect.phaseSettings.chirpRate
brush.effect.chorus.enabled
brush.effect.chorus.voices
brush.effect.chorus.voiceStrength
brush.effect.chorus.detune
brush.effect.chorus.panSpread
brush.effect.chorus.randomness
currentLayer
layers