This repository has been archived by the owner on Dec 10, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This git repo was stuck on 0.9 and not 0.92, I've updated it after 6 …
…years of neglect and not even knowing it was different
- Loading branch information
Showing
18 changed files
with
201 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* ToneMatrix - draw.h | ||
* Copyright (c) 2011-2012 Tanner Babcock */ | ||
#ifndef DRAW_H | ||
#define DRAW_H | ||
|
||
#define OFFC RGBA(30,30,30,255) // off | ||
#define ONC RGBA(199,199,199,255) // on | ||
#define HOFF RGBA(50,50,50,255) // lit up and off | ||
#define HON RGBA(220,220,220,255) // lit up and on | ||
#define MOFF RGBA(40,0,0,255) // off, row muted | ||
#define MON RGBA(199,0,0,255) // on, row muted | ||
#define MHOFF RGBA(60,0,0,255) // lit up and off, row muted | ||
#define MHON RGBA(220,0,0,255) // lit up and on, row muted | ||
#define SOFF RGBA(0,7,40,255) // off, row soloed | ||
#define SON RGBA(0,8,199,255) // on, row soloed | ||
#define SHOFF RGBA(0,7,60,255) // lit up and off, row soloed | ||
#define SHON RGBA(0,8,220,255) // lit up and on, row soloed | ||
|
||
#define x1form ((x*30)-29) | ||
#define y1form ((15+(y*30))-29) | ||
#define x2form ((x*30)-1) | ||
#define y2form ((15+(y*30))-1) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* ToneMatrix - grid.c | ||
* Copyright (c) 2011-2012 Tanner Babcock */ | ||
#include <oslib/oslib.h> | ||
#include <stdlib.h> | ||
#include "main.h" | ||
|
||
void tmClear(tmGrid *g) { | ||
int y, z; | ||
for (y = 0; y < MAX_X; y++) { | ||
for (z = 0; z < MAX_Y; z++) | ||
g->grid[y][z] = OFF; | ||
} | ||
g->grid[0][0] = CURSOFF; | ||
return; | ||
} | ||
|
||
bool tmIsGridEmpty(tmGrid *g) { | ||
int x, y; | ||
for (x = 0; x < MAX_Y; x++) { | ||
for (y = 0; y < MAX_X; y++) { | ||
if (g->grid[x][y] != OFF && g->grid[x][y] != CURSOFF) | ||
return FALSE; | ||
} | ||
} | ||
return TRUE; | ||
} | ||
|
||
void tmSwitchGrid(int *a, int *b) { | ||
// call from tmMainloop with tmSwitchGrid(&x, &y) | ||
int x, y; | ||
for (x = 0; x < MAX_X; x++) { | ||
for (y = 0; y < MAX_Y; y++) { | ||
if (data[current].grid[x][y] == CURSON) | ||
data[current].grid[x][y] = ON; | ||
if (data[current].grid[x][y] == CURSOFF) | ||
data[current].grid[x][y] = OFF; | ||
} | ||
} | ||
return; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.