|
Peace Synthesizer Framework
0.02
Cross Platform Scriptable Real-Time Visualization & Sound !!
|
Auther: Peacedeveloper.
Classes | |
| class | GLThread |
| class | GLThread2 |
Functions | |
| def | attach |
| def | run |
| def | setCallback |
| def | start |
| def | init_peacevisual |
| def | enable |
| def | disable |
| def | setBlendfunction |
| def | beginDraw |
| def | endDraw |
| def | drawVertex2f |
| def | setColor3f |
| def | setColor4f |
| def | setLineWidth |
| def | normalizeSigmal |
| def | callbackx |
| def | drawsignal |
| def | viewsignal |
Variables | |
| peacelib | |
| def peacevisual.beginDraw | ( | mode = 1 | ) |
| mode | The OpenGL drawing mode default is GL_LINES. |
Begin Drawing
| def peacevisual.disable | ( | functional | ) |
Disable graphic capabilities
| def peacevisual.drawVertex2f | ( | x = 0, |
|
y = 0 |
|||
| ) |
draw vertex 2d
| def peacevisual.enable | ( | functional | ) |
Enable graphic capabilities
| def peacevisual.endDraw | ( | ) |
End Drawing
| def peacevisual.init_peacevisual | ( | width = 800, |
|
height = 600 |
|||
| ) |
Initialize graphic engine.
| def peacevisual.normalizeSigmal | ( | signal = [], |
|
maxvalue = 0.9, |
|||
factor = 0.1 |
|||
| ) |
normalize signal
| def peacevisual.setBlendfunction | ( | src, | |
| dest | |||
| ) |
set Blending function
| def peacevisual.setCallback | ( | func | ) |
| func | script's callback function |
Bind callback function from graphic engine to script function.
| def peacevisual.setColor3f | ( | r = 1, |
|
g = 1, |
|||
b = 1 |
|||
| ) |
| r | red |
| g | green |
| b | blueset color RGB |
| def peacevisual.setColor4f | ( | r, | |
| g, | |||
| b, | |||
| a | |||
| ) |
| r | red |
| g | green |
| b | blue |
| a | alphaset color RGBA |
| def peacevisual.setLineWidth | ( | width = 1 | ) |
| width | line widthset line width |
| def peacevisual.start | ( | ) |
Start graphic engine.
| def peacevisual.viewsignal | ( | signal = [], |
|
width = 800, |
|||
height = 600 |
|||
| ) |
View Signal, the signal should be normalized