Skip to content

⬅️ Back to Table of Contents

📄 Oscillators.js

📊 Analysis Summary

Metric Count
🔧 Functions 4
📦 Imports 1

📚 Table of Contents

🛠️ File Location:

📂 src/nodes/utils/Oscillators.js

📦 Imports

Name Source
time ./Timer.js

Functions

oscSine(t: any): any

Parameters:

  • t any

Returns: any

Calls:

  • t.add( 0.75 ).mul( Math.PI * 2 ).sin().mul( 0.5 ).add
Code
( t = time ) => t.add( 0.75 ).mul( Math.PI * 2 ).sin().mul( 0.5 ).add( 0.5 )

oscSquare(t: any): any

Parameters:

  • t any

Returns: any

Calls:

  • t.fract().round
Code
( t = time ) => t.fract().round()

oscTriangle(t: any): any

Parameters:

  • t any

Returns: any

Calls:

  • t.add( 0.5 ).fract().mul( 2 ).sub( 1 ).abs
Code
( t = time ) => t.add( 0.5 ).fract().mul( 2 ).sub( 1 ).abs()

oscSawtooth(t: any): any

Parameters:

  • t any

Returns: any

Calls:

  • t.fract
Code
( t = time ) => t.fract()