Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: interrupt programming question
Posted by: saulot Jul,03.2009-13:47 

mikro: Well, I thought about generating another interrupt after certain number of TA ticks to perform other tasks (like increasing delta times, preparing data to send etc)...
Basically I need all of this to handle sending midi commands with correct tempo/intervals and with various PPQN (clock ticks per quarter note).
So basically speaking if I've got tempo 120(120 quater notes per minute) and 96 PPQN (which is some kind of resolution). Each quarter note has 60,000,000/120=500,000 ms and in this case my midi clock interval is 500,000ms/96PPQ=5208,4ms.
So after those 96 x 5208,4ms ticks I have duration of one quaternote and within these 96 tiny intervals I have to send proper midi commands to midi out ports.
My question was if there is posibility that other interrupt routine with higher priority than TA could be triggered after let's say those 96 TA ticks.












[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
interrupt programming question saulot Jul,03.2009-10:41
  Re: interrupt programming question mikro Jul,03.2009-11:56
    Re: interrupt programming question saulot Jul,03.2009-13:47
      Re: interrupt programming question saulot Jul,03.2009-14:24
        Re: interrupt programming question charles Jun,12.2010-17:30


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson