Timer problem with the midi keyboard

For general discussion related FlowStone
Post Reply
User avatar
Freddymusic
Posts: 30
Joined: Mon Apr 16, 2007 4:57 pm
Contact:

Timer problem with the midi keyboard

Post 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
freddymusic.hu
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Timer problem with the midi keyboard

Post 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. :(
Tzarls
Posts: 54
Joined: Thu Oct 21, 2010 2:10 am

Re: Timer problem with the midi keyboard

Post 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.
Tronic
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Timer problem with the midi keyboard

Post 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.
Attachments
De-Thread.PNG
De-Thread.PNG (13.04 KiB) Viewed 13388 times
Post Reply