WEBVTT
Kind: captions
Language: en

00:00:01.159 --> 00:00:09.120 align:start position:19%
this little device is a USB joystick
that sends MIDI pitch Ben commands

00:00:06.080 --> 00:00:13.080 align:start position:19%
joystick itself is the same as you'd
find on a PSP games console which is

00:00:11.639 --> 00:00:19.770 align:start position:19%
interesting mechanism that keeps the
whole thing very small and flat inside

00:00:17.670 --> 00:00:26.699 align:start position:19%
you've guessed it we've got an 8020
eighty-five running V USB the first one

00:00:24.539 --> 00:00:30.779 align:start position:19%
of these was built as a commission for a
harmonica player called brendan power he

00:00:29.429 --> 00:00:37.590 align:start position:19%
was one of the first customers for a
device called the diem 48 which is MIDI

00:00:33.630 --> 00:00:43.170 align:start position:19%
harmonica built by Erik Lake home the DM
48 pounds free well but there's no easy

00:00:39.899 --> 00:00:46.050 align:start position:19%
way to bend notes on a real harmonica
you bend nose by changing the shape of

00:00:44.640 --> 00:00:50.670 align:start position:19%
your mouth and throat but there's no
easy way of detecting that we did

00:00:48.870 --> 00:00:54.180 align:start position:19%
consider a few methods of trying to
measure the resonance of your mouth but

00:00:52.110 --> 00:01:00.690 align:start position:19%
nothing really presented itself as an
obvious solution so Brendan's idea was

00:00:58.559 --> 00:01:04.019 align:start position:19%
to just create a retrofit device that
can stick on top of the MIDI harmonica

00:01:02.340 --> 00:01:08.369 align:start position:19%
and through something like a joystick
let you bend notes up and down we went

00:01:06.810 --> 00:01:13.409 align:start position:19%
through a few iterations and eventually
came up with this what we've done is

00:01:11.220 --> 00:01:20.820 align:start position:19%
decide to use all four Bend directions
for different Bend amounts so pushing it

00:01:16.860 --> 00:01:25.439 align:start position:19%
in this direction bends by one semitone
down pushing it in this direction bends

00:01:23.220 --> 00:01:30.869 align:start position:19%
two semitones down in this way goes
three semitones and in this direction

00:01:27.509 --> 00:01:33.450 align:start position:19%
goes for two semitones up I'm pretty
sure on a real harmonica you can only

00:01:32.040 --> 00:01:37.680 align:start position:19%
Bend downwards so that this
configuration works quite well

00:01:35.630 --> 00:01:42.810 align:start position:19%
Brenden already sells a bunch of
harmonica accessories so we figured it

00:01:39.720 --> 00:01:46.290 align:start position:19%
was maybe worth selling this to and I
made up a whole batch of them this is

00:01:45.240 --> 00:01:49.380 align:start position:19%
where it started to get difficult
because in the first edition I'd

00:01:47.880 --> 00:01:53.460 align:start position:19%
calibrated the voltages coming out of
this joystick by hand just sticking the

00:01:51.600 --> 00:01:57.960 align:start position:19%
numbers into the source code but that's
not really viable for a whole batch each

00:01:55.500 --> 00:02:01.049 align:start position:19%
joystick seems to be slightly different
even though I bought them all from the

00:01:58.950 --> 00:02:05.850 align:start position:19%
same seller I wanted to make it possible
to update the firmware over USB I didn't

00:02:04.229 --> 00:02:10.709 align:start position:19%
get round to that but you've never had
the calibration would still have been a

00:02:07.500 --> 00:02:15.680 align:start position:19%
chore the best solution is to stick the
same source code on every joystick but

00:02:13.100 --> 00:02:22.490 align:start position:19%
load the calibration numbers out of the
EPROM storage on the 89-85 so I'll just

00:02:20.840 --> 00:02:26.960 align:start position:19%
demonstrate the tool I made to do this
this is a JavaScript based program so

00:02:25.010 --> 00:02:32.030 align:start position:19%
it's cross-platform and it's using the
web MIDI API to speak to the joystick

00:02:29.030 --> 00:02:36.050 align:start position:19%
the commands it sends are via MIDI sysex
and the first thing it sends is it tells

00:02:34.670 --> 00:02:41.900 align:start position:19%
the joystick to go into collaboration
mode and then the joystick will start to

00:02:39.290 --> 00:02:47.930 align:start position:19%
send the raw animal to digital converter
values on two separate midi channels and

00:02:44.870 --> 00:02:51.680 align:start position:19%
you can see them plotted here as I
rotate the joystick so I've got one

00:02:49.790 --> 00:02:59.870 align:start position:19%
channel there and one channel here and
these yellow boxes are essentially the

00:02:56.120 --> 00:03:03.410 align:start position:19%
calibration members so you can drag them
around

00:03:01.090 --> 00:03:08.840 align:start position:19%
so once we've identified the limits that
need to be in place especially the dead

00:03:05.930 --> 00:03:12.530 align:start position:19%
zones in the middle this joystick is
behaving quite well but on lots of these

00:03:11.150 --> 00:03:16.670 align:start position:19%
joysticks especially when they're brand
new that position they snap back to in

00:03:14.510 --> 00:03:21.380 align:start position:19%
the middle tends to be quite different
as you release it and obvious it's very

00:03:19.190 --> 00:03:25.900 align:start position:19%
important that when you let go it has to
send a pitch append value of zero

00:03:23.270 --> 00:03:31.310 align:start position:19%
otherwise it will always be out of tune
so once these numbers are decided upon

00:03:30.020 --> 00:03:36.590 align:start position:19%
then we need to send them to the
joystick so to send data to the device

00:03:35.300 --> 00:03:40.790 align:start position:19%
we're using MIDI sysex
which by the way it's defined is only

00:03:38.330 --> 00:03:45.170 align:start position:19%
seven bit the 8 bit is used as a flag to
say that the sysex is ending so just

00:03:43.310 --> 00:03:48.860 align:start position:19%
send binary data we have to transform it
into nibbles and then reconstruct them

00:03:46.970 --> 00:03:53.000 align:start position:19%
on the device which isn't that difficult
to do it's just a bit tedious once it's

00:03:51.770 --> 00:03:57.860 align:start position:19%
got the binary data it can write it into
the EEPROM and once it boots up it can

00:03:56.480 --> 00:04:01.670 align:start position:19%
read out from the prompt straight into a
C structure and use that in its

00:03:59.420 --> 00:04:04.850 align:start position:19%
calculations but the calculations it's
doing are of course floating-point

00:04:02.960 --> 00:04:08.150 align:start position:19%
calculations and this is an 8-bit device
with no floating-point unit so we really

00:04:06.740 --> 00:04:14.180 align:start position:19%
want to minimise the match processing
asked to do and we can avoid most of the

00:04:12.530 --> 00:04:19.160 align:start position:19%
calculation by pre-processing the
coefficients that he needs to multiply

00:04:15.920 --> 00:04:22.390 align:start position:19%
by before we send it to them but that
means we're now trying to send a

00:04:20.720 --> 00:04:30.260 align:start position:19%
floating-point number onto the device
and that means in binary data it's

00:04:25.940 --> 00:04:34.250 align:start position:19%
in the I Triple E 754 standard now if if
this program was running in C we could

00:04:31.730 --> 00:04:38.030 align:start position:19%
just form a union and read out the
binary data from the structure and

00:04:35.570 --> 00:04:41.090 align:start position:19%
transmit it directly but that's that's
not going to work because we're in

00:04:38.960 --> 00:04:49.070 align:start position:19%
JavaScript so this means reimplemented
the I Triple E 754 definition which is

00:04:45.740 --> 00:04:54.650 align:start position:19%
again tedious but not too difficult and
once this is then we click calculate we

00:04:51.860 --> 00:05:02.680 align:start position:19%
can transforms it into the binary data
that needs to send then it sends it over

00:04:56.420 --> 00:05:02.680 align:start position:19%
CSX and eventually click write to device

00:05:03.490 --> 00:05:13.480 align:start position:19%
we can leave calibration mode and this
will now be transmitting the pigmen

00:05:09.920 --> 00:05:13.480 align:start position:19%
values correctly

00:05:17.710 --> 00:05:33.070 align:start position:19%
so just a close-up here that numbers
it's sending are for a since Bend range

00:05:24.100 --> 00:05:45.880 align:start position:19%
of three - 100 % 4 - 3 semitones + 66 %
4 + 2 semitones

00:05:35.229 --> 00:05:51.270 align:start position:19%
- 66 % + - 33 % and every time we let go
go straight back to 0 which is perfect I

00:05:51.930 --> 00:05:58.060 align:start position:19%
found this whole setup really quite
satisfying and it actually works really

00:05:55.930 --> 00:06:01.720 align:start position:19%
well once I got the software working I
was able to calibrate all of the

00:05:59.289 --> 00:06:06.160 align:start position:19%
joysticks very quickly it would be
fairly trivial to add more parameters to

00:06:03.520 --> 00:06:10.419 align:start position:19%
this such as the MIDI channel it
transmits on we could have customized

00:06:07.810 --> 00:06:16.180 align:start position:19%
that fairly easily but I didn't around
to it one very beneficial part of this

00:06:14.500 --> 00:06:19.330 align:start position:19%
though is that since we have access to
all of the scaling coefficients we can

00:06:17.979 --> 00:06:24.010 align:start position:19%
customize which direction of the pitch
bender does what Bend pitch pin numbers

00:06:22.150 --> 00:06:28.210 align:start position:19%
are more like a percentage than an
absolute number it's always scaled to an

00:06:26.409 --> 00:06:32.860 align:start position:19%
internal maximum been vanes that's set
at the synth scour 3 semitone Bend here

00:06:31.270 --> 00:06:38.380 align:start position:19%
if we set our Bend range to 3 semitones
and then we send 66% for 2 semitones 33

00:06:36.190 --> 00:06:44.229 align:start position:19%
percent for 1 semitone 100 percent for 3
semitones but via this calibration tool

00:06:42.789 --> 00:06:48.099 align:start position:19%
we can even change what the expected
Bend range of the synth is since all of

00:06:46.509 --> 00:06:51.940 align:start position:19%
the coefficients are derived from that
number so if you want to change the

00:06:50.020 --> 00:06:58.840 align:start position:19%
maximum Ben range or which direction
does warn we just put those numbers into

00:06:53.979 --> 00:07:02.680 align:start position:19%
our calibration tool and recalibrate so
one of the reasons I made this video is

00:07:00.550 --> 00:07:06.370 align:start position:19%
of course we've built a batch of these I
don't expect to sell too many of them

00:07:04.630 --> 00:07:13.810 align:start position:19%
but if you do want one they are for sale
on Brendan's website but it is just an

00:07:09.849 --> 00:07:19.509 align:start position:19%
80/20 85 a USB port and a tiny joystick
in a tiny package so I'm thinking there

00:07:17.320 --> 00:07:25.599 align:start position:19%
must be some other uses for such a thing
either in MIDI as a controller of some

00:07:21.849 --> 00:07:30.400 align:start position:19%
sort or anything else I mean it's just a
USB port it could emulate anything like

00:07:27.550 --> 00:07:35.379 align:start position:19%
a mouse or keyboard or volume control I
don't know

00:07:31.330 --> 00:07:38.800 align:start position:19%
so if you have any ideas let me know it
was quite a fun experience making and

00:07:37.449 --> 00:07:42.520 align:start position:19%
selling an electronic product as an
individual I think will probably try and

00:07:40.930 --> 00:07:46.240 align:start position:19%
do the same thing for some of the other
conventions like the breath controller

00:07:44.439 --> 00:07:50.159 align:start position:19%
or the synth cable I know a few people
have asked why those and I sold a couple

00:07:48.699 --> 00:07:54.639 align:start position:19%
of handmade ones right at the start
we'll see how it goes

00:07:52.139 --> 00:07:58.419 align:start position:19%
there's a very long page on MIT SOUTHCOM
about this pitch bender and the

00:07:55.990 --> 00:08:05.490 align:start position:19%
development that went into it along with
instructions for the calibration tool so

00:08:01.120 --> 00:08:05.490 align:start position:19%
check those out if you are interested

