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


Groups > comp.lang.javascript > #37233

Re: Howto rlelease the onmidimessage listener?

Newsgroups comp.lang.javascript
Date 2019-09-11 13:16 -0700
References <2ee6f8a1-220e-4618-899d-e82a30e2e3b4@googlegroups.com>
Message-ID <e666a2c3-48ef-48ea-b3b3-a8331c04e257@googlegroups.com> (permalink)
Subject Re: Howto rlelease the onmidimessage listener?
From Jonas Thörnvall <jonas.thornvall@gmail.com>

Show all headers | View raw


Den onsdag 11 september 2019 kl. 08:39:21 UTC+2 skrev Jonas Thörnvall:
> This is the most common way people show howto implement inport listeners, they just scroll thru all.
> 
>  for (input = inputs.next(); input && !input.done; input = inputs.next()) {
>         input.value.onmidimessage = onMIDIMessage;
>   }
> 
> I have searched for howto release the listener but can not find information about it. Do anyone here know?
> 
> So instead i had the idea to reinitiate the whole requestMIDIAccess, that i thought would release the whole midiObject unfortunately is just created a new instance running on top.
> 
> So can anyone show me to information "preferably web example" on howto either.
> 
> release onMIDIMessage listener
> 
> OR
> 
> release requestMIDIAccess object/promise "whatever it is"

Well i tried at midi association forum so far noone replied, if that mean it is not possible they do not know or it is just complicated i do not know.

So i fear the ugly solution with the inport checkboxes generated in a separate frame is at hand unless someone got an better idea. Because that way i can reload main and keep the checkboxes settings alive at least i hope so.

So any better suggestions?

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


Thread

Howto rlelease the onmidimessage listener? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-10 23:39 -0700
  Re: Howto rlelease the onmidimessage listener? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-10 23:51 -0700
    Re: Howto rlelease the onmidimessage listener? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-11 02:04 -0700
  Re: Howto rlelease the onmidimessage listener? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-11 02:34 -0700
  Re: Howto rlelease the onmidimessage listener? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-11 02:38 -0700
  Re: Howto rlelease the onmidimessage listener? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-11 13:16 -0700
    Re: Howto rlelease the onmidimessage listener? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-09-12 00:10 -0700

csiph-web