Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #38243
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2020-03-13 02:16 -0700 |
| References | (5 earlier) <d94fe4e1-de2f-4452-85c9-db54e60316e4@googlegroups.com> <3a927707-c4d3-4c00-936e-f547b61d8355@googlegroups.com> <6ec224ec-ec60-4037-80dd-09fdb9d38f88@googlegroups.com> <8b7ac35b-b27c-4d4b-b8ed-966a92156a48@googlegroups.com> <c5c8bb56-e20d-4af8-9384-64d4d9982fb1@googlegroups.com> |
| Message-ID | <63e004b7-7786-4b69-bb5d-83e2793b8030@googlegroups.com> (permalink) |
| Subject | Re: Web midiAPI get name of sending device |
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
Den fredag 13 mars 2020 kl. 05:11:58 UTC+1 skrev Michael Haufe (TNO):
> On Thursday, March 12, 2020 at 2:55:43 PM UTC-5, Jonas Thörnvall wrote:
> >
> > My skills about events only reach to you create a listener, but in midi api it seem implicit? I am not familiar with target.
> >
> > But i see "in your code", that you seem to say there is three parts in the midiMessageEvent "that the midiAPI created, ...because i have not..."
> >
> > I have generated timestamps myself are you saying they are autogenerated together with the port and in the "autogenerated as part of a sent message with 3 parts"?
>
> According to the spec [1] MIDIMessageEvent has a data property. MIDIMessageEvent inherits from Event. Event has a target and a timeStamp property [2]. To quote:
>
> "An event object implementing this interface is passed to a MIDIInput's onmidimessage handler when MIDI messages are received. Note that the DOM Event timeStamp attribute is defined as a DOMHighResTimeStamp, and represents the high-resolution time of when the event was received or is to be sent."
>
>
> [1] <https://webaudio.github.io/web-midi-api/#MIDIMessageEvent>
> [2] <https://dom.spec.whatwg.org/#event>
var {data, timeStamp, target} = midiMessageEvent,
So in your line above data, timeStamp, target are reserved words or created vars for holding the "three attributes?" of object midiMessageEvent which you "extract/read out"? You could had called them ini, mini, moe it is not reserved words?
When you read out these object "attributes?" is the order of importance, or could it as well been.
var {target, timeStamp, data} = midiMessageEvent
is midiMessageEvent an event or an object "i can see it says event but...", i think the language of Javascript start to get overpopulated with unnecessary lingo that do not directly help.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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