Midi Visualizer

2018-02-04 Thread Eelke Johnson
#x27;m motivated to learn piglet, opengl and python but I seek for ressources, example and support Sorry for my bad english I'm not native. Eelke Johnson -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this gro

Re: Midi Visualizer

2018-02-18 Thread Eelke Johnson
Hi, I began to use openGL and pyglet. Now I'm trying to get a function who return a sector. I want to use GL_POLYGON draw method but I've got weird result... Can y

Re: Midi Visualizer

2018-02-26 Thread Eelke Johnson
Hi Benjamin, Merci beaucoup for the fast answer! Thank you for idea of the drawing list it will help me a lot! Before I got your message, I already started a new

Re: Midi Visualizer

2018-02-26 Thread Eelke Johnson
Hi Benjamin, Merci beaucoup for the fast answer! Thank you for idea of the drawing list it will help me a lot! Before I got your message, I already started a ne

Re: Midi Visualizer

2018-02-26 Thread Eelke Johnson
Hi Benjamin, Merci beaucoup for the fast answer! Thank you for idea of the drawing list it will help me a lot! Before I got your message, I already started a ne

Re: Midi Visualizer

2018-02-26 Thread Eelke Johnson
Hi benjamin here is the fusion of our codes: from pyglet.gl import * from math import * class sector(object): def __init__(self, radius, inner_radius, angle, angle_in, points): self.radius = radius self.inner_radius = inner_radius self.angle = angle self.angle_

Re: Midi Visualizer

2018-02-26 Thread Eelke Johnson
Hi Benjamin, I started a Githubrepo because google group's post are too small to contain the code here is my repo : https://github.com/way2key/Midi_Visualizer I merged partially your code with mine and new functions my answer is in the last post ++ Eelke -- You received this message because

Re: Midi Visualizer

2018-02-27 Thread Eelke Johnson
Yes of course. I'm stuck on the order of execution and eventually mix it with a midi library. I don't exactly understand how pyglet.app.run() work and when it call the on_draw() event.Furthermore, I already writed a small program who handle midi with pygame but I don't know how to implement it wi

Re: Midi Visualizer

2018-03-04 Thread Eelke Johnson
Hi community, I updated my small project. I reviewed how my code works and I implemented chord lines between notes. Now, I need your suggestions :) I want to impr

Re: Midi Visualizer

2018-04-21 Thread Eelke Johnson
Hi, It's been a while since I didn't posted anything but I'm back! I've got some problem with the python rt-midi package. I didn't find any useful and complete documentation. I built the sphinx documentation but except the installation, I didn't found something useful and I'm stuck! What I want

Re: Midi Visualizer

2018-04-29 Thread Eelke Johnson
Hi, 1) I want to pass the self into the callback because self mean the ring. There are all sector in this ring and when I want to toggle a sector, I have to update it with a method contained into the self object. self -> ring -> sectors -> method on//off 2) The keyboard key. The rt-midi port.s

Re: Midi Visualizer

2018-04-29 Thread Eelke Johnson
I solved the self problem. When I call the instance of the window it work ! (obviously) #window.ring.notes[key_map[m]].played() and for now IT'S WORKING :D merci for your help :D any suggestions or improvements? I uploaded the code on my github repo ;) https://github.com/way2key/Midi_Visu

Re: Midi Visualizer

2018-04-29 Thread Eelke Johnson
I solved the problem of the two call of the printer function with a toggle function but now when I play an octave I got the same problem... Have you any idea to separate the hit/release piano key event on the port.set_callback ? -- You received this message because you are subscribed to the Goo