# slider is a platform dependent block
# Context is defined in the HARDWARE and CONFIGURATION
# Examples: iOS_App, Android_App, HTML, Qt, etc.
slider Silders [2] {
minimum: [ 20, 0.0 ]
maximum: [ 20000, 1.0 ]
increment: [ 1, 0.01 ]
width: [ 10, 10 ]
height: 50
position: [ [ 10, 10 ], [ 30, 10] ]
tab: Oscillators
context: HTML
}
dictionary SliderNames {
key: [ 'frequency' , 'amplitude' ]
value: Range ( startValue: 1 stopValue: 2 increment: 1 )
}
# Normal Use
Sliders [ GetDictionaryValue ( dictionaryName: SliderNames key: 'frequency') ] >> Frequency;
# Proposed shorthand
Sliders [ 'frequency' from SliderNames ] >> Frequency;