class-quantizedmap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
class-quantizedmap [2022/03/19 04:11] renickclass-quantizedmap [2023/10/05 23:04] (current) steve.wang
Line 1: Line 1:
 ====== class: QuantizedMap ====== ====== class: QuantizedMap ======
  
-===== Description =====+<markdown> 
 +### Players 
 +Players are processes that can be started or stopped using the metaphor of a player in a musical ensemble like a band or orchestra.
  
-A QuantizedMap is a discrete function in which an input returns one of a set of possible outputs+Players are data structures to represent an agent which carries out Action functions in time according to an IOI function.
  
-A common use is to provide set of time intervals from 0 to n in which each interval is mapped to specific output.+Players can be used for single or multiple outputs. Anything that can be manipulated with JavaScript function call can be an output. Actions for the SuperDirt sampler and MIDI are included in the distribution.
  
-===== Constructor =====+By starting and stopping Players, a performance can be realized.
  
-===== Static Properties ===== 
  
-===== Static Methods =====+##### Syntax 
 +``` 
 +new Player(name) 
 +```
  
-===== Instance Properties =====+##### Parameters 
 +###### name 
 +Name of the player. This will also be the value of the name variable in the player.
  
-===== Instance Methods =====+##### Examples 
 +``` 
 +e.players.testPlayer new Player('testPlayer'
 +e.players.testPlayer.maskMap 'default' 
 +e.players.testPlayer.action 'midiSequencedRhythm' 
 +e.players.testPlayer.rhythmMap 'default' 
 +console.log(e.palyers.testPlayer) 
 +```
  
-===== Examples =====+This class is usually called by helper functions like setupMidiRhythm or setupPlaybackPlayer. To make the the player work, the user needs to give it a maskMap, action function and, a rhythmMap.
  
 +---
 +
 +---
 +
 +</markdown>
  • class-quantizedmap.1647688303.txt.gz
  • Last modified: 2022/03/19 04:11
  • by renick