# Demo Songs

**URL:** <https://forum.csound.com/t/demo-songs/2544>\
**Category:** General\
**Created:** [September 12, 2026, 4:51pm UTC](https://forum.csound.com/t/demo-songs/2544 "2026-09-12T16:51:41Z")\
**Posts on this page:** 1\
**Showing post:** 31

<div class="post-metadata">

**Author:** ![Thomas](https://forum.csound.com/letter_avatar_proxy/v4/letter/t/e36b37/32.png) [@Thomas](https://forum.csound.com/u/Thomas)\
**Post date:** [October 18, 2026, 4:14pm UTC](https://forum.csound.com/t/demo-songs/2544/31 "2026-10-18T16:14:31Z")

</div>

Hi  
I found a bug in the STK plugin: it seems to assume a fixed sampling rate of 44.1kHz, independent of what is set in the CSD.  
Because of that, the pitches of my saxophone are off by 147 cents and sound wrong in my latest song “After Hours” ([Csound Web-IDE](https://ide.csound.com/editor/3UlA250pqrNeholJER81))

Astra says:  
In both STK adapter `init()` methods, call `stk::Stk::setSampleRate(csound->GetSr(csound))` **before constructing the instrument or calling `noteOn()`**. The WASM plugin currently retains 44.1 kHz internally, making saxophone playback at 48 kHz about 147 cents sharp. Rebuild and verify tuning at both sample rates, including successive runs with different rates.

Regards, Thomas

---

_[View the full topic](https://forum.csound.com/t/demo-songs/2544)._
