Timing is correct now! Forgot to update samples_per_tick when parsing the 0xf effect.
[pineappletracker.git] / pt.c
blob7c639b3efeac7d5e1afbb9b7fc516171ce1c82b7
1 //--------------------------------------------------\\
2 // pineapple tracker song format
3 //--------------------------------------------------//
5 #include "filetypes.h"
7 pineapple_tune *pt_empty_tune(void){
8 pineapple_tune *t;
10 t->type = "pt";
11 t->filename = "untitled";
12 t->callbacktime = 240;
13 t->tempo = 120;
14 t->comment = "";
15 t->trackpos = 0;
16 t->songpos = 0; //ht_PosNr
17 t->songlen = sizeof(t->sng) / sizeof(t->sng[0]);
19 t->instrx = 0,
20 t->instry = 0,
21 t->instroffs = 0;
23 t->songx = 0,
24 t->songy = 0,
25 t->songoffs = 0;
27 t->trackx = 0,
28 t->tracky = 0,
29 t->trackoffs = 0;
30 t->currtrack, t->currinstr, t->currtab = 0;
31 t->saved = 1;
33 return t;