Page 3 of 3

Re: Settings query

Posted: Sat Nov 10, 2012 9:00 am
by peteknobloch
bdalton wrote:Because of the way I've programmed the Teensy switch scanning loop, if I hold a stop switch pressed the loop stops running untill I release the switch, (this is to stop the Miditzer/teensy loop oscillating between stop On and stop Off),and the Midi input from Miditzer does'nt get serviced.
If play some notes in this situation fluidsynth does not respond untill I release the stop switch, then all the notes I played are quickely produced (on and off) by fluidsynth.
From your post it sounded like you might want to understand why Miditzer stopped when you held a button down on the Teensy unit. Stopping the keystrokes using Midi-Ox solves the problem when more notes are played while holding down a button but I think that the same thing will happen if you change a lot of stops at the same time and the Midi buffering gets full between the Miditzer->Midi-Ox->Teensy USB path. If you were using the Teensy “Callback” method to process the CC received commands, then a simple fix might be to call the usbMIDI.read() function while you are looping and waiting for the button to be released. This way then the keyboard noteOn/Off messages would be purged and the CC commands would be processed as needed and you wouldn't need Midi-Ox.

Re: Settings query

Posted: Sat Nov 10, 2012 10:31 am
by bdalton
The ,"holding the switch pressed", was just an experiment to get some insight into what was going on.
Pressing a stop switch in the normal way, never causes a problem.

BTW. Ive added a little program flow chart to my previous post.
The Teensy source code is here:-
http://site.virtualorgan.com/community/ ... 140#p23284
Cheers
Barry

Re: Settings query

Posted: Sat Nov 10, 2012 11:34 pm
by peteknobloch
Hi Barry,
Its great that things are working. Its sometimes hard to understand all that is going on with just email communications and I missed some of your original concerns. I sometime put my nose into a conversation when it is best to just sit back and listen.

Pete

Re: Settings query

Posted: Sun Nov 11, 2012 4:05 am
by bdalton
Pete, noses are always welcome. They often lead to solutions one had'nt thought of.

Cheers
Barry