ao-som-beatgraph.cpp File Reference

#include <cstdio>
#include "memory.h"
#include "player-core.h"
#include "ao-som-beatgraph.h"
#include <qimage.h>
#include "clock-drivers.h"
Include dependency graph for ao-som-beatgraph.cpp:

Defines

#define BEATS
#define SAMPLED_INIT

Functions

bool min_dist (signed1 *A, signed1 *B, float8 &mindist, int size)
int cdist (int a, int b, int colors)
int gauss (int pos, int zeroat)
void merge (signed1 *target, signed1 *source, signed4 strength, unsigned4 dimensions)

Define Documentation

#define BEATS
#define SAMPLED_INIT

Function Documentation

int cdist ( int  a,
int  b,
int  colors 
)
int gauss ( int  pos,
int  zeroat 
)
void merge ( signed1 *  target,
signed1 *  source,
signed4  strength,
unsigned4  dimensions 
)

Strength is an integer from 0 to 255*255. When strength is maximal, we simply overwrite target, otherwise we don't

References assert().

bool min_dist ( signed1 *  A,
signed1 *  B,
float8 &  mindist,
int  size 
)

This function is used to find the best matching unit, so we skip the square root

References i.

Referenced by ActiveSomBeatGraph::start().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2