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.frame | Mouse X, raging from 0 to specWidth |
| mouse.bin | Mouse Y, ranging from 0 to specHeight, log scale does not apply |
| mouse.startFrame | The value of mouse.frame immediately after a mouse down on the spectrogram |
| mouse.startBin | The 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 | |
| specHeight | Equal to (pitch resolution)/2 |
| specWidth | Spectrogram width in frames, equal to (buffer length) * sampleRate/hop |
| currentTool | |
| currentEffect | |
| pixel.frame | X position of a particular pixel. Use this if you need a very smooth gradient. Warning: may cause lag |
| pixel.bin | Y position of pixel. Does not follow log scale. |
| hop | Equal 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 |