;adapted from Vacca for by gwr #define MidiChannel 5 ;#define ICD #include midiPulse.asm ;************************************************************ ; Midi Note number to timer number table (offset by 1!) ; 00h -> no action org 0F00h ; MidiNoteMap ; note # offset=0h DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; noot 0 - 7 DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; noot 8 - 15 DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; noot 16 - 23 DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; noot 24 - 31 ; note # offset=20h DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; noot 32 - 39 DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; noot 40 - 49 DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; noot 48 - 55 DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; noot 56 - 63 ; note # offset=40h DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; noot 64 - 71 ;mapping in volgorde vann de hardware: ;DB 01h, 02h, 03h, 04h, 05h, 06h, 07h, 08h ; noot 72 - 79 - psch ;DB 09h, 0Ah, 0Bh, 0Ch, 0Dh, 0Eh, 0Fh, 10h ; noot 80 - 87 - (84-87=lites) ;mapping volgens ruishoogte DB 03h, 04h, 0Bh, 02h, 01h, 07h, 05h, 08h ; noot 72 - 79 - psch DB 0Ah, 0Ch, 06h, 09h, 0Dh, 0Eh, 0Fh, 10h ; noot 80 - 87 - (84-87=lites) DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; noot 88 - ; note # offset=60h DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; DB 00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h ; ; Velocity to time tables ; Timer1 Lookup Table ; first dword : dummy ; following dwords : timer cycles for velocity 1,2,..128 ; inverted endianess! org 1000h velTime1 #include "vacca1.lut" org 1100h velTime2 #include "vacca1.lut" org 1200h velTime3 #include "vacca1.lut" org 1300h velTime4 #include "vacca1.lut" org 1400h velTime5 #include "vacca1.lut" org 1500h velTime6 #include "vacca1.lut" org 1600h velTime7 #include "vacca1.lut" org 1700h velTime8 #include "vacca1.lut" org 1800h velTime9 #include "vacca1.lut" org 1900h velTime10 #include "vacca1.lut" org 1A00h velTime11 #include "vacca1.lut" org 1B00h velTime12 #include "vacca1.lut" org 1C00h velTime13 #include "vacca1.lut" org 1D00h velTime14 #include "vacca1.lut" org 1E00h velTime15 #include "vacca1.lut" org 1F00h velTime16 #include "vacca1.lut" end