processing/p5.sound.js

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

Open

#54 建立於 2025年4月18日

在 GitHub 查看
 (13 留言) (0 反應) (0 負責人)JavaScript (22 fork)auto 404
enhancementgood first issuehelp wanted

倉庫指標

Star
 (52 star)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南