Here we go.
So, as mentioned before, this is a very simple, as a tutorial, sequencer example using the TK clockbox program as base…
The variables, counters etc, are written in a “beginner friendly” way 
In file mclock.c, func MCLOCK_Tick(void) is called periodicaly, 24 times per step, and theres 4 step in a mesure.
(I’m not sure about the wording :-\ )
Here, we’re going to play 16 notes in a mesure (so each step is divided by 4)
In that function, we’re going to call our own function “STEPSEQ();”
// increment the meter counters
STEPSEQ();
We have to set 16 notes in a pattern, i set them this way :
//unsigned char pattern[16];//16 notes pattern
const char pattern[16]={//16 notes pattern (values are midi notes number)
{48},//note 1
{60},//note 2
{48},//
{60},//
{48},//
{60},//
{72},//
{60},//
{48},//
{50},//
{62},//
{50},//
{62},//
{70},//
{80},//
{95},//note 16
};
/*
Notes to midi table
-------------------
Octave|| Note Numbers (midi)
# ||
|| C | C# | D | D# | E | F | F# | G | G# | A | A# | B
-----------------------------------------------------------------------------
0 || 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11
1 || 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23
2 || 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35
3 || 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47
4 || 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59
5 || 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71
6 || 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83
7 || 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95
8 || 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107
9 || 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119
10 || 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 |*/
Before the MCLOCK_Tick(void) declaration, we have to set the STEPSEQ() func :
void STEPSEQ(void){
if( _tik == 24 )_tik=0;
// PATTERN PLAY //
if(_tik==0 || _tik==6 || _tik==12 || _tik==18){ // Times are divised by for this way (there 24 _tik in a time)
if(step==16){
step=0;//16 step reset
}
// NOTE OFF (previously played note)
MIOS_MIDI_TxBufferPut(144 + 0);//Note On, channel 0 (+1)
MIOS_MIDI_TxBufferPut(lastep);//last played note
MIOS_MIDI_TxBufferPut(0x00);//velocity 0 (=> equ Note off)
// PLAY NOTE
MIOS_MIDI_TxBufferPut(144 + 0);//Note On, channel 0 (+1)
MIOS_MIDI_TxBufferPut(pattern[step]);//play note
MIOS_MIDI_TxBufferPut(0x7f);//velocity 127
lastep=pattern[step];//mem last played note, to turn it off next time
step++;//16 step counter
}
_tik++;
return;
}
This should work.
Now you can add velocity,
more steps, multiple channels, CC’s etc, i hope it can help some peoples who dont know how to start 
get a ready made mclock.c file here : http://jambonbill.free.fr/DIY/miniseq/mclock.c
I’m not a C guru, please feel free to comment and correct anything.
Enjoy