Ray Rashif wrote:
Oh wow, every single one of you starting from Nedko
have just saved me
hours of research! Thanks so much guys, extra points to Andy for his
walkthrough with bonus code, Folderol for citing the exact reference
material and Josh for landing the correct device (eroktronix) =P
Glad what I posted
what helpful.
I actually posted the wrong C code - the right files are attached to
this email.
Would be good to know how you get on with this as I'm thinking of making
a midi'ed bass drum beater at some point.
andy
device="/dev/ttyUSB0";
mapping="Tom Toms";
pads=4;
kits: (
{ name="GM Kit";
sounds=(
(35,"Acoustic Bass Drum"),
(36,"Bass Drum 1"),
(37,"Side Stick"),
(38,"Acoustic Snare"),
(39,"Hand Clap"),
(40,"Electric Snare"),
(41,"Low Floor Tom"),
(42,"Closed Hi-Hat"),
(43,"High Floor Tom"),
(44,"Pedal Hi-Hat"),
(45,"Low Tom"),
(46,"Open Hi-Hat"),
(47,"Low-Mid Tom"),
(48,"Hi-Mid Tom"),
(49,"Crash Cymbal 1"),
(50,"High Tom"),
(51,"Ride Cymbal 1"),
(52,"Chinese Cymbal"),
(53,"Ride Bell"),
(54,"Tambourine"),
(55,"Splash Cymbal"),
(56,"Cowbell"),
(57,"Crash Cymbal 2"),
(58,"Vibraslap"),
(59,"Ride Cymbal 2"),
(60,"Hi Bongo"),
(61,"Low Bongo"),
(62,"Mute Hi Conga"),
(63,"Open Hi Conga"),
(64,"Low Conga"),
(65,"High Timbale"),
(66,"Low Timbale"),
(67,"High Agogo"),
(68,"Low Agogo"),
(69,"Cabasa"),
(70,"Maracas"),
(71,"Short Whistle"),
(72,"Long Whistle"),
(73,"Short Guiro"),
(74,"Long Guiro"),
(75,"Claves"),
(76,"Hi Wood Block"),
(77,"Low Wood Block"),
(78,"Mute Cuica"),
(79,"Open Cuica"),
(80,"Mute Triangle"),
(81,"Open Triangle")
);
},
{
name="A Minor Pentatonic";
sounds=(
(45,"A2"),
(48,"C3"),
(50,"D3"),
(52,"E3"),
(55,"G3"),
(57,"A3")
);
}
);
channels: (
{ name="GM Kit 1"; kit="GM Kit"; midichannel=10; },
{ name="A Minor Pent 1"; kit="A Minor Pentatonic"; midichannel=1;}
);
mappings: (
{ name="Tom Toms";
hotkey="t";
pads: (
{pad=0; channel="GM Kit 1"; sound="Low Floor Tom"; },
{pad=1; channel="GM Kit 1"; sound="Low Tom";},
{pad=2; channel="GM Kit 1"; sound="Low-Mid Tom";},
{pad=3; channel="GM Kit 1"; sound="High Tom";}
); },
{ name="Congas and claves";
hotkey="c";
pads: (
{ pad=0; channel="GM Kit 1"; sound="Low Conga"; },
{ pad=1; channel="GM Kit 1"; sound="Open Hi Conga"; },
{ pad=2; channel="GM Kit 1"; sound="Mute Hi Conga"; },
{ pad=3; channel="GM Kit 1"; sound="Claves"; }
); },
{ name="Acoustic Kit";
hotkey="a";
pads: (
{pad=0; channel="GM Kit 1"; sound="Acoustic Bass Drum"; },
{pad=1; channel="GM Kit 1"; sound="Acoustic Snare"; },
{pad=2; channel="GM Kit 1"; sound="Closed Hi-Hat"; },
{pad=3; channel="GM Kit 1"; sound="Pedal Hi-Hat"; }
); },
{ name="Bass, Bongo and Maracas";
hotkey="b";
pads: (
{pad=0; channel="GM Kit 1"; sound="Bass Drum 1"; },
{pad=1; channel="GM Kit 1"; sound="Low Bongo"; },
{pad=2; channel="GM Kit 1"; sound="Hi Bongo"; },
{pad=3; channel="GM Kit 1"; sound="Maracas"; }
); },
{ name="Tuned";
hotkey="n";
pads: (
{pad=0; channel="A Minor Pent 1"; sound="A2"; },
{pad=1; channel="A Minor Pent 1"; sound="C3"; },
{pad=2; channel="A Minor Pent 1"; sound="D3"; },
{pad=3; channel="A Minor Pent 1"; sound="E3"; }
);
}
);