Page 1 of 1

Timer problem with the midi keyboard

Posted: Wed Jul 13, 2016 8:06 am
by Freddymusic
Hi,

I made a step sequencer and when it's works you can see the timeline. i controlled the timeline with the Timer and counter module. When i play with GUI keyboard and with the simple keyboard buttons, the timer is perfect, but if i need to use my midi keyboard, the timer isn't work. I controlled the timeline with the midi split module, and it's send the data anyway, but the Timer modul only with the simple keyboard or with the GUI keyboard. What is the problem?
http://gyuriczaferenc.hu/ugyfel/timer_problem.osm

Re: Timer problem with the midi keyboard

Posted: Wed Jul 13, 2016 10:00 pm
by martinvicanek
Really odd. :? Seems to be a problem with the timer prim.
I can confirm that the green indicator moves when pressing PC keys but not when pressing keys on an external MIDI keyboard. That holds for SynthMaker.
When I open the osm in FlowStone, the green indicator never moves, although the start and stop triggeres arrive allright at the timer input pins. :? :?:
So I replaced the timer by a Ruby ticker and voila, everything works fine.
Too bad if you are stuck with SM, Ruby is not an option. :(

Re: Timer problem with the midi keyboard

Posted: Fri Jul 15, 2016 12:10 am
by Tzarls
As far a I remember from my SM days you can't trigger a timer with a MIDI event generated with an external controller. It only works (as you've already discovered) when events are generated using the GUI or the PC keyboard. Something to do with how threads work in the software if I'm not mistaken.

Re: Timer problem with the midi keyboard

Posted: Sat Jul 16, 2016 2:24 pm
by Tronic
The midi thread not work for windows timer,
you need to de-thread the trig with an trigger block
and re-thread it with an tick primitive.