@waveform-playlist/browser 9.1.1 → 9.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1227,33 +1227,9 @@ declare class SoundFontCache {
1227
1227
  * @returns SoundFontSample or null if no sample found for this note
1228
1228
  */
1229
1229
  getAudioBuffer(midiNote: number, bankNumber?: number, presetNumber?: number): SoundFontSample | null;
1230
- /**
1231
- * Extract loop points and volume envelope data from per-zone generators.
1232
- *
1233
- * Loop points are stored as absolute indices into the SF2 sample pool.
1234
- * We convert to AudioBuffer-relative seconds by subtracting header.start
1235
- * and dividing by sampleRate.
1236
- *
1237
- * Volume envelope times are in SF2 timecents; sustain is centibels attenuation.
1238
- */
1239
- private extractLoopAndEnvelope;
1240
- /**
1241
- * Calculate playback rate for a MIDI note using the SF2 generator chain.
1242
- *
1243
- * SF2 root key resolution priority:
1244
- * 1. OverridingRootKey generator (per-zone, most specific)
1245
- * 2. sample.header.originalPitch (sample header)
1246
- * 3. MIDI note 60 (middle C fallback)
1247
- *
1248
- * Tuning adjustments:
1249
- * - CoarseTune generator (semitones, additive)
1250
- * - FineTune generator (cents, additive)
1251
- * - sample.header.pitchCorrection (cents, additive)
1252
- */
1253
- private calculatePlaybackRate;
1254
1230
  /**
1255
1231
  * Convert Int16Array sample data to an AudioBuffer.
1256
- * SF2 samples are 16-bit signed integers; Web Audio needs Float32 [-1, 1].
1232
+ * Uses the extracted int16ToFloat32 for the conversion, then copies into an AudioBuffer.
1257
1233
  */
1258
1234
  private int16ToAudioBuffer;
1259
1235
  /**