Skip to content

racerxdl/spectrumpaint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SegDSP Spectrum Paint

Golang / SegDSP Spectrum Paint Generator

That's a very simple program that I did because I woke up too early. It uses SegDSP embedded Inverse FFT function to generate Spectrum Paints. It also uses the same drawing mechanism as my LED Matrix Panel (WiMatrix) uses to render fonts.

The software is pretty simple:

./painter --help
usage: painter --sampleRate=SAMPLERATE [<flags>] <text>

Flags:
  --help                     Show context-sensitive help (also try --help-long and --help-man).
  --sampleRate=SAMPLERATE    Sample Rate (in sps)
  --printSpeed=1             Print Speed in Chars / Second
  --gain=0                   Gain (in dB)
  --vertical                 Print each character vertically
  --filename="sample.cfile"  Name of the output file

Args:
  <text>  Text to paint

Examples

Vertical Print:

./painter --sampleRate=1000000 --printSpeed=2 --gain=10 --vertical "PU2NVX Lucas Teske"

Vertical Print

Horizontal Print

./painter --sampleRate=1000000 --printSpeed=2 --gain=10 "PU2NVX   "

Horizontal Print

Have fun!