This project is read-only.

Spectrum Display LCDSmartie Plugin 0.0.2.x – SPC.dll

 Installation Instructions

 

Dependencies are BASSWASAPI.dll and BASS.dll included in the zip file. These two files should be copied to the LCDSmartie folder (note: NOT the plugins folder). Thanks to the team at un4seen for these.

 

Installation of SPC involves copying the SPC.dll and SPC.cfg files to your LCDSmartie plugins folder then editing the LCDSmartie config.ini (or more easily running the setup) and adding lines such as (for a 2 line x16 display):

 

$dll(mp,1,2#2,16)

$dll(mp,1,1#2,16)

If you have multiple enabled output sound devices the program may not find the correct one and will just display a line of dashes. This can be resolved in one of two ways:

  • Disable any unused output devices from control Pane/Sound/Playback
  • Switch debug on (see below), run LCDSmartie with a call to SPC included, examine the log file and select the preferred loopback device entry. Then edit the SPC.cfg file and set AudioDevice to this entry number and debug=0. 

When the SPC.dll plugin runs it may ceate a log file in the plugins folder:

  • “SPC.log” – a log file if the debug flag is switched on (see below).

There is a configuration file in the Smartie plugins folder called SPC.cfg and it contains:

 

//
// Set debug to 1 to get trace information
//
Debug=0
//
// If the automatic loopback device detection doesn't work it can be overriden here
//
//AudioDevice=9
//
// Scaling to apply to the spectrum height if desired.
//
Scaling=1.5
//

 Usage Instructions

Function

What it does

Example

1

Returns the given line of spectrum display

 p1=l#n#s where l=line number (1 at bottom, max 4)

n=Total number of lines (max 4)

s=Smoothness level (1-10) [Optional]

p2=width (maximum 32) this will be rounded down to the nearest of 4,8,16,32

 

$dll(SPC,1,1#1,16)

 

$dll(SPC,1,1#1,4,8)

3

Returns the version number of the code

$dll(SPC,3,,)

References:

 http://www.un4seen.com/

 To Do:

  • Add a volume display function

Known Limitations:

  • The program uses 7 of the 8 available custom characters – no way round this but the user needs to be careful not to mix custom character on the same display. Custom character 8 is not used.
  • The program cannot detect the correct loopback device if multiple loopback devices are enabled. Workarounds for this are given above.
  • The cpu usage could be improved possibly by:
    • Might be able to remove the locking
    • Reducing the number of FFT values returned (currently 1024, could be 256)

 

 

Last edited Apr 6, 2012 at 11:13 PM by dperrow, version 1

Comments

No comments yet.