Globals

Abstract types

callback_loadclip_oncomplete(clip)

Callback for clip loading completion. Called by WX.loadClip.

Parameter

Name Type Optional Description

clip

Object

 

WAAX clip

See also
WX.loadClip

callback_loadclip_onprogress(event, clip)

Callback for clip loading progress report. called by WX.loadClip.

Parameters

Name Type Optional Description

event

Object

 

XHR progress event object

clip

Object

 

WAAX clip

See also
WX.loadClip
https://dvcs.w3.org/hg/progress/raw-file/tip/Overview.html

callback_noteclip_iterate(id, Note, index)

Callback for note clip interation. Called by NoteClip.iterate.

Parameters

Name Type Optional Description

id

String

 

Note ID.

Note

Note

 

object.

index

Number

 

Iteration index.

See also
NoteClip.iterate

MBST  Object

Measure, beat, sixteenth, tick aka musical timebase.

Properties

Name Type Optional Description

measure

Number

 

Measure.

beat

Number

 

Beat.

sixteenth

Number

 

Sixteenth.

tick

Number

 

Tick.

WAPL  Object

Web Audio API Plug-in Object.

WXClip  Object

WAAX abstraction of sample and meta data.

Example

var clip = {
  name: 'Cool Sample',
  url: 'http://mystaticdata.com/samples/coolsample.wav',
  buffer: null
};

Properties

Name Type Optional Description

name

String

 

User-defined name of sample.

url

String

 

URL of audio file.

buffer

Object

 

A placeholder for ArrayBuffer object.

WXModel  Array

Contains a model for data binding.

Example

var model = [
  { key:'Sine', value:'sine' },
  { key:'Sawtooth', value:'sawtooth' }
  ...
];

WXSampleZone  Object

WAAX abstraction of sampler instrument data.

Example

var sampleZone = {
  clip: WXClip
  basePitch: 60            // samples original pitch
  loop: true,
  loopStart: 0.1,
  loopEnd: 0.5,
  pitchLow: 12,            // pitch low bound
  pitchHigh: 96,           // pitch high bound
  velocityLow: 12,         // velocity lower bound
  velocityHigh: 127,       // velocity high bound
  pitchModulation: true,   // use pitch modulation
  velocityModulatio: true  // use velocity moduation
};

Properties

Name Type Optional Description

clip

WXClip

 

WXClip object.

basePitch

Number

 

Original sample pitch.

loop

Boolean

 

Looping flag.

loopStart

Number

 

Loop start point in seconds.

loopEnd

Number

 

Loop end point in seconds.

pitchLow

Number

 

Low pitch bound.

pitchHigh

Number

 

High pitch bound.

velocityLow

Number

 

Low velocity bound.

velocityHigh

Number

 

High velocity bound.

pitchModulation

Boolean

 

Switch for pitch sensitivity modulation.

velocityModulatio

Boolean

 

Switch for velocity sensitivity modulation.