This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Terminal output converter into Discord's ANSI code block. | |
# Targeted at Windows terminal. Enable HTML text format when copying. | |
from bs4 import BeautifulSoup as BS | |
import cssutils as CSS | |
import win32clipboard as Clipboard | |
# Map the colors of your scheme to the standard 16 colors supported by the ANSI | |
# code block. | |
colorMap = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Colored audio waveform generator. | |
The audio is split into 3 bands and then their intensity is assigned to the color channels as follows: | |
– Under 200 Hz: red. | |
– From 200 Hz to 3000 Hz: green. | |
– Over 3000 Hz: blue. | |
The audio file's path is passed as a command-line argument. | |
Dependencies: | |
– dr_libs: https://github.com/mackron/dr_libs |
OlderNewer