[Plugin] MIDI plugin

Post your completed addons to share with the community

Post » Sat Apr 13, 2013 6:37 am

Update 2014-09-26:
Plugin updated to 1.1 - looping was throwing an exception, and "Stop" didn't!

Update 2014-05-16:
Piano Sample r168 (no ChromeConsole plugin needed)

Update 2013-05-21:

I'm releasing the MIDI plugin. There's still lots to do & cleanup, but here's the first version.

BHT_MIDI - 1.1
Piano Sample
Manual

I'd like this to be more complete, but it's just dragging out. I will be filling in the manual throughout the week, and there may need to be a tutorial as well.


Original post:
I've got a long way to go, but I've started on a MIDI plugin.

MIDI Sampler

This is a whole lot of hack-work. This thread caught my eye: Web Audio API and MIDI, so it's based on this.

So far, this is a hack of the MIDI.js code, the C2 Audio plugin, and Pode's DragnDropZone plugin.

You need to press the Preload button first to get the sounds local to your computer, but from there you can try the three sample songs, press the piano keys, or drag a .MID file onto the gray drag-n-drop zone.

There's some handy test files here: use the download link
(Hmm, link works in IE but not Chrome: http://www.personalcopy.com/midi.htm)
Last edited by blackhornet on Fri Sep 26, 2014 2:01 pm, edited 2 times in total.
ImageImageImage
B
67
S
19
G
124
Posts: 3,214
Reputation: 74,415

Post » Sat Apr 13, 2013 8:51 am

Nice! some developer complained why HTML5 sucks because it won't support MIDI but you demostrate he is wrong :)Joannesalfa2013-04-13 08:52:22
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Sat Apr 13, 2013 1:33 pm

Yes!!!!
I need this allot in the future.
Great Work blackhornet
B
56
S
20
G
13
Posts: 778
Reputation: 13,204

Post » Sat Apr 13, 2013 4:43 pm

Amazing.....
it even works on mobile devices.......
B
106
S
27
G
8
Posts: 209
Reputation: 12,525

Post » Sun Apr 14, 2013 1:46 am

Hot stuff
Do you play from some kind of soundfont, or are those separate piano sounds?
Also, did you see that post? How about a full-blown MIDI synthesizer? =)
B
20
S
5
G
8
Posts: 325
Reputation: 6,473

Post » Sun Apr 14, 2013 4:20 am

When I tried the MIDI.js samples, there was only one that wouldn't crash on my iPod Touch. I immediately thought of how Ashley had already dealt with the issue of supporting sound across all platforms. For that reason, I decided to hook the backend of the MIDI.js implementation to the C2 Audio plugin. So, the sounds are standard C2 sounds, played via the MIDI player engine - one for each note. This is going to be the challenge of supporting MIDI. Unless I'm mistaken, there will be no guaranteed General MIDI sounds available across all platforms, so you are going to have to provide your own 'soundfonts'.

I had seen the synthesizer post. I'll keep it in mind but there's plenty for me still to do on this plugin.
ImageImageImage
B
67
S
19
G
124
Posts: 3,214
Reputation: 74,415

Post » Sun Apr 14, 2013 10:19 am

Interesting, but it will better if/when you add more than just piano notes.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Tue Apr 16, 2013 1:00 pm

great stuff, thanks for coding this!
AWESOME!
B
73
S
24
G
37
Posts: 147
Reputation: 23,731

Post » Sat Apr 20, 2013 4:24 pm

tease us more
B
73
S
24
G
37
Posts: 147
Reputation: 23,731

Post » Sun Apr 28, 2013 3:03 am

hey blackhornet,
can you tease us 1 more time?
B
73
S
24
G
37
Posts: 147
Reputation: 23,731

Next

Return to Completed Addons

Who is online

Users browsing this forum: matriax and 2 guests