Тёмный

JavaScript MIDI Synth Tutorial - Part 1 | Getting MIDI in the browser 

Music and Coding
Подписаться 2,4 тыс.
Просмотров 10 тыс.
50% 1

The Web #MIDI API allows us to connect a MIDI-device to our computer and use MIDI inputs and outputs in the browser using #JavaScript. In this video we will get access to our connected MIDI-devices and talk about how it works, what the different MIDI-commands are etc. In video number 2 we will hook it up to the Web Audio API and make a cool little #synth.

Опубликовано:

 

29 сен 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@inang1968
@inang1968 Год назад
I dont know how much i could thank you for making this video series and this channel!!! I love music but my parents made me take up IT. I do not know how to combine them and always made them separate. You are an angel!!! SUbscribed please never delete these videos!
@MusicandCoding
@MusicandCoding Год назад
Thank you! That really means a lot to me. I got it the other way round. I studied music for many years and played a lot of concerts etc. But after a while I lost interest in playing music - yeah, weird, I know. At a point I really started missing it though. Then I started learning js and thought "hey, I should get back into music through coding" - so I did - and this channel is one of the results. I'll start making more videos soon. Your comment makes me want to continue after a 6 month break not making any new videos.. Thank you!!!
@inang1968
@inang1968 Год назад
@Music and Coding looking forward to new amazing videos!!! I get into slumps a lot in both coding and music, so really understand where you are coming from. But boy oh boy you are very very talented :) Thank you and keep up the amazing work! Am really looking forward to new vids hahahah
@mjhobo5520
@mjhobo5520 Год назад
Came up in my recommended videos, you’re presentation style, speed and language is top tier tutorial content. Thanks!
@VuNguyen-tu1gv
@VuNguyen-tu1gv Год назад
One of the best tutor channel !! thank you for sharing
@Benqo
@Benqo Год назад
Amazing video! I got a bit confused by reading just Web Midi API documentation, but your video makes it so clear! Thank you a lot ;)
@jackyoungpiano2234
@jackyoungpiano2234 Год назад
thank you! this was just what I was looking for!
@Royal-cy9sn
@Royal-cy9sn 7 месяцев назад
Preciate you man! This was really helpful.
@zakur0hako
@zakur0hako 2 года назад
This is awesome
@frogfox9577
@frogfox9577 2 года назад
Wouahouuuuu you are my mentor !!!! I make a "virtual synth" on my browser with HTML CSS JS (click.event ) and some samples. And whit this tuto i will learn how put my midi controller on USB to play on my "virtual synth" from a web browser ?
@robomctussin
@robomctussin 2 года назад
best channel on youtube
@MusicandCoding
@MusicandCoding 2 года назад
Thank you Sir! 😀
@JonasCanarias
@JonasCanarias 2 года назад
Thank you
@thomasmcelmeel166
@thomasmcelmeel166 Год назад
Thank u :-)
@epiphanysymptom-crisloren7177
@epiphanysymptom-crisloren7177 2 года назад
Have you found any method , coding magic or existing extension, for safari support? Thanks for the walkthrough. When companies won't update librarians/editor software but manmade online-based sites can- this is going to be super useful to keep my synthesizers on the shelf but plugged in lol.
@MusicandCoding
@MusicandCoding 2 года назад
Yea, Web MIDI is still in its infancy, but hopefully it won't be long before all the major browsers support it. I found this polyfill-library that should make it possible to use in browsers not currently supporting it.. github.com/jazz-soft/JZZ I haven't tried it myself, but it looks promising.
@gabriellenzina2633
@gabriellenzina2633 2 года назад
What polyfill do you use to run midi on the browser? did i try jzz midi on safari?
@adamalfray
@adamalfray Год назад
Hi There! Thank you for making this tutorial and all your other tutorials! Greatly appreciated. at 13:48: I get an infinite loop of console.log messages stating that there has been a key press event when I am not touching my keyboard. Any idea of what this could be?
@stengosaurus
@stengosaurus Год назад
I am getting the same problem, almost as if I have a sequencer running, it's outputting 11 MIDIMessageEvents per second. Just out of curiosity, what is your MIDI device?
@adamalfray
@adamalfray Год назад
@@stengosaurus It ended up working! I just kept following the tutorial and the bug just ended up sorting itself out automatically. I used a yamaha mm8 midi keyboard.
@diegocassinera
@diegocassinera 2 года назад
In your switch statement on the midi command, the case of 127 will never be reached. If you midi device produces it, the code will break on like 21 with an array index error. 127 has only one parameter.
@MusicandCoding
@MusicandCoding 2 года назад
Ooops.. You're right. There should have been a check there. Thanks for pointing that out :)
@frogfox9577
@frogfox9577 2 года назад
it's work on FireFox or on Chrome only ?
@MusicandCoding
@MusicandCoding 2 года назад
It works only on Chrome, Edge and Opera (on desktop) as of now. You can see the list of supported browsers here: developer.mozilla.org/en-US/docs/Web/API/MIDIAccess
@frogfox9577
@frogfox9577 2 года назад
@@MusicandCoding Thanks, and with this codebase, do we can tranpose it to make a mobile App Cross-platform with Vue-Native ? (Or other JS Framework to make Mobile App.)
@MusicandCoding
@MusicandCoding 2 года назад
@@frogfox9577 I am not sure as I haven't done much native app development. But there are JS MIDI libraries out there for browsers that do not support Web MIDI. Also, I'm not sure about this, but I think there must be native midi API's for Android and iOS that you can probably access from React Native or something similar.
@raimonessilva4572
@raimonessilva4572 Год назад
It's work on browser mobile? I'm cannot to use here.
@MusicandCoding
@MusicandCoding Год назад
It doesn't really work that well on mobile. Here's a list of which browsers you can use it in: caniuse.com/midi So it's not gonna work on any iOS devices, since all iOS browsers are based on Safari. But it might work on Android devices in some browsers.
@raimonessilva4572
@raimonessilva4572 Год назад
Tanks, I'm using chrome browser for Android latest version 111. But I'm cannot to connect my keyboard for USB cable and OTG adapter. Only my computer 😢
@RobinJohnson
@RobinJohnson 2 года назад
HEEEEEELP! Holy crap why is this so complex!?
@MusicandCoding
@MusicandCoding 2 года назад
Because you will feel GREAT and be proud of yourself after doing something hard :) :)
Далее
Making A $2000 Synth For $99
8:31
Просмотров 247 тыс.
An introduction to Shader Art Coding
22:40
Просмотров 913 тыс.
How principled coders outperform the competition
11:11
Code-It-Yourself! Sound Synthesizer #1 - Basic Noises
28:50
ASMR Programming - Spinning Cube - No Talking
20:45
Просмотров 3,6 млн