📖 Mercury Function Reference
Disclaimer: This documentation is not entirely finished and will subject to changes. If you like to contribute or find errors, please report them in the issues or correct them yourself and send a pull request
Disclaimer: There are differences between the Mercury Browser version and the Mercury for Max8 version. Please be aware that this may be the reason some functions are not working
Code Documentation
- Actions
- set (global)
- new (instruments)
- All instruments (except midi)
- synth
- sample / loop
- polySynth
- polySample (MercuryPlayground only)
- midi
- input
- modulator (Mercury4Max only)
- emitter (osc) (Mercury4Max only)
- fx (Sound Effects)
- freeze (Mercury4Max only)
- shift
- triggerFilter
- kink (Mercury4Max only)
- drive / distort
- filter
- filterModulation (Mercury4Max only)
- degrade / chip
- comb *
- squash
- double / chorus
- hall / reverb
- lfo
- echo / delay
- list (list functions)
- Generative Methods
- Algorithmic Methods
- Stochastic Methods
- Transformative Methods
- Translate Methods
- midiToNote
- midiToFreq
- noteToMidi
- noteToFreq
- freqToMidi
- freqToMidi
- freqToNote
- relativeToMidi
- relativeToFreq
- chromaToRelative
- ratioToCent
- chordsFromNumerals
- chordsFromNames
- divisionToMs
- divisionToRatio
- ratioToMs
- scaleNames
- toScale
- Utility Methods
Param Glossary
When describing input arguments for functions in some cases it is necessary to know if the values can be a number (positive and/or negative), a decimal number (float) or a name (string).
Values
Value
-> Any Number or NameNumber
-> Int+, Int or FloatBool
-> 0 or 1 (true or false)Int+
-> A positive whole number, bigger than 0Int
-> A whole number, negative or positive, including 0Float
-> A floating-point number, negative or positive, including 0
Name
-> A combination of letter-characters, may include capital letter, underscores and digits
Lists
List
-> A list withValue
’sNumberList
-> A list withNumber
’sIntList+
-> A list withInt+
’sIntList
-> A list withInt
’sFloatList
-> A list withFloat
’s
NameList
-> A list withName
’s