Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial commit

  • Loading branch information...
commit 4fc35f99af19882a695a67c4daf9c35c491d52af 0 parents
mads hobye authored
BIN  .DS_Store
Binary file not shown
259 synthOriginal/env0.h
@@ -0,0 +1,259 @@
+PROGMEM char Env0[]=
+{
+ 255, //0
+ 254, //1
+ 254, //2
+ 254, //3
+ 254, //4
+ 254, //5
+ 254, //6
+ 253, //7
+ 253, //8
+ 253, //9
+ 253, //10
+ 253, //11
+ 253, //12
+ 252, //13
+ 252, //14
+ 252, //15
+ 252, //16
+ 252, //17
+ 251, //18
+ 251, //19
+ 251, //20
+ 250, //21
+ 250, //22
+ 250, //23
+ 249, //24
+ 249, //25
+ 248, //26
+ 248, //27
+ 248, //28
+ 247, //29
+ 247, //30
+ 247, //31
+ 246, //32
+ 246, //33
+ 245, //34
+ 243, //35
+ 241, //36
+ 239, //37
+ 237, //38
+ 234, //39
+ 232, //40
+ 230, //41
+ 228, //42
+ 226, //43
+ 223, //44
+ 221, //45
+ 219, //46
+ 217, //47
+ 215, //48
+ 212, //49
+ 210, //50
+ 208, //51
+ 205, //52
+ 203, //53
+ 200, //54
+ 197, //55
+ 195, //56
+ 192, //57
+ 189, //58
+ 187, //59
+ 184, //60
+ 181, //61
+ 179, //62
+ 176, //63
+ 173, //64
+ 171, //65
+ 168, //66
+ 166, //67
+ 163, //68
+ 160, //69
+ 157, //70
+ 154, //71
+ 151, //72
+ 148, //73
+ 145, //74
+ 142, //75
+ 139, //76
+ 136, //77
+ 133, //78
+ 130, //79
+ 127, //80
+ 124, //81
+ 121, //82
+ 118, //83
+ 115, //84
+ 113, //85
+ 110, //86
+ 108, //87
+ 105, //88
+ 103, //89
+ 101, //90
+ 98, //91
+ 96, //92
+ 94, //93
+ 91, //94
+ 89, //95
+ 86, //96
+ 84, //97
+ 82, //98
+ 79, //99
+ 77, //100
+ 75, //101
+ 72, //102
+ 70, //103
+ 69, //104
+ 67, //105
+ 65, //106
+ 63, //107
+ 62, //108
+ 60, //109
+ 58, //110
+ 56, //111
+ 54, //112
+ 53, //113
+ 51, //114
+ 49, //115
+ 47, //116
+ 46, //117
+ 44, //118
+ 42, //119
+ 41, //120
+ 39, //121
+ 38, //122
+ 37, //123
+ 36, //124
+ 34, //125
+ 33, //126
+ 32, //127
+ 31, //128
+ 29, //129
+ 28, //130
+ 27, //131
+ 26, //132
+ 24, //133
+ 23, //134
+ 22, //135
+ 20, //136
+ 20, //137
+ 19, //138
+ 19, //139
+ 18, //140
+ 17, //141
+ 17, //142
+ 16, //143
+ 15, //144
+ 15, //145
+ 14, //146
+ 14, //147
+ 13, //148
+ 12, //149
+ 12, //150
+ 11, //151
+ 10, //152
+ 10, //153
+ 9, //154
+ 9, //155
+ 9, //156
+ 9, //157
+ 9, //158
+ 8, //159
+ 8, //160
+ 8, //161
+ 8, //162
+ 7, //163
+ 7, //164
+ 7, //165
+ 7, //166
+ 6, //167
+ 6, //168
+ 6, //169
+ 6, //170
+ 6, //171
+ 6, //172
+ 6, //173
+ 6, //174
+ 5, //175
+ 5, //176
+ 5, //177
+ 5, //178
+ 5, //179
+ 5, //180
+ 5, //181
+ 5, //182
+ 5, //183
+ 5, //184
+ 5, //185
+ 5, //186
+ 5, //187
+ 5, //188
+ 5, //189
+ 5, //190
+ 5, //191
+ 5, //192
+ 4, //193
+ 4, //194
+ 4, //195
+ 4, //196
+ 4, //197
+ 4, //198
+ 4, //199
+ 4, //200
+ 4, //201
+ 4, //202
+ 4, //203
+ 4, //204
+ 3, //205
+ 3, //206
+ 3, //207
+ 3, //208
+ 3, //209
+ 3, //210
+ 2, //211
+ 2, //212
+ 2, //213
+ 2, //214
+ 2, //215
+ 2, //216
+ 2, //217
+ 1, //218
+ 1, //219
+ 1, //220
+ 1, //221
+ 1, //222
+ 1, //223
+ 1, //224
+ 1, //225
+ 1, //226
+ 0, //227
+ 0, //228
+ 0, //229
+ 0, //230
+ 0, //231
+ 0, //232
+ 0, //233
+ 0, //234
+ 0, //235
+ 0, //236
+ 0, //237
+ 0, //238
+ 0, //239
+ 0, //240
+ 0, //241
+ 0, //242
+ 0, //243
+ 0, //244
+ 0, //245
+ 0, //246
+ 0, //247
+ 0, //248
+ 0, //249
+ 0, //250
+ 0, //251
+ 0, //252
+ 0, //253
+ 0, //254
+ 0, //255
+};
259 synthOriginal/env1.h
@@ -0,0 +1,259 @@
+PROGMEM char Env1[]=
+{
+ 255, //0
+ 248, //1
+ 242, //2
+ 235, //3
+ 229, //4
+ 223, //5
+ 216, //6
+ 210, //7
+ 204, //8
+ 197, //9
+ 191, //10
+ 185, //11
+ 178, //12
+ 172, //13
+ 165, //14
+ 159, //15
+ 153, //16
+ 146, //17
+ 142, //18
+ 138, //19
+ 134, //20
+ 129, //21
+ 125, //22
+ 121, //23
+ 117, //24
+ 112, //25
+ 108, //26
+ 104, //27
+ 100, //28
+ 95, //29
+ 91, //30
+ 87, //31
+ 83, //32
+ 79, //33
+ 74, //34
+ 73, //35
+ 71, //36
+ 70, //37
+ 68, //38
+ 67, //39
+ 65, //40
+ 64, //41
+ 62, //42
+ 61, //43
+ 59, //44
+ 58, //45
+ 56, //46
+ 55, //47
+ 53, //48
+ 52, //49
+ 50, //50
+ 49, //51
+ 48, //52
+ 47, //53
+ 46, //54
+ 45, //55
+ 44, //56
+ 43, //57
+ 42, //58
+ 41, //59
+ 40, //60
+ 39, //61
+ 38, //62
+ 37, //63
+ 36, //64
+ 35, //65
+ 34, //66
+ 33, //67
+ 32, //68
+ 31, //69
+ 31, //70
+ 30, //71
+ 30, //72
+ 30, //73
+ 29, //74
+ 29, //75
+ 28, //76
+ 28, //77
+ 28, //78
+ 27, //79
+ 27, //80
+ 26, //81
+ 26, //82
+ 26, //83
+ 25, //84
+ 25, //85
+ 25, //86
+ 24, //87
+ 24, //88
+ 24, //89
+ 24, //90
+ 23, //91
+ 23, //92
+ 23, //93
+ 23, //94
+ 23, //95
+ 22, //96
+ 22, //97
+ 22, //98
+ 22, //99
+ 21, //100
+ 21, //101
+ 21, //102
+ 21, //103
+ 20, //104
+ 20, //105
+ 20, //106
+ 20, //107
+ 19, //108
+ 19, //109
+ 19, //110
+ 19, //111
+ 19, //112
+ 18, //113
+ 18, //114
+ 18, //115
+ 18, //116
+ 17, //117
+ 17, //118
+ 17, //119
+ 17, //120
+ 16, //121
+ 16, //122
+ 16, //123
+ 16, //124
+ 15, //125
+ 15, //126
+ 15, //127
+ 15, //128
+ 15, //129
+ 14, //130
+ 14, //131
+ 14, //132
+ 14, //133
+ 13, //134
+ 13, //135
+ 13, //136
+ 13, //137
+ 12, //138
+ 12, //139
+ 12, //140
+ 12, //141
+ 11, //142
+ 11, //143
+ 11, //144
+ 11, //145
+ 10, //146
+ 10, //147
+ 10, //148
+ 10, //149
+ 10, //150
+ 9, //151
+ 9, //152
+ 9, //153
+ 9, //154
+ 8, //155
+ 8, //156
+ 8, //157
+ 8, //158
+ 8, //159
+ 8, //160
+ 7, //161
+ 7, //162
+ 7, //163
+ 7, //164
+ 7, //165
+ 6, //166
+ 6, //167
+ 6, //168
+ 6, //169
+ 6, //170
+ 6, //171
+ 6, //172
+ 6, //173
+ 6, //174
+ 5, //175
+ 5, //176
+ 5, //177
+ 5, //178
+ 5, //179
+ 5, //180
+ 5, //181
+ 5, //182
+ 5, //183
+ 5, //184
+ 5, //185
+ 5, //186
+ 5, //187
+ 5, //188
+ 5, //189
+ 5, //190
+ 5, //191
+ 5, //192
+ 4, //193
+ 4, //194
+ 4, //195
+ 4, //196
+ 4, //197
+ 4, //198
+ 4, //199
+ 4, //200
+ 4, //201
+ 4, //202
+ 4, //203
+ 4, //204
+ 3, //205
+ 3, //206
+ 3, //207
+ 3, //208
+ 3, //209
+ 3, //210
+ 2, //211
+ 2, //212
+ 2, //213
+ 2, //214
+ 2, //215
+ 2, //216
+ 2, //217
+ 1, //218
+ 1, //219
+ 1, //220
+ 1, //221
+ 1, //222
+ 1, //223
+ 1, //224
+ 1, //225
+ 1, //226
+ 0, //227
+ 0, //228
+ 0, //229
+ 0, //230
+ 0, //231
+ 0, //232
+ 0, //233
+ 0, //234
+ 0, //235
+ 0, //236
+ 0, //237
+ 0, //238
+ 0, //239
+ 0, //240
+ 0, //241
+ 0, //242
+ 0, //243
+ 0, //244
+ 0, //245
+ 0, //246
+ 0, //247
+ 0, //248
+ 0, //249
+ 0, //250
+ 0, //251
+ 0, //252
+ 0, //253
+ 0, //254
+ 0, //255
+};
259 synthOriginal/env2.h
@@ -0,0 +1,259 @@
+PROGMEM char Env2[]=
+{
+ 255, //0
+ 254, //1
+ 254, //2
+ 254, //3
+ 254, //4
+ 254, //5
+ 254, //6
+ 253, //7
+ 253, //8
+ 253, //9
+ 253, //10
+ 253, //11
+ 253, //12
+ 252, //13
+ 252, //14
+ 252, //15
+ 252, //16
+ 252, //17
+ 252, //18
+ 252, //19
+ 251, //20
+ 251, //21
+ 251, //22
+ 251, //23
+ 251, //24
+ 251, //25
+ 250, //26
+ 250, //27
+ 250, //28
+ 250, //29
+ 250, //30
+ 250, //31
+ 249, //32
+ 249, //33
+ 249, //34
+ 248, //35
+ 247, //36
+ 246, //37
+ 244, //38
+ 243, //39
+ 242, //40
+ 241, //41
+ 240, //42
+ 239, //43
+ 237, //44
+ 236, //45
+ 235, //46
+ 234, //47
+ 233, //48
+ 231, //49
+ 230, //50
+ 229, //51
+ 219, //52
+ 210, //53
+ 200, //54
+ 190, //55
+ 180, //56
+ 170, //57
+ 160, //58
+ 151, //59
+ 141, //60
+ 131, //61
+ 121, //62
+ 111, //63
+ 102, //64
+ 92, //65
+ 82, //66
+ 72, //67
+ 62, //68
+ 60, //69
+ 58, //70
+ 56, //71
+ 53, //72
+ 51, //73
+ 49, //74
+ 47, //75
+ 45, //76
+ 42, //77
+ 40, //78
+ 38, //79
+ 36, //80
+ 34, //81
+ 31, //82
+ 29, //83
+ 27, //84
+ 25, //85
+ 25, //86
+ 24, //87
+ 24, //88
+ 24, //89
+ 24, //90
+ 23, //91
+ 23, //92
+ 23, //93
+ 23, //94
+ 23, //95
+ 22, //96
+ 22, //97
+ 22, //98
+ 22, //99
+ 21, //100
+ 21, //101
+ 21, //102
+ 21, //103
+ 20, //104
+ 20, //105
+ 20, //106
+ 20, //107
+ 19, //108
+ 19, //109
+ 19, //110
+ 19, //111
+ 19, //112
+ 18, //113
+ 18, //114
+ 18, //115
+ 18, //116
+ 17, //117
+ 17, //118
+ 17, //119
+ 17, //120
+ 16, //121
+ 16, //122
+ 16, //123
+ 16, //124
+ 15, //125
+ 15, //126
+ 15, //127
+ 15, //128
+ 15, //129
+ 14, //130
+ 14, //131
+ 14, //132
+ 14, //133
+ 13, //134
+ 13, //135
+ 13, //136
+ 13, //137
+ 12, //138
+ 12, //139
+ 12, //140
+ 12, //141
+ 11, //142
+ 11, //143
+ 11, //144
+ 11, //145
+ 10, //146
+ 10, //147
+ 10, //148
+ 10, //149
+ 10, //150
+ 9, //151
+ 9, //152
+ 9, //153
+ 9, //154
+ 8, //155
+ 8, //156
+ 8, //157
+ 8, //158
+ 8, //159
+ 8, //160
+ 7, //161
+ 7, //162
+ 7, //163
+ 7, //164
+ 7, //165
+ 6, //166
+ 6, //167
+ 6, //168
+ 6, //169
+ 6, //170
+ 6, //171
+ 6, //172
+ 6, //173
+ 6, //174
+ 5, //175
+ 5, //176
+ 5, //177
+ 5, //178
+ 5, //179
+ 5, //180
+ 5, //181
+ 5, //182
+ 5, //183
+ 5, //184
+ 5, //185
+ 5, //186
+ 5, //187
+ 5, //188
+ 5, //189
+ 5, //190
+ 5, //191
+ 5, //192
+ 4, //193
+ 4, //194
+ 4, //195
+ 4, //196
+ 4, //197
+ 4, //198
+ 4, //199
+ 4, //200
+ 4, //201
+ 4, //202
+ 4, //203
+ 4, //204
+ 3, //205
+ 3, //206
+ 3, //207
+ 3, //208
+ 3, //209
+ 3, //210
+ 2, //211
+ 2, //212
+ 2, //213
+ 2, //214
+ 2, //215
+ 2, //216
+ 2, //217
+ 1, //218
+ 1, //219
+ 1, //220
+ 1, //221
+ 1, //222
+ 1, //223
+ 1, //224
+ 1, //225
+ 1, //226
+ 0, //227
+ 0, //228
+ 0, //229
+ 0, //230
+ 0, //231
+ 0, //232
+ 0, //233
+ 0, //234
+ 0, //235
+ 0, //236
+ 0, //237
+ 0, //238
+ 0, //239
+ 0, //240
+ 0, //241
+ 0, //242
+ 0, //243
+ 0, //244
+ 0, //245
+ 0, //246
+ 0, //247
+ 0, //248
+ 0, //249
+ 0, //250
+ 0, //251
+ 0, //252
+ 0, //253
+ 0, //254
+ 0, //255
+};
259 synthOriginal/env3.h
@@ -0,0 +1,259 @@
+PROGMEM char Env3[]=
+{
+ 255, //0
+ 252, //1
+ 250, //2
+ 248, //3
+ 246, //4
+ 244, //5
+ 242, //6
+ 240, //7
+ 238, //8
+ 235, //9
+ 233, //10
+ 231, //11
+ 229, //12
+ 227, //13
+ 225, //14
+ 223, //15
+ 221, //16
+ 218, //17
+ 217, //18
+ 215, //19
+ 213, //20
+ 211, //21
+ 209, //22
+ 208, //23
+ 206, //24
+ 204, //25
+ 202, //26
+ 200, //27
+ 199, //28
+ 197, //29
+ 195, //30
+ 193, //31
+ 191, //32
+ 190, //33
+ 188, //34
+ 186, //35
+ 183, //36
+ 181, //37
+ 179, //38
+ 177, //39
+ 175, //40
+ 172, //41
+ 170, //42
+ 168, //43
+ 166, //44
+ 164, //45
+ 161, //46
+ 159, //47
+ 157, //48
+ 155, //49
+ 153, //50
+ 150, //51
+ 148, //52
+ 146, //53
+ 144, //54
+ 141, //55
+ 139, //56
+ 137, //57
+ 134, //58
+ 132, //59
+ 130, //60
+ 128, //61
+ 125, //62
+ 123, //63
+ 121, //64
+ 118, //65
+ 116, //66
+ 114, //67
+ 112, //68
+ 110, //69
+ 109, //70
+ 107, //71
+ 105, //72
+ 104, //73
+ 102, //74
+ 101, //75
+ 99, //76
+ 98, //77
+ 96, //78
+ 94, //79
+ 93, //80
+ 91, //81
+ 90, //82
+ 88, //83
+ 87, //84
+ 85, //85
+ 83, //86
+ 82, //87
+ 80, //88
+ 79, //89
+ 77, //90
+ 76, //91
+ 74, //92
+ 72, //93
+ 71, //94
+ 69, //95
+ 68, //96
+ 66, //97
+ 65, //98
+ 63, //99
+ 61, //100
+ 60, //101
+ 58, //102
+ 57, //103
+ 56, //104
+ 55, //105
+ 54, //106
+ 52, //107
+ 51, //108
+ 50, //109
+ 49, //110
+ 48, //111
+ 46, //112
+ 45, //113
+ 44, //114
+ 43, //115
+ 42, //116
+ 41, //117
+ 39, //118
+ 38, //119
+ 37, //120
+ 35, //121
+ 34, //122
+ 32, //123
+ 31, //124
+ 29, //125
+ 28, //126
+ 26, //127
+ 25, //128
+ 23, //129
+ 22, //130
+ 20, //131
+ 19, //132
+ 17, //133
+ 16, //134
+ 14, //135
+ 13, //136
+ 13, //137
+ 12, //138
+ 12, //139
+ 12, //140
+ 12, //141
+ 11, //142
+ 11, //143
+ 11, //144
+ 11, //145
+ 10, //146
+ 10, //147
+ 10, //148
+ 10, //149
+ 10, //150
+ 9, //151
+ 9, //152
+ 9, //153
+ 9, //154
+ 8, //155
+ 8, //156
+ 8, //157
+ 8, //158
+ 8, //159
+ 8, //160
+ 7, //161
+ 7, //162
+ 7, //163
+ 7, //164
+ 7, //165
+ 6, //166
+ 6, //167
+ 6, //168
+ 6, //169
+ 6, //170
+ 6, //171
+ 6, //172
+ 6, //173
+ 6, //174
+ 5, //175
+ 5, //176
+ 5, //177
+ 5, //178
+ 5, //179
+ 5, //180
+ 5, //181
+ 5, //182
+ 5, //183
+ 5, //184
+ 5, //185
+ 5, //186
+ 5, //187
+ 5, //188
+ 5, //189
+ 5, //190
+ 5, //191
+ 5, //192
+ 4, //193
+ 4, //194
+ 4, //195
+ 4, //196
+ 4, //197
+ 4, //198
+ 4, //199
+ 4, //200
+ 4, //201
+ 4, //202
+ 4, //203
+ 4, //204
+ 3, //205
+ 3, //206
+ 3, //207
+ 3, //208
+ 3, //209
+ 3, //210
+ 2, //211
+ 2, //212
+ 2, //213
+ 2, //214
+ 2, //215
+ 2, //216
+ 2, //217
+ 1, //218
+ 1, //219
+ 1, //220
+ 1, //221
+ 1, //222
+ 1, //223
+ 1, //224
+ 1, //225
+ 1, //226
+ 0, //227
+ 0, //228
+ 0, //229
+ 0, //230
+ 0, //231
+ 0, //232
+ 0, //233
+ 0, //234
+ 0, //235
+ 0, //236
+ 0, //237
+ 0, //238
+ 0, //239
+ 0, //240
+ 0, //241
+ 0, //242
+ 0, //243
+ 0, //244
+ 0, //245
+ 0, //246
+ 0, //247
+ 0, //248
+ 0, //249
+ 0, //250
+ 0, //251
+ 0, //252
+ 0, //253
+ 0, //254
+ 0, //255
+};
259 synthOriginal/noise256.h
@@ -0,0 +1,259 @@
+PROGMEM char NoiseTable[]=
+{
+ -62, //0
+ -72, //1
+ -92, //2
+ -98, //3
+ 98, //4
+ -103, //5
+ 96, //6
+ -89, //7
+ -29, //8
+ -55, //9
+ 98, //10
+ -8, //11
+ -118, //12
+ 13, //13
+ 11, //14
+ -1, //15
+ 76, //16
+ -8, //17
+ -116, //18
+ 51, //19
+ 33, //20
+ -85, //21
+ -43, //22
+ -16, //23
+ -114, //24
+ -47, //25
+ -63, //26
+ -113, //27
+ 109, //28
+ -39, //29
+ -127, //30
+ -59, //31
+ 0, //32
+ 118, //33
+ 70, //34
+ 62, //35
+ 54, //36
+ 85, //37
+ 51, //38
+ 122, //39
+ 60, //40
+ 30, //41
+ -126, //42
+ -25, //43
+ 71, //44
+ -82, //45
+ -11, //46
+ 64, //47
+ -95, //48
+ -110, //49
+ 127, //50
+ 37, //51
+ -14, //52
+ -57, //53
+ 51, //54
+ -4, //55
+ -47, //56
+ -80, //57
+ 110, //58
+ 7, //59
+ -117, //60
+ 89, //61
+ 65, //62
+ -58, //63
+ 50, //64
+ -21, //65
+ 33, //66
+ -113, //67
+ -22, //68
+ 111, //69
+ -46, //70
+ 108, //71
+ 112, //72
+ -57, //73
+ -111, //74
+ 53, //75
+ -21, //76
+ -22, //77
+ -127, //78
+ -18, //79
+ -9, //80
+ 95, //81
+ 88, //82
+ 99, //83
+ -17, //84
+ -3, //85
+ 74, //86
+ 2, //87
+ 123, //88
+ -31, //89
+ 53, //90
+ -7, //91
+ 91, //92
+ -80, //93
+ 15, //94
+ -112, //95
+ 114, //96
+ 14, //97
+ -115, //98
+ -55, //99
+ 22, //100
+ 95, //101
+ 21, //102
+ 53, //103
+ -105, //104
+ -67, //105
+ -25, //106
+ 25, //107
+ 13, //108
+ 58, //109
+ -121, //110
+ -62, //111
+ 103, //112
+ 87, //113
+ 109, //114
+ 38, //115
+ -79, //116
+ -60, //117
+ -16, //118
+ -68, //119
+ -91, //120
+ 90, //121
+ 112, //122
+ -99, //123
+ 118, //124
+ 87, //125
+ -61, //126
+ -36, //127
+ -40, //128
+ -39, //129
+ -30, //130
+ 34, //131
+ 83, //132
+ -100, //133
+ -43, //134
+ -114, //135
+ -54, //136
+ -8, //137
+ -36, //138
+ -52, //139
+ 71, //140
+ 22, //141
+ -33, //142
+ 116, //143
+ 9, //144
+ 114, //145
+ 24, //146
+ -91, //147
+ -48, //148
+ -106, //149
+ -2, //150
+ -31, //151
+ 103, //152
+ 21, //153
+ 117, //154
+ 44, //155
+ 115, //156
+ -59, //157
+ 53, //158
+ 97, //159
+ 124, //160
+ 66, //161
+ 120, //162
+ -44, //163
+ 57, //164
+ -96, //165
+ -24, //166
+ 46, //167
+ 32, //168
+ 111, //169
+ -56, //170
+ -123, //171
+ 46, //172
+ -11, //173
+ 97, //174
+ -70, //175
+ -12, //176
+ -89, //177
+ -81, //178
+ 24, //179
+ -29, //180
+ -23, //181
+ 77, //182
+ 42, //183
+ -40, //184
+ 8, //185
+ -98, //186
+ -35, //187
+ -21, //188
+ 116, //189
+ 61, //190
+ -41, //191
+ 116, //192
+ 66, //193
+ -88, //194
+ 22, //195
+ 95, //196
+ -31, //197
+ 40, //198
+ -51, //199
+ -78, //200
+ 28, //201
+ 3, //202
+ 124, //203
+ 92, //204
+ 81, //205
+ -27, //206
+ 78, //207
+ 65, //208
+ -16, //209
+ -116, //210
+ -73, //211
+ -126, //212
+ 55, //213
+ -76, //214
+ 78, //215
+ 17, //216
+ 43, //217
+ 66, //218
+ -24, //219
+ 117, //220
+ -38, //221
+ -76, //222
+ -10, //223
+ -37, //224
+ -47, //225
+ -56, //226
+ 33, //227
+ 94, //228
+ -40, //229
+ 107, //230
+ 36, //231
+ -104, //232
+ -11, //233
+ -27, //234
+ -23, //235
+ 105, //236
+ -96, //237
+ 68, //238
+ -25, //239
+ 7, //240
+ 67, //241
+ 6, //242
+ -69, //243
+ 70, //244
+ -10, //245
+ 10, //246
+ 5, //247
+ 42, //248
+ 120, //249
+ -71, //250
+ -122, //251
+ -86, //252
+ 113, //253
+ 112, //254
+ 119, //255
+};
259 synthOriginal/ramp256.h
@@ -0,0 +1,259 @@
+PROGMEM char RampTable[]=
+{
+ -127, //0
+ -126, //1
+ -125, //2
+ -124, //3
+ -123, //4
+ -122, //5
+ -121, //6
+ -120, //7
+ -119, //8
+ -118, //9
+ -117, //10
+ -116, //11
+ -115, //12
+ -114, //13
+ -113, //14
+ -112, //15
+ -111, //16
+ -110, //17
+ -109, //18
+ -108, //19
+ -107, //20
+ -106, //21
+ -105, //22
+ -104, //23
+ -103, //24
+ -102, //25
+ -101, //26
+ -100, //27
+ -99, //28
+ -98, //29
+ -97, //30
+ -96, //31
+ -95, //32
+ -94, //33
+ -93, //34
+ -92, //35
+ -91, //36
+ -90, //37
+ -89, //38
+ -88, //39
+ -87, //40
+ -86, //41
+ -85, //42
+ -84, //43
+ -83, //44
+ -82, //45
+ -81, //46
+ -80, //47
+ -79, //48
+ -78, //49
+ -77, //50
+ -76, //51
+ -75, //52
+ -74, //53
+ -73, //54
+ -72, //55
+ -71, //56
+ -70, //57
+ -69, //58
+ -68, //59
+ -67, //60
+ -66, //61
+ -65, //62
+ -64, //63
+ -63, //64
+ -62, //65
+ -61, //66
+ -60, //67
+ -59, //68
+ -58, //69
+ -57, //70
+ -56, //71
+ -55, //72
+ -54, //73
+ -53, //74
+ -52, //75
+ -51, //76
+ -50, //77
+ -49, //78
+ -48, //79
+ -47, //80
+ -46, //81
+ -45, //82
+ -44, //83
+ -43, //84
+ -42, //85
+ -41, //86
+ -40, //87
+ -39, //88
+ -38, //89
+ -37, //90
+ -36, //91
+ -35, //92
+ -34, //93
+ -33, //94
+ -32, //95
+ -31, //96
+ -30, //97
+ -29, //98
+ -28, //99
+ -27, //100
+ -26, //101
+ -25, //102
+ -24, //103
+ -23, //104
+ -22, //105
+ -21, //106
+ -20, //107
+ -19, //108
+ -18, //109
+ -17, //110
+ -16, //111
+ -15, //112
+ -14, //113
+ -13, //114
+ -12, //115
+ -11, //116
+ -10, //117
+ -9, //118
+ -8, //119
+ -7, //120
+ -6, //121
+ -5, //122
+ -4, //123
+ -3, //124
+ -2, //125
+ -1, //126
+ 0, //127
+ 0, //128
+ 1, //129
+ 2, //130
+ 3, //131
+ 4, //132
+ 5, //133
+ 6, //134
+ 7, //135
+ 8, //136
+ 9, //137
+ 10, //138
+ 11, //139
+ 12, //140
+ 13, //141
+ 14, //142
+ 15, //143
+ 16, //144
+ 17, //145
+ 18, //146
+ 19, //147
+ 20, //148
+ 21, //149
+ 22, //150
+ 23, //151
+ 24, //152
+ 25, //153
+ 26, //154
+ 27, //155
+ 28, //156
+ 29, //157
+ 30, //158
+ 31, //159
+ 32, //160
+ 33, //161
+ 34, //162
+ 35, //163
+ 36, //164
+ 37, //165
+ 38, //166
+ 39, //167
+ 40, //168
+ 41, //169
+ 42, //170
+ 43, //171
+ 44, //172
+ 45, //173
+ 46, //174
+ 47, //175
+ 48, //176
+ 49, //177
+ 50, //178
+ 51, //179
+ 52, //180
+ 53, //181
+ 54, //182
+ 55, //183
+ 56, //184
+ 57, //185
+ 58, //186
+ 59, //187
+ 60, //188
+ 61, //189
+ 62, //190
+ 63, //191
+ 64, //192
+ 65, //193
+ 66, //194
+ 67, //195
+ 68, //196
+ 69, //197
+ 70, //198
+ 71, //199
+ 72, //200
+ 73, //201
+ 74, //202
+ 75, //203
+ 76, //204
+ 77, //205
+ 78, //206
+ 79, //207
+ 80, //208
+ 81, //209
+ 82, //210
+ 83, //211
+ 84, //212
+ 85, //213
+ 86, //214
+ 87, //215
+ 88, //216
+ 89, //217
+ 90, //218
+ 91, //219
+ 92, //220
+ 93, //221
+ 94, //222
+ 95, //223
+ 96, //224
+ 97, //225
+ 98, //226
+ 99, //227
+ 100, //228
+ 101, //229
+ 102, //230
+ 103, //231
+ 104, //232
+ 105, //233
+ 106, //234
+ 107, //235
+ 108, //236
+ 109, //237
+ 110, //238
+ 111, //239
+ 112, //240
+ 113, //241
+ 114, //242
+ 115, //243
+ 116, //244
+ 117, //245
+ 118, //246
+ 119, //247
+ 120, //248
+ 121, //249
+ 122, //250
+ 123, //251
+ 124, //252
+ 125, //253
+ 126, //254
+ 127, //255
+};
259 synthOriginal/saw256.h
@@ -0,0 +1,259 @@
+PROGMEM char SawTable[]=
+{
+ 128, //0
+ 127, //1
+ 126, //2
+ 125, //3
+ 124, //4
+ 123, //5
+ 122, //6
+ 121, //7
+ 120, //8
+ 119, //9
+ 118, //10
+ 117, //11
+ 116, //12
+ 115, //13
+ 114, //14
+ 113, //15
+ 112, //16
+ 111, //17
+ 110, //18
+ 109, //19
+ 108, //20
+ 107, //21
+ 106, //22
+ 105, //23
+ 104, //24
+ 103, //25
+ 102, //26
+ 101, //27
+ 100, //28
+ 99, //29
+ 98, //30
+ 97, //31
+ 96, //32
+ 95, //33
+ 94, //34
+ 93, //35
+ 92, //36
+ 91, //37
+ 90, //38
+ 89, //39
+ 88, //40
+ 87, //41
+ 86, //42
+ 85, //43
+ 84, //44
+ 83, //45
+ 82, //46
+ 81, //47
+ 80, //48
+ 79, //49
+ 78, //50
+ 77, //51
+ 76, //52
+ 75, //53
+ 74, //54
+ 73, //55
+ 72, //56
+ 71, //57
+ 70, //58
+ 69, //59
+ 68, //60
+ 67, //61
+ 66, //62
+ 65, //63
+ 64, //64
+ 63, //65
+ 62, //66
+ 61, //67
+ 60, //68
+ 59, //69
+ 58, //70
+ 57, //71
+ 56, //72
+ 55, //73
+ 54, //74
+ 53, //75
+ 52, //76
+ 51, //77
+ 50, //78
+ 49, //79
+ 48, //80
+ 47, //81
+ 46, //82
+ 45, //83
+ 44, //84
+ 43, //85
+ 42, //86
+ 41, //87
+ 40, //88
+ 39, //89
+ 38, //90
+ 37, //91
+ 36, //92
+ 35, //93
+ 34, //94
+ 33, //95
+ 32, //96
+ 31, //97
+ 30, //98
+ 29, //99
+ 28, //100
+ 27, //101
+ 26, //102
+ 25, //103
+ 24, //104
+ 23, //105
+ 22, //106
+ 21, //107
+ 20, //108
+ 19, //109
+ 18, //110
+ 17, //111
+ 16, //112
+ 15, //113
+ 14, //114
+ 13, //115
+ 12, //116
+ 11, //117
+ 10, //118
+ 9, //119
+ 8, //120
+ 7, //121
+ 6, //122
+ 5, //123
+ 4, //124
+ 3, //125
+ 2, //126
+ 1, //127
+ 0, //128
+ 0, //129
+ -1, //130
+ -2, //131
+ -3, //132
+ -4, //133
+ -5, //134
+ -6, //135
+ -7, //136
+ -8, //137
+ -9, //138
+ -10, //139
+ -11, //140
+ -12, //141
+ -13, //142
+ -14, //143
+ -15, //144
+ -16, //145
+ -17, //146
+ -18, //147
+ -19, //148
+ -20, //149
+ -21, //150
+ -22, //151
+ -23, //152
+ -24, //153
+ -25, //154
+ -26, //155
+ -27, //156
+ -28, //157
+ -29, //158
+ -30, //159
+ -31, //160
+ -32, //161
+ -33, //162
+ -34, //163
+ -35, //164
+ -36, //165
+ -37, //166
+ -38, //167
+ -39, //168
+ -40, //169
+ -41, //170
+ -42, //171
+ -43, //172
+ -44, //173
+ -45, //174
+ -46, //175
+ -47, //176
+ -48, //177
+ -49, //178
+ -50, //179
+ -51, //180
+ -52, //181
+ -53, //182
+ -54, //183
+ -55, //184
+ -56, //185
+ -57, //186
+ -58, //187
+ -59, //188
+ -60, //189
+ -61, //190
+ -62, //191
+ -63, //192
+ -64, //193
+ -65, //194
+ -66, //195
+ -67, //196
+ -68, //197
+ -69, //198
+ -70, //199
+ -71, //200
+ -72, //201
+ -73, //202
+ -74, //203
+ -75, //204
+ -76, //205
+ -77, //206
+ -78, //207
+ -79, //208
+ -80, //209
+ -81, //210
+ -82, //211
+ -83, //212
+ -84, //213
+ -85, //214
+ -86, //215
+ -87, //216
+ -88, //217
+ -89, //218
+ -90, //219
+ -91, //220
+ -92, //221
+ -93, //222
+ -94, //223
+ -95, //224
+ -96, //225
+ -97, //226
+ -98, //227
+ -99, //228
+ -100, //229
+ -101, //230
+ -102, //231
+ -103, //232
+ -104, //233
+ -105, //234
+ -106, //235
+ -107, //236
+ -108, //237
+ -109, //238
+ -110, //239
+ -111, //240
+ -112, //241
+ -113, //242
+ -114, //243
+ -115, //244
+ -116, //245
+ -117, //246
+ -118, //247
+ -119, //248
+ -120, //249
+ -121, //250
+ -122, //251
+ -123, //252
+ -124, //253
+ -125, //254
+ -127, //255
+};
259 synthOriginal/sin256.h
@@ -0,0 +1,259 @@
+PROGMEM char SinTable[]=
+{
+ 0, //0
+ 3, //1
+ 6, //2
+ 9, //3
+ 12, //4
+ 15, //5
+ 18, //6
+ 21, //7
+ 24, //8
+ 27, //9
+ 30, //10
+ 33, //11
+ 36, //12
+ 39, //13
+ 42, //14
+ 45, //15
+ 48, //16
+ 51, //17
+ 54, //18
+ 57, //19
+ 59, //20
+ 62, //21
+ 65, //22
+ 67, //23
+ 70, //24
+ 73, //25
+ 75, //26
+ 78, //27
+ 80, //28
+ 82, //29
+ 85, //30
+ 87, //31
+ 89, //32
+ 91, //33
+ 94, //34
+ 96, //35
+ 98, //36
+ 100, //37
+ 102, //38
+ 103, //39
+ 105, //40
+ 107, //41
+ 108, //42
+ 110, //43
+ 112, //44
+ 113, //45
+ 114, //46
+ 116, //47
+ 117, //48
+ 118, //49
+ 119, //50
+ 120, //51
+ 121, //52
+ 122, //53
+ 123, //54
+ 123, //55
+ 124, //56
+ 125, //57
+ 125, //58
+ 126, //59
+ 126, //60
+ 126, //61
+ 126, //62
+ 126, //63
+ 127, //64
+ 126, //65
+ 126, //66
+ 126, //67
+ 126, //68
+ 126, //69
+ 125, //70
+ 125, //71
+ 124, //72
+ 123, //73
+ 123, //74
+ 122, //75
+ 121, //76
+ 120, //77
+ 119, //78
+ 118, //79
+ 117, //80
+ 116, //81
+ 114, //82
+ 113, //83
+ 112, //84
+ 110, //85
+ 108, //86
+ 107, //87
+ 105, //88
+ 103, //89
+ 102, //90
+ 100, //91
+ 98, //92
+ 96, //93
+ 94, //94
+ 91, //95
+ 89, //96
+ 87, //97
+ 85, //98
+ 82, //99
+ 80, //100
+ 78, //101
+ 75, //102
+ 73, //103
+ 70, //104
+ 67, //105
+ 65, //106
+ 62, //107
+ 59, //108
+ 57, //109
+ 54, //110
+ 51, //111
+ 48, //112
+ 45, //113
+ 42, //114
+ 39, //115
+ 36, //116
+ 33, //117
+ 30, //118
+ 27, //119
+ 24, //120
+ 21, //121
+ 18, //122
+ 15, //123
+ 12, //124
+ 9, //125
+ 6, //126
+ 3, //127
+ 0, //128
+ -3, //129
+ -6, //130
+ -9, //131
+ -12, //132
+ -15, //133
+ -18, //134
+ -21, //135
+ -24, //136
+ -27, //137
+ -30, //138
+ -33, //139
+ -36, //140
+ -39, //141
+ -42, //142
+ -45, //143
+ -48, //144
+ -51, //145
+ -54, //146
+ -57, //147
+ -59, //148
+ -62, //149
+ -65, //150
+ -67, //151
+ -70, //152
+ -73, //153
+ -75, //154
+ -78, //155
+ -80, //156
+ -82, //157
+ -85, //158
+ -87, //159
+ -89, //160
+ -91, //161
+ -94, //162
+ -96, //163
+ -98, //164
+ -100, //165
+ -102, //166
+ -103, //167
+ -105, //168
+ -107, //169
+ -108, //170
+ -110, //171
+ -112, //172
+ -113, //173
+ -114, //174
+ -116, //175
+ -117, //176
+ -118, //177
+ -119, //178
+ -120, //179
+ -121, //180
+ -122, //181
+ -123, //182
+ -123, //183
+ -124, //184
+ -125, //185
+ -125, //186
+ -126, //187
+ -126, //188
+ -126, //189
+ -126, //190
+ -126, //191
+ -127, //192
+ -126, //193
+ -126, //194
+ -126, //195
+ -126, //196
+ -126, //197
+ -125, //198
+ -125, //199
+ -124, //200
+ -123, //201
+ -123, //202
+ -122, //203
+ -121, //204
+ -120, //205
+ -119, //206
+ -118, //207
+ -117, //208
+ -116, //209
+ -114, //210
+ -113, //211
+ -112, //212
+ -110, //213
+ -108, //214
+ -107, //215
+ -105, //216
+ -103, //217
+ -102, //218
+ -100, //219
+ -98, //220
+ -96, //221
+ -94, //222
+ -91, //223
+ -89, //224
+ -87, //225
+ -85, //226
+ -82, //227
+ -80, //228
+ -78, //229
+ -75, //230
+ -73, //231
+ -70, //232
+ -67, //233
+ -65, //234
+ -62, //235
+ -59, //236
+ -57, //237
+ -54, //238
+ -51, //239
+ -48, //240
+ -45, //241
+ -42, //242
+ -39, //243
+ -36, //244
+ -33, //245
+ -30, //246
+ -27, //247
+ -24, //248
+ -21, //249
+ -18, //250
+ -15, //251
+ -12, //252
+ -9, //253
+ -6, //254
+ -4, //255
+};
259 synthOriginal/square256.h
@@ -0,0 +1,259 @@
+PROGMEM char SquareTable[]=
+{
+ 127, //0
+ 127, //1
+ 127, //2
+ 127, //3
+ 127, //4
+ 127, //5
+ 127, //6
+ 127, //7
+ 127, //8
+ 127, //9
+ 127, //10
+ 127, //11
+ 127, //12
+ 127, //13
+ 127, //14
+ 127, //15
+ 127, //16
+ 127, //17
+ 127, //18
+ 127, //19
+ 127, //20
+ 127, //21
+ 127, //22
+ 127, //23
+ 127, //24
+ 127, //25
+ 127, //26
+ 127, //27
+ 127, //28
+ 127, //29
+ 127, //30
+ 127, //31
+ 127, //32
+ 127, //33
+ 127, //34
+ 127, //35
+ 127, //36
+ 127, //37
+ 127, //38
+ 127, //39
+ 127, //40
+ 127, //41
+ 127, //42
+ 127, //43
+ 127, //44
+ 127, //45
+ 127, //46
+ 127, //47
+ 127, //48
+ 127, //49
+ 127, //50
+ 127, //51
+ 127, //52
+ 127, //53
+ 127, //54
+ 127, //55
+ 127, //56
+ 127, //57
+ 127, //58
+ 127, //59
+ 127, //60
+ 127, //61
+ 127, //62
+ 127, //63
+ 127, //64
+ 127, //65
+ 127, //66
+ 127, //67
+ 127, //68
+ 127, //69
+ 127, //70
+ 127, //71
+ 127, //72
+ 127, //73
+ 127, //74
+ 127, //75
+ 127, //76
+ 127, //77
+ 127, //78
+ 127, //79
+ 127, //80
+ 127, //81
+ 127, //82
+ 127, //83
+ 127, //84
+ 127, //85
+ 127, //86
+ 127, //87
+ 127, //88
+ 127, //89
+ 127, //90
+ 127, //91
+ 127, //92
+ 127, //93
+ 127, //94
+ 127, //95
+ 127, //96
+ 127, //97
+ 127, //98
+ 127, //99
+ 127, //100
+ 127, //101
+ 127, //102
+ 127, //103
+ 127, //104
+ 127, //105
+ 127, //106
+ 127, //107
+ 127, //108
+ 127, //109
+ 127, //110
+ 127, //111
+ 127, //112
+ 127, //113
+ 127, //114
+ 127, //115
+ 127, //116
+ 127, //117
+ 127, //118
+ 127, //119
+ 127, //120
+ 127, //121
+ 127, //122
+ 127, //123
+ 127, //124
+ 127, //125
+ 127, //126
+ 127, //127
+ -125, //128
+ -125, //129
+ -125, //130
+ -125, //131
+ -125, //132
+ -125, //133
+ -125, //134
+ -125, //135
+ -125, //136
+ -125, //137
+ -125, //138
+ -125, //139
+ -125, //140
+ -125, //141
+ -125, //142
+ -125, //143
+ -125, //144
+ -125, //145
+ -125, //146
+ -125, //147
+ -125, //148
+ -125, //149
+ -125, //150
+ -125, //151
+ -125, //152
+ -125, //153
+ -125, //154
+ -125, //155
+ -125, //156
+ -125, //157
+ -125, //158
+ -125, //159
+ -125, //160
+ -125, //161
+ -125, //162
+ -125, //163
+ -125, //164
+ -125, //165
+ -125, //166
+ -125, //167
+ -125, //168
+ -125, //169
+ -125, //170
+ -125, //171
+ -125, //172
+ -125, //173
+ -125, //174
+ -125, //175
+ -125, //176
+ -125, //177
+ -125, //178
+ -125, //179
+ -125, //180
+ -125, //181
+ -125, //182
+ -125, //183
+ -125, //184
+ -125, //185
+ -125, //186
+ -125, //187
+ -125, //188
+ -125, //189
+ -125, //190
+ -125, //191
+ -125, //192
+ -125, //193
+ -125, //194
+ -125, //195
+ -125, //196
+ -125, //197
+ -125, //198
+ -125, //199
+ -125, //200
+ -125, //201
+ -125, //202
+ -125, //203
+ -125, //204
+ -125, //205
+ -125, //206
+ -125, //207
+ -125, //208
+ -125, //209
+ -125, //210
+ -125, //211
+ -125, //212
+ -125, //213
+ -125, //214
+ -125, //215
+ -125, //216
+ -125, //217
+ -125, //218
+ -125, //219
+ -125, //220
+ -125, //221
+ -125, //222
+ -125, //223
+ -125, //224
+ -125, //225
+ -125, //226
+ -125, //227
+ -125, //228
+ -125, //229
+ -125, //230
+ -125, //231
+ -125, //232
+ -125, //233
+ -125, //234
+ -125, //235
+ -125, //236
+ -125, //237
+ -125, //238
+ -125, //239
+ -125, //240
+ -125, //241
+ -125, //242
+ -125, //243
+ -125, //244
+ -125, //245
+ -125, //246
+ -125, //247
+ -125, //248
+ -125, //249
+ -125, //250
+ -125, //251
+ -125, //252
+ -125, //253
+ -125, //254
+ -1, //255
+};
285 synthOriginal/synthOriginal.ino
@@ -0,0 +1,285 @@
+
+#include "the_synth.h"
+ unsigned int counter=0;
+ unsigned char bar;
+ unsigned int demo;
+ unsigned char midi_state=0;
+ unsigned char midi_cmd=0;
+ unsigned char midi_1st=0;
+ unsigned char midi_2nd=0;
+ unsigned char MFLAG=0;
+
+void setup()
+{
+ Serial.begin(9600);
+ initSynth();
+ demo = 0;
+ bar = 0;
+
+
+ setup_voice(0,(unsigned int)SinTable,200.0,(unsigned int)Env1,1.0,300);
+ setup_voice(1,(unsigned int)RampTable,100.0,(unsigned int)Env1,1.0,512);
+ setup_voice(2,(unsigned int)TriangleTable,100.0,(unsigned int)Env2 ,.5,1000);
+ setup_voice(3,(unsigned int)NoiseTable,1200.0,(unsigned int)Env3,.02,500);
+}
+
+
+unsigned char pattern[4][32]=
+{
+ {1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0},
+ {48,0,0,41,0,0,44,0,44,0,0,46,0,0,41,0,48,0,0,41,0,0,44,0,0,44,0,46,0,0,51,0},
+ {0,0,0,50,0,0,0,0,0,0,0,50,0,0,0,0,0,0,0,50,0,0,0,0,0,0,0,50,0,0,0,0},
+ {0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0}
+};
+
+unsigned char song[4][32]=
+{
+ {0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0},
+ {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
+ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0},
+ {0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1}
+};
+
+
+
+void loop()
+{
+ //************************************************
+ // External midi
+ //************************************************
+ /*
+ if(CHK(UCSR0A,RXC0))
+ {
+ unsigned char c=UDR0;
+
+ UDR0=c;
+ switch(midi_state)
+ {
+ case 0:
+ {
+ switch(c&0xF0)
+ {
+ case 0x80:
+ case 0x90:
+ case 0xB0:
+ {
+ midi_state=1;
+ midi_cmd=c;
+ };
+ break;
+ }
+ };
+ break;
+
+ case 1: //-Get 1
+ {
+ if(c&0x80)
+ {
+ midi_state=0;
+ break;
+ }
+ midi_1st=c;
+ midi_state=2;
+ };
+ break;
+
+ case 2: //-Get 2
+ {
+ if(c&0x80)
+ {
+ midi_state=0;
+ break;
+ }
+ midi_2nd=c;
+ midi_state=0;
+
+ //---------------------------------
+ // Parse MIDI here
+ //---------------------------------
+
+ TOG(PORTB,5);
+
+ switch(midi_cmd)
+ {
+ // Notes
+ case 0x91:
+ {
+ if(midi_2nd)
+ mtrigger(0,midi_1st);
+ };
+ break;
+ case 0x92:
+ {
+ if(midi_2nd)
+ mtrigger(1,midi_1st);
+ };
+ break;
+ case 0x93:
+ {
+ if(midi_2nd)
+ mtrigger(2,midi_1st);
+ };
+ break;
+ case 0x94:
+ {
+ if(midi_2nd)
+ mtrigger(3,midi_1st);
+ };
+ break;
+ // Controllers
+
+ case 0xb1:
+ {
+ switch(midi_1st)
+ {
+ case 0x0d:
+ setup_wave(0,midi_2nd);
+ break; //
+ case 0x0c:
+ setup_env(0,midi_2nd);
+ break; //12
+ case 0x0a:
+ setup_length(0,midi_2nd);
+ break;//10
+ case 0x07:
+ setup_mod(0,midi_2nd);
+ break;//7
+ };
+ break;
+ };
+ break;
+
+
+ case 0xb2:
+ {
+ switch(midi_1st)
+ {
+ case 0x0d:
+ setup_wave(1,midi_2nd);
+ break; //
+ case 0x0c:
+ setup_env(1,midi_2nd);
+ break; //12
+ case 0x0a:
+ setup_length(1,midi_2nd);
+ break;//10
+ case 0x07:
+ setup_mod(1,midi_2nd);
+ break;//7
+ };
+ break;
+ };
+ break;
+
+
+ case 0xb3:
+ {
+ switch(midi_1st)
+ {
+ case 0x0d:
+ setup_wave(2,midi_2nd);
+ break; //
+ case 0x0c:
+ setup_env(2,midi_2nd);
+ break; //12
+ case 0x0a:
+ setup_length(2,midi_2nd);
+ break;//10
+ case 0x07:
+ setup_mod(2,midi_2nd);
+ break;//7
+ };
+ break;
+ };
+ break;
+
+
+ case 0xb4:
+ {
+ switch(midi_1st)
+ {
+ case 0x0d:
+ setup_wave(3,midi_2nd);
+ break; //
+ case 0x0c:
+ setup_env(3,midi_2nd);
+ break; //12
+ case 0x0a:
+ setup_length(3,midi_2nd);
+ break;//10
+ case 0x07:
+ setup_mod(3,midi_2nd);
+ break;//7
+ };
+ break;
+ };
+ break;
+