processing/p5.sound.js

Suppress Tone.js console logs on start: `%c * Tone.js v15.0.2 * background: #000; color: #fff`

Open

#54 opened on Apr 18, 2025

View on GitHub
 (13 comments) (0 reactions) (0 assignees)JavaScript (22 forks)auto 404
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (52 stars)
PR merge metrics
 (PR metrics pending)

Description

When using p5.sound, the following message is logged to the console on start:

%c * Tone.js v15.0.2 * background: #000; color: #fff

This comes from Tone.js and can be silenced by setting window.TONE_SILENCE_LOGGING = true (see https://github.com/Tonejs/Tone.js/issues/155).

I suggest silencing this log to avoid confusion, especially for new users to the library.

Contributor guide