Playing seems to hang a bit every now and then. Why?

SoundHelix uses a custom real-time MIDI player for playing songs. The created thread for MIDI playback is given high priority. Still, it is possible that your system sometimes is too busy for playing the notes with exactly the correct timing. If that happens, SoundHelix will notice this and will try to "catch up" to the correct timing again as soon as it can. So if a note was played with a delay, SoundHelix tries to reduce the delay of the next note by the same amount to correct that timing glitch. This is done by comparing the expected wall clock time for each played tick with the real wall clock time. Adjusting the delay between ticks is done with nanosecond resolution. This way, SoundHelix keeps the overall timing accurate.

If you want to increase the timing accuracy of the player, you should increase the scheduling priority of SoundHelix (and possibly of your MIDI synthesizer software as well) using OS tools (Windows Task Manager on Windows or renice on Linux, for example).

Add new comment

Error | SoundHelix

Error

Error message

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'o3587400'@'swh-live-web53.swh.1u1.it' for table 'drupal_accesslog': INSERT INTO {accesslog} (title, path, url, hostname, uid, sid, timer, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array ( [:db_insert_placeholder_0] => Playing seems to hang a bit every now and then. Why? [:db_insert_placeholder_1] => node/14 [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => 107.23.156.199 [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => QJdOXfl_DxTsBvwnwCs4O-QAAXfXRiLXNgqVm6LEnfs [:db_insert_placeholder_6] => 1151 [:db_insert_placeholder_7] => 1711717661 ) in statistics_exit() (line 91 of /mnt/web305/e3/68/52429368/htdocs/soundhelix.com/public_html/modules/statistics/statistics.module).
The website encountered an unexpected error. Please try again later.