Hello here is my actual mode coding state :
import os
import pygame
import time
import random
import math
def setup(screen, etc):
global last_point, last_point1, xr, yr, zehn, y72, x180
xr = etc.xres
yr = etc.yres
last_point = [xr/4, 0]
last_point1 = [xr/4, 0]
zehn = (200xr)/1280
y72 = int((72yr)/720)
x180 = (360*xr)/1280
pass
def draw(screen, etc):
global last_point, last_point1, zehn, y72, x180, xr,yr
etc.color_picker_bg(etc.knob5)
linewidth = int(etc.knob1zehn)+1
lines = int(y72)
spacehoriz = (x180etc.knob2)+10
spacevert = spacehoriz
color = etc.color_picker(etc.knob4)
for j in range(0, lines) :
space = j*spacehoriz
pygame.draw.line(screen, color, (0,space), (xr,space), linewidth)
Here is a pics to give a global idea.
Can someone write me the lines for :
- Add on knob 3 a global rotation of all my lines
- Make that the audio/midi trig activate Knob 1 function (linewidth in this code)
- last question whats the line code to make the trig button stay active when we hold it ? For now when i create a " if " then " else" event , the trig button just fire the action once even if i hold the button he dont hold the action i want when my finger stay pressed