Skip to content

Commit

Permalink
J and K change saved status
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik Nyby committed May 4, 2009
1 parent 013d6ec commit 86c5443
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10 deletions.
3 changes: 0 additions & 3 deletions TODO
Expand Up @@ -4,9 +4,6 @@ enhancements:

* make the sampling rate not affect the pitch of notes

* decide what should and should not be in stuff.h... and maybe rename it
to pineapple.h

* rainbow decibel meters on each track like AHX tracker

* JACK driver
Expand Down
18 changes: 18 additions & 0 deletions actions.c
Expand Up @@ -172,6 +172,7 @@ void act_trackinc(void){
song[songy].track[songx/4]++;
}
}
saved = 0;
}

void act_trackdec(void){
Expand All @@ -188,6 +189,7 @@ void act_trackdec(void){
song[songy].track[songx/4]--;
}
}
saved = 0;
}

void act_transpinc(void){
Expand All @@ -204,6 +206,7 @@ void act_transpinc(void){
song[songy].transp[songx/4]++;
}
}
saved = 0;
}

void act_transpdec(void){
Expand All @@ -220,6 +223,7 @@ void act_transpdec(void){
song[songy].transp[songx/4]--;
}
}
saved = 0;
}

void act_noteinc(void){
Expand All @@ -237,6 +241,7 @@ void act_noteinc(void){
instrument[currinstr].line[instry].param = 0;
}
}
saved = 0;
}

void act_notedec(void){
Expand All @@ -253,6 +258,7 @@ void act_notedec(void){
instrument[currinstr].line[instry].param = 96;
}
}
saved = 0;
}

void act_octaveinc(void){
Expand All @@ -270,6 +276,7 @@ void act_octaveinc(void){
}
}
}
saved = 0;
}

void act_octavedec(void){
Expand All @@ -288,6 +295,7 @@ void act_octavedec(void){
}
}
}
saved = 0;
}

void act_instrinc(void){
Expand All @@ -301,6 +309,7 @@ void act_instrinc(void){
hexinc(track[currtrack].line[tracky].instr & 0x0f) );
break;
}
saved = 0;
}

void act_instrdec(void){
Expand All @@ -314,6 +323,7 @@ void act_instrdec(void){
hexdec(track[currtrack].line[tracky].instr & 0x0f) );
break;
}
saved = 0;
}

void act_fxinc(void){
Expand Down Expand Up @@ -349,6 +359,7 @@ void act_fxinc(void){
}
}
}
saved = 0;
}

void act_fxdec(void){
Expand Down Expand Up @@ -383,6 +394,7 @@ void act_fxdec(void){
}
}
}
saved = 0;
}

void act_paraminc(void){
Expand All @@ -409,6 +421,7 @@ void act_paraminc(void){
return;
}
}
saved = 0;
}

void act_paramdec(void){
Expand All @@ -435,6 +448,7 @@ void act_paramdec(void){
return;
}
}
saved = 0;
}

void act_addline(void){
Expand All @@ -456,6 +470,7 @@ void act_addline(void){
memset(&song[songy], 0, sizeof(struct songline));
}
}
saved = 0;
}

void act_delline(void){
Expand All @@ -474,6 +489,7 @@ void act_delline(void){
if(songy >= songlen) songy = songlen - 1;
}
}
saved = 0;
}

void act_clronething(void){
Expand Down Expand Up @@ -547,6 +563,7 @@ void act_clronething(void){
}
}
}
saved = 0;
}

void act_clritall(void){
Expand All @@ -571,5 +588,6 @@ void act_clritall(void){
instrument[currinstr].line[instry].cmd = '0';
instrument[currinstr].line[instry].param = 0;
}
saved = 0;
}

13 changes: 6 additions & 7 deletions chip.c
Expand Up @@ -82,7 +82,7 @@ struct channel {
u16 slur;
} channel[4];

void silence(){
void silence(void){
u8 i;

for(i = 0; i < 4; i++){
Expand Down Expand Up @@ -126,10 +126,7 @@ void startplaysong(int p){
playsong = 1;
}

void playroutine(){ // called at 50 Hz
}

void initchip(){
void initchip(void){
trackwait = 0;
trackpos = 0;
playsong = 0;
Expand All @@ -145,6 +142,8 @@ void initchip(){
channel[3].inum = 0;
}

u8 interrupthandler() // called at 9000 Hz
{
void playroutine(void){ // called at 50 Hz
}

u8 interrupthandler(void){
}
1 change: 1 addition & 0 deletions gui.h
@@ -1,3 +1,4 @@
/* vi:set ts=4 sts=4 sw=4: */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down

0 comments on commit 86c5443

Please sign in to comment.