#include <cstdio>#include "memory.h"#include "player-core.h"#include "ao-som-beatgraph.h"#include <qimage.h>#include "clock-drivers.h"
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 BEATS |
| #define SAMPLED_INIT |
| int cdist | ( | int | a, | |
| int | b, | |||
| int | colors | |||
| ) |
Referenced by ActiveSomBeatGraph::start().
| int gauss | ( | int | pos, | |
| int | zeroat | |||
| ) |
Referenced by ActiveSomBeatGraph::start().
| 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().
1.6.2