最終更新:2013-03-14 (木) 23:34:11 (4059d)  

OscillatorNode
Top / OscillatorNode

https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#OscillatorNode

インターフェイス

enum OscillatorType {
  "sine",
  "square",
  "sawtooth",
  "triangle",
  "custom"
};

interface OscillatorNode : AudioSourceNode {

    attribute OscillatorType type;

    const unsigned short UNSCHEDULED_STATE = 0;
    const unsigned short SCHEDULED_STATE = 1;
    const unsigned short PLAYING_STATE = 2;
    const unsigned short FINISHED_STATE = 3;

    readonly attribute unsigned short playbackState;

    readonly attribute AudioParam frequency; // in Hertz
    readonly attribute AudioParam detune; // in Cents

    void start(double when);
    void stop(double when);
    void setWaveTable(WaveTable waveTable);

};

波形

関連

参考