class Oscillator


This generates variable frequency oscillation curves

Summary

Constants

const Int
BOUNCE = 6
const Int
const Int
CUSTOM = 7
const Int
const Int
const Int
const Int
const Int

Public constructors

Public functions

Unit
addPoint(position: Double, period: Float)
Double
getSlope(time: Double, phase: Double, dphase: Double)
Double
getValue(time: Double, phase: Double)
Unit

After adding point every thing must be normalized

Unit
setType(type: Int, customType: String!)
String!

Public properties

java-static String!

Constants

BOUNCE

Added in 1.1.0-alpha13
const val BOUNCE = 6: Int

COS_WAVE

Added in 1.1.0-alpha13
const val COS_WAVE = 5: Int

CUSTOM

Added in 1.1.0-alpha13
const val CUSTOM = 7: Int

REVERSE_SAW_WAVE

Added in 1.1.0-alpha13
const val REVERSE_SAW_WAVE = 4: Int

SAW_WAVE

Added in 1.1.0-alpha13
const val SAW_WAVE = 3: Int

SIN_WAVE

Added in 1.1.0-alpha13
const val SIN_WAVE = 0: Int

SQUARE_WAVE

Added in 1.1.0-alpha13
const val SQUARE_WAVE = 1: Int

TRIANGLE_WAVE

Added in 1.1.0-alpha13
const val TRIANGLE_WAVE = 2: Int

Public constructors

Oscillator

Added in 1.1.0-alpha13
Oscillator()

Public functions

addPoint

Added in 1.1.0-alpha13
fun addPoint(position: Double, period: Float): Unit

getSlope

Added in 1.1.0-alpha13
fun getSlope(time: Double, phase: Double, dphase: Double): Double

getValue

Added in 1.1.0-alpha13
fun getValue(time: Double, phase: Double): Double

normalize

Added in 1.1.0-alpha13
fun normalize(): Unit

After adding point every thing must be normalized

setType

Added in 1.1.0-alpha13
fun setType(type: Int, customType: String!): Unit

toString

fun toString(): String!

Public properties

TAG

Added in 1.1.0-alpha13
java-static val TAGString!