Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #38231

Re: Web midiAPI get name of sending device

Newsgroups comp.lang.javascript
Date 2020-03-11 03:35 -0700
References <9afba850-7ac7-4341-890d-d072931b2c09@googlegroups.com> <c5b446d0-8db8-4b75-83e3-c1b46fde317b@googlegroups.com>
Message-ID <a707b64d-c6ce-4e87-9dc1-bbe5852814de@googlegroups.com> (permalink)
Subject Re: Web midiAPI get name of sending device
From Jonas Thörnvall <jonas.thornvall@gmail.com>

Show all headers | View raw


Den tisdag 10 mars 2020 kl. 23:21:28 UTC+1 skrev Michael Haufe (TNO):
> On Tuesday, March 10, 2020 at 2:39:24 AM UTC-5, Jonas Thörnvall wrote:
> > When listening to multiple midi Interfaces
> > I can't see a way to get the informatioon about what port that actually sent the message, i can see it is due to some idiots implemented some weird next looping structure, where you can not get the index of the fucking port sending the message.
> > 
> > And i really can not think up a way to circumvent it?
> > But there is people more knowledgable then me, basicly i just want pickup and mirror information about what device sent the signal to computer.
> 
> 
> ```JavaScript
> navigator.requestMIDIAccess()
>   .then(function(access) {
> 
>      // Get lists of available MIDI controllers
>      const inputs = access.inputs.values();
>      const outputs = access.outputs.values();
> 
>      access.onstatechange = function(e) {
> 
>        // Print information about the (dis)connected MIDI controller
>        console.log(e.port.name, e.port.manufacturer, e.port.state);
>      };
>   });
> ```

Isn't your example dealing with if the device is attached or not? not if it sending messages?

I want to see which of the midimessages responsible for a midimessage, when it is generated.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-10 00:39 -0700
  Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-10 00:41 -0700
  Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-10 15:21 -0700
    Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-10 15:43 -0700
      Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-10 17:15 -0700
        Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-11 14:32 -0700
          Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-11 15:52 -0700
            Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-12 05:04 -0700
            Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-12 05:21 -0700
            Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-12 05:30 -0700
              Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-12 06:32 -0700
              Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-12 12:16 -0700
                Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-12 12:55 -0700
                Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-12 21:11 -0700
                Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-13 02:16 -0700
                Re: Web midiAPI get name of sending device "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-03-13 13:27 +0100
                Re: Web midiAPI get name of sending device "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-03-13 13:34 +0100
                Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-13 12:47 -0700
    Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-11 03:35 -0700
      Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-11 03:44 -0700
        Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-11 05:21 -0700

csiph-web