Skip to content

Android 2.0.0

Choose a tag to compare

@macCesar macCesar released this 04 Nov 01:06

TiSynth 2.0.0 introduces a reusable sound API:

var synth = require('ti.synthengine')
var W = synth.getContract().waveTypes

var bell = synth.createSound({
  sound: { waveType: W.SINE, volume: 0.25, release: 120 },
  playback: { notes: ['A4'], duration: 400 }
})

// After engine startup:
bell.play()
bell.play({ notes: ['C5'] })
  • Separate synthesis settings (sound) from default notes and timing (playback).
  • Use play() for finite sounds, chords, repetitions and patterns. Use noteOn() for held notes.
  • Update definitions with atomic set() changes and retrieve them with getPreset().
  • Update or stop playback through returned controls, without managing native identifiers.
  • Configure shared effects through setProcessing(), with delay and reverb times in milliseconds.
  • Preserve existing playback calls and native rendering behavior.
  • Fix held-note identifier retention and invalidate playback controls after shutdown.

Runtime metadata now uses version; update checks that read apiVersion. Documentation, TypeScript declarations and the runnable example cover the new interface.

See the API reference, upgrade guide and validation results and limits.

Requires Titanium SDK 13.2.0.GA or later and Android compile API 35 or later. Download ti.synthengine-android-2.0.0.zip.