<commit_before>title: jcom.map
author: [Jamoma]
created_at: 2012/1/1
tags: [mapping, max]

brief: scaling and mapping of control data 

desc: >
 use jcom.map to scale a number or a list using the Jamoma function library

inlets:
  - id: 0
    type: float/int/list
    desc: x	

outlets:
 - id: 0
   type: float/int/list
   desc: y=f(x)  
 - id: 1
   type: dumpout
   desc: returns .get and get* messages	

outputs:
 - name: int
   desc: The scaled value of the input integer number.
 - name: float
   desc: The scaled value of the input floating point number.
 - name: list
   desc: The scaled values when the input is a list of numbers.       	   
   
args:

attributes:
 - name: function
   type: string
   desc: type of the mapping function
   default: linear
 - name: inputMin
   type: float
   desc: minimum input value
   default: 0.0
 - name: inputMax
   type: float
   desc: maximum input value
   default: 1.0   
 - name: outputMin
   type: float
   desc: minimum input value
   default: 0.0
 - name: outputMax
   type: float
   desc: maximum output value
   default: 1.0

messages:
 - name: getfunction
   type: generic
   desc: return the current function	
 - name: function.get
   type: generic
   desc: returns a list of all mapping functions at the dumpout
 - name: function.parameters.get
   type: generic
   desc: returns a list of all parameter affecting the current mapping function 
 - name: parameter
   type: string float
   desc: ADD_TEXT
 - name: parameter.get
   type: string 
   desc: returns the current state of the requested parameter

seealso:
 - jmod.mapperContinuous
 - jmod.mapper
 - jcom.function
 - jcom.dataspace
 - scale

discussion: Jamoma is a free and open source project. http://www.jamoma.org <commit_msg>updating refpage for 0.6<commit_after>title: jcom.map
author: [Jamoma]
created_at: 2012/1/1
tags: [mapping, max]

brief: scaling and mapping of control data 

desc: >
 use jcom.map to scale a number or a list using the Jamoma function library

inlets:
  - id: 0
    type: float/int/list
    desc: input to be mapped according a defined function	

outlets:
 - id: 0
   type: float/int/list
   desc: y=f(x)  
 - id: 1
   type: dumpout
   desc: returns .get and get* messages	

outputs:
 - name: int
   desc: The scaled value of the input integer number.
 - name: float
   desc: The scaled value of the input floating point number.
 - name: list
   desc: The scaled values when the input is a list of numbers.       	   
   
args:

attributes:
 - name: active
   type: boolean
   desc: enable or disable the mapping function
   default: 1
 - name: function
   type: string
   desc: type of the mapping function
   default: linear
 - name: input/min
   type: float
   desc: minimum input value
   default: 0.0
 - name: input/max
   type: float
   desc: maximum input value
   default: 1.0   
 - name: output/min
   type: float
   desc: minimum input value
   default: 0.0
 - name: output/max
   type: float
   desc: maximum output value
   default: 1.0
 - name: inverse
   type: boolean
   desc: inverse mapping function
   default: 0
 - name: ramp
   type: int
   desc: ramp time when mapping one parameter value to another
   default: 0

messages:
 - name: getfunction
   type: generic
   desc: return the current function	
 - name: function.get
   type: generic
   desc: returns a list of all mapping functions at the dumpout
 - name: function.parameters.get
   type: generic
   desc: returns a list of all parameter affecting the current mapping function 
 - name: parameter
   type: string float
   desc: ADD_TEXT


seealso:
 - jmod.mapperContinuous
 - jmod.mapper
 - jcom.function
 - jcom.dataspace
 - scale

discussion: Jamoma is a free and open source project. http://www.jamoma.org 
{'fraction_non_alphanumeric': 0.07259576747923922, 'fraction_numerical': 0.010447361371551032, 'mean_word_length': 2.7947154471544717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5445529', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1134, 'n_words': 484}