Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #36195 > unrolled thread
| Started by | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| First post | 2019-03-27 22:26 -0700 |
| Last post | 2019-03-29 10:32 -0700 |
| Articles | 20 on this page of 93 — 4 participants |
Back to article view | Back to comp.lang.javascript
Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-27 22:26 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 01:19 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 01:53 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 02:14 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-28 02:47 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 03:20 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-28 04:49 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:03 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:12 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:13 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:19 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:24 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:32 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:37 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:39 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-28 05:20 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:26 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 05:46 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 06:29 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 07:21 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 07:26 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 07:34 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 20:41 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 20:46 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 03:28 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-28 03:35 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-28 04:55 -0700
Re: Breaking up the HTML into logical blocks. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-29 09:11 +0100
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 02:14 -0700
Re: Breaking up the HTML into logical blocks. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-29 10:54 +0100
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 10:05 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 10:43 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 11:01 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 11:38 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:25 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:37 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 11:42 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:30 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 12:36 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:38 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:41 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 12:43 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:49 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:54 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 12:58 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 13:04 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 13:10 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 12:45 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 12:50 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 13:01 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 13:04 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 13:07 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 13:12 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 13:14 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 13:22 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 13:18 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 13:23 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 13:31 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-29 13:32 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 14:10 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 14:19 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 14:23 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 14:38 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 14:42 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 00:40 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-30 01:37 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 03:00 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 03:36 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-30 05:36 -0700
Re: Breaking up the HTML into logical blocks. dr.j.r.stockton@gmail.com - 2019-03-30 07:09 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 07:16 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 07:25 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 07:32 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 07:46 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 08:21 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-31 02:16 -0700
Re: Breaking up the HTML into logical blocks. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-31 11:26 +0200
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-31 07:07 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 07:26 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 00:51 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 01:21 -0700
Re: Breaking up the HTML into logical blocks. Julio Di Egidio <julio@diegidio.name> - 2019-03-30 01:31 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 02:34 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 02:46 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-30 02:58 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 02:22 -0700
Re: Breaking up the HTML into logical blocks. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-29 11:03 +0100
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 08:41 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 08:51 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 09:11 -0700
Re: Breaking up the HTML into logical blocks. "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-29 17:18 +0100
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 10:31 -0700
Re: Breaking up the HTML into logical blocks. Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-03-29 10:32 -0700
Page 4 of 5 — ← Prev page 1 2 3 [4] 5 Next page →
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-29 14:19 -0700 |
| Message-ID | <69ff8710-620b-43c6-bf87-648d9d8f4266@googlegroups.com> |
| In reply to | #36264 |
Den fredag 29 mars 2019 kl. 22:11:04 UTC+1 skrev Jonas Thörnvall:
> Den fredag 29 mars 2019 kl. 21:32:35 UTC+1 skrev Julio Di Egidio:
> > On Friday, 29 March 2019 21:23:43 UTC+1, Julio Di Egidio wrote:
> > > On Friday, 29 March 2019 21:19:06 UTC+1, Jonas Thörnvall wrote:
> > > > Den fredag 29 mars 2019 kl. 21:12:25 UTC+1 skrev Julio Di Egidio:
> > > > > On Friday, 29 March 2019 21:07:38 UTC+1, Jonas Thörnvall wrote:
> > > > > > Den fredag 29 mars 2019 kl. 21:04:16 UTC+1 skrev Julio Di Egidio:
> > > > >
> > > > > > > I did push all buttons including the porn ones:
> > > > > > > Uncaught TypeError all over the place.
> > > > > > >
> > > > > > > Have you ever managed to get any sound out of any code at all, even just
> > > > > > > in Chrome, Jonas, or you just a fucking spammer?
> > > > > >
> > > > > > I was thinking i have not actually tried it without my midikeyboard hooked
> > > > > > up....
> > > > > >
> > > > > > But midi should still be initiated or?
> > > > >
> > > > > Good, at least a plausible excuse.
> > > > >
> > > > > Send me your keyboard by email.
> > > >
> > > > Well you are correct Julio, i get this without a keyboard.
> > > >
> > > > Uncaught TypeError: Cannot read property 'send' of undefined
> > > > at sendProgram (UI.js:188)
> > > > at setTrack (UI.js:83)
> > > > at init (InitMAIN.js:36)
> > >
> > > That's utter bullshit, Jonas, and the final proof that you are not just a crank.
> > >
> > > Congratulations.
> >
> > No, I had read correctly initially, and this is plausible: that it (sort of)
> > works with your keyboard attached.
> >
> > Anyway you are just way too messy to get to the bottom of this thing.
> >
> > I'll try and say it for the last time, and it's an honest suggestion:
> >
> > Put together the shortest/simplest example that produces any sound at all.
> >
> > Will look forward to it...
> >
> > Julio
>
> Here it comes Julio three small files, save with the names
> BELOW index.html
> <frameset cols="50%,50%" >
> <frame src="synth.html" name="justloading">
> <frame src="" name="extSFsynth">
> </frameset>
>
> BELOW synth.html
> <HTML>
> <HEAD> <script src="synth.js"></script></HEAD>
> <button onclick='playNote(56,64)' onmouseout='stopNote(56)'>note 56</button>
> <BODY></BODY>
> </HTML>
>
> BELOW synth.js
>
> function Synth() {
> this.sy = null;
> this.Load = function(url) {
> this.sy = window.open(url, "extSFsynth", "width=700,height=700,scrollbars=yes,resizable=yes");
> }
> this.NoteOn = function(SFM,note, velo) {
> this.SendMessage(this.sy, "midi,"+SFM.toString(16)+"," + note.toString(16) + "," + velo.toString(16));
> }
> this.NoteOff = function(SFM,note) {
> this.SendMessage(this.sy, "midi,"+SFM.toString(16)+","+ note.toString(16) + ",0");
> }
> this.PGMchange = function(SFchan,SFprg) {
>
> console.log(SFchan.toString(16));
> this.SendMessage(this.sy, "midi,"+SFchan.toString(16)+","+SFprg.toString(16));
> }
> this.AllSoundOff = function() {
> this.SendMessage(this.sy, "midi,b0,78,0");
> }
> this.SendMessage = function(sy, s) {
> if(this.sy)
> this.sy.postMessage(s, "*");
> }
> }
>
> var synth = new Synth();
> synth.Load('http://imaya.github.io/demo/sf2.js/wml.html');
>
> function playNote(A,B){
> synth.NoteOn(144,A,B);
> }
>
> function stopNote(C){
> synth.NoteOff(128,C);
> }
I showed some code, but if you understand howto reach "parent" synth.html using an iframe inside it i really want to know. It should work with source js files.
If it is possible and you can show it would preven my "breaked out" HTML from looking like compressed trash. Iframes seems good unfortunately it seem it really doesn't work the way people would use it.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-29 14:23 -0700 |
| Message-ID | <25bd17fd-a196-4a25-94dc-ec52c9dcf65b@googlegroups.com> |
| In reply to | #36264 |
Den fredag 29 mars 2019 kl. 22:11:04 UTC+1 skrev Jonas Thörnvall:
> Den fredag 29 mars 2019 kl. 21:32:35 UTC+1 skrev Julio Di Egidio:
> > On Friday, 29 March 2019 21:23:43 UTC+1, Julio Di Egidio wrote:
> > > On Friday, 29 March 2019 21:19:06 UTC+1, Jonas Thörnvall wrote:
> > > > Den fredag 29 mars 2019 kl. 21:12:25 UTC+1 skrev Julio Di Egidio:
> > > > > On Friday, 29 March 2019 21:07:38 UTC+1, Jonas Thörnvall wrote:
> > > > > > Den fredag 29 mars 2019 kl. 21:04:16 UTC+1 skrev Julio Di Egidio:
> > > > >
> > > > > > > I did push all buttons including the porn ones:
> > > > > > > Uncaught TypeError all over the place.
> > > > > > >
> > > > > > > Have you ever managed to get any sound out of any code at all, even just
> > > > > > > in Chrome, Jonas, or you just a fucking spammer?
> > > > > >
> > > > > > I was thinking i have not actually tried it without my midikeyboard hooked
> > > > > > up....
> > > > > >
> > > > > > But midi should still be initiated or?
> > > > >
> > > > > Good, at least a plausible excuse.
> > > > >
> > > > > Send me your keyboard by email.
> > > >
> > > > Well you are correct Julio, i get this without a keyboard.
> > > >
> > > > Uncaught TypeError: Cannot read property 'send' of undefined
> > > > at sendProgram (UI.js:188)
> > > > at setTrack (UI.js:83)
> > > > at init (InitMAIN.js:36)
> > >
> > > That's utter bullshit, Jonas, and the final proof that you are not just a crank.
> > >
> > > Congratulations.
> >
> > No, I had read correctly initially, and this is plausible: that it (sort of)
> > works with your keyboard attached.
> >
> > Anyway you are just way too messy to get to the bottom of this thing.
> >
> > I'll try and say it for the last time, and it's an honest suggestion:
> >
> > Put together the shortest/simplest example that produces any sound at all.
> >
> > Will look forward to it...
> >
> > Julio
>
> Here it comes Julio three small files, save with the names
> BELOW index.html
> <frameset cols="50%,50%" >
> <frame src="synth.html" name="justloading">
> <frame src="" name="extSFsynth">
> </frameset>
>
> BELOW synth.html
> <HTML>
> <HEAD> <script src="synth.js"></script></HEAD>
> <button onclick='playNote(56,64)' onmouseout='stopNote(56)'>note 56</button>
> <BODY></BODY>
> </HTML>
>
> BELOW synth.js
>
> function Synth() {
> this.sy = null;
> this.Load = function(url) {
> this.sy = window.open(url, "extSFsynth", "width=700,height=700,scrollbars=yes,resizable=yes");
> }
> this.NoteOn = function(SFM,note, velo) {
> this.SendMessage(this.sy, "midi,"+SFM.toString(16)+"," + note.toString(16) + "," + velo.toString(16));
> }
> this.NoteOff = function(SFM,note) {
> this.SendMessage(this.sy, "midi,"+SFM.toString(16)+","+ note.toString(16) + ",0");
> }
> this.PGMchange = function(SFchan,SFprg) {
>
> console.log(SFchan.toString(16));
> this.SendMessage(this.sy, "midi,"+SFchan.toString(16)+","+SFprg.toString(16));
> }
> this.AllSoundOff = function() {
> this.SendMessage(this.sy, "midi,b0,78,0");
> }
> this.SendMessage = function(sy, s) {
> if(this.sy)
> this.sy.postMessage(s, "*");
> }
> }
>
> var synth = new Synth();
> synth.Load('http://imaya.github.io/demo/sf2.js/wml.html');
>
> function playNote(A,B){
> synth.NoteOn(144,A,B);
> }
>
> function stopNote(C){
> synth.NoteOff(128,C);
> }
Now that was not hard it is just interfacing a webaudio synth.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-29 14:38 -0700 |
| Message-ID | <0d5a1685-5da4-44ee-bc9d-d4206ff6e78d@googlegroups.com> |
| In reply to | #36264 |
Den fredag 29 mars 2019 kl. 22:11:04 UTC+1 skrev Jonas Thörnvall:
> Den fredag 29 mars 2019 kl. 21:32:35 UTC+1 skrev Julio Di Egidio:
> > On Friday, 29 March 2019 21:23:43 UTC+1, Julio Di Egidio wrote:
> > > On Friday, 29 March 2019 21:19:06 UTC+1, Jonas Thörnvall wrote:
> > > > Den fredag 29 mars 2019 kl. 21:12:25 UTC+1 skrev Julio Di Egidio:
> > > > > On Friday, 29 March 2019 21:07:38 UTC+1, Jonas Thörnvall wrote:
> > > > > > Den fredag 29 mars 2019 kl. 21:04:16 UTC+1 skrev Julio Di Egidio:
> > > > >
> > > > > > > I did push all buttons including the porn ones:
> > > > > > > Uncaught TypeError all over the place.
> > > > > > >
> > > > > > > Have you ever managed to get any sound out of any code at all, even just
> > > > > > > in Chrome, Jonas, or you just a fucking spammer?
> > > > > >
> > > > > > I was thinking i have not actually tried it without my midikeyboard hooked
> > > > > > up....
> > > > > >
> > > > > > But midi should still be initiated or?
> > > > >
> > > > > Good, at least a plausible excuse.
> > > > >
> > > > > Send me your keyboard by email.
> > > >
> > > > Well you are correct Julio, i get this without a keyboard.
> > > >
> > > > Uncaught TypeError: Cannot read property 'send' of undefined
> > > > at sendProgram (UI.js:188)
> > > > at setTrack (UI.js:83)
> > > > at init (InitMAIN.js:36)
> > >
> > > That's utter bullshit, Jonas, and the final proof that you are not just a crank.
> > >
> > > Congratulations.
> >
> > No, I had read correctly initially, and this is plausible: that it (sort of)
> > works with your keyboard attached.
> >
> > Anyway you are just way too messy to get to the bottom of this thing.
> >
> > I'll try and say it for the last time, and it's an honest suggestion:
> >
> > Put together the shortest/simplest example that produces any sound at all.
> >
> > Will look forward to it...
> >
> > Julio
>
> Here it comes Julio three small files, save with the names
> BELOW index.html
> <frameset cols="50%,50%" >
> <frame src="synth.html" name="justloading">
> <frame src="" name="extSFsynth">
> </frameset>
>
> BELOW synth.html
> <HTML>
> <HEAD> <script src="synth.js"></script></HEAD>
> <button onclick='playNote(56,64)' onmouseout='stopNote(56)'>note 56</button>
> <BODY></BODY>
> </HTML>
>
> BELOW synth.js
>
> function Synth() {
> this.sy = null;
> this.Load = function(url) {
> this.sy = window.open(url, "extSFsynth", "width=700,height=700,scrollbars=yes,resizable=yes");
> }
> this.NoteOn = function(SFM,note, velo) {
> this.SendMessage(this.sy, "midi,"+SFM.toString(16)+"," + note.toString(16) + "," + velo.toString(16));
> }
> this.NoteOff = function(SFM,note) {
> this.SendMessage(this.sy, "midi,"+SFM.toString(16)+","+ note.toString(16) + ",0");
> }
> this.PGMchange = function(SFchan,SFprg) {
>
> console.log(SFchan.toString(16));
> this.SendMessage(this.sy, "midi,"+SFchan.toString(16)+","+SFprg.toString(16));
> }
> this.AllSoundOff = function() {
> this.SendMessage(this.sy, "midi,b0,78,0");
> }
> this.SendMessage = function(sy, s) {
> if(this.sy)
> this.sy.postMessage(s, "*");
> }
> }
>
> var synth = new Synth();
> synth.Load('http://imaya.github.io/demo/sf2.js/wml.html');
>
> function playNote(A,B){
> synth.NoteOn(144,A,B);
> }
>
> function stopNote(C){
> synth.NoteOff(128,C);
> }
If you like to play around first parameter note on is midichannel, i think message structure 8-bit messages often 3
So first byte use 144-160 to set midichannel, second byte is notevalue, and third is volume.
You can send program messages to, probably the synth support pan, chorus, reverb, and most certainly banks. But i have not solved the messages or anything but notes,volume and selected program "sound"
But it you set first byte to 160 it will be midichannel 10 and that would be drums.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-29 14:42 -0700 |
| Message-ID | <7a499878-e61a-4f49-a6ca-410736f71f5a@googlegroups.com> |
| In reply to | #36264 |
Den fredag 29 mars 2019 kl. 22:11:04 UTC+1 skrev Jonas Thörnvall:
> Den fredag 29 mars 2019 kl. 21:32:35 UTC+1 skrev Julio Di Egidio:
> > On Friday, 29 March 2019 21:23:43 UTC+1, Julio Di Egidio wrote:
> > > On Friday, 29 March 2019 21:19:06 UTC+1, Jonas Thörnvall wrote:
> > > > Den fredag 29 mars 2019 kl. 21:12:25 UTC+1 skrev Julio Di Egidio:
> > > > > On Friday, 29 March 2019 21:07:38 UTC+1, Jonas Thörnvall wrote:
> > > > > > Den fredag 29 mars 2019 kl. 21:04:16 UTC+1 skrev Julio Di Egidio:
> > > > >
> > > > > > > I did push all buttons including the porn ones:
> > > > > > > Uncaught TypeError all over the place.
> > > > > > >
> > > > > > > Have you ever managed to get any sound out of any code at all, even just
> > > > > > > in Chrome, Jonas, or you just a fucking spammer?
> > > > > >
> > > > > > I was thinking i have not actually tried it without my midikeyboard hooked
> > > > > > up....
> > > > > >
> > > > > > But midi should still be initiated or?
> > > > >
> > > > > Good, at least a plausible excuse.
> > > > >
> > > > > Send me your keyboard by email.
> > > >
> > > > Well you are correct Julio, i get this without a keyboard.
> > > >
> > > > Uncaught TypeError: Cannot read property 'send' of undefined
> > > > at sendProgram (UI.js:188)
> > > > at setTrack (UI.js:83)
> > > > at init (InitMAIN.js:36)
> > >
> > > That's utter bullshit, Jonas, and the final proof that you are not just a crank.
> > >
> > > Congratulations.
> >
> > No, I had read correctly initially, and this is plausible: that it (sort of)
> > works with your keyboard attached.
> >
> > Anyway you are just way too messy to get to the bottom of this thing.
> >
> > I'll try and say it for the last time, and it's an honest suggestion:
> >
> > Put together the shortest/simplest example that produces any sound at all.
> >
> > Will look forward to it...
> >
> > Julio
>
> Here it comes Julio three small files, save with the names
> BELOW index.html
> <frameset cols="50%,50%" >
> <frame src="synth.html" name="justloading">
> <frame src="" name="extSFsynth">
> </frameset>
>
> BELOW synth.html
> <HTML>
> <HEAD> <script src="synth.js"></script></HEAD>
> <button onclick='playNote(56,64)' onmouseout='stopNote(56)'>note 56</button>
> <BODY></BODY>
> </HTML>
>
> BELOW synth.js
>
> function Synth() {
> this.sy = null;
> this.Load = function(url) {
> this.sy = window.open(url, "extSFsynth", "width=700,height=700,scrollbars=yes,resizable=yes");
> }
> this.NoteOn = function(SFM,note, velo) {
> this.SendMessage(this.sy, "midi,"+SFM.toString(16)+"," + note.toString(16) + "," + velo.toString(16));
> }
> this.NoteOff = function(SFM,note) {
> this.SendMessage(this.sy, "midi,"+SFM.toString(16)+","+ note.toString(16) + ",0");
> }
> this.PGMchange = function(SFchan,SFprg) {
>
> console.log(SFchan.toString(16));
> this.SendMessage(this.sy, "midi,"+SFchan.toString(16)+","+SFprg.toString(16));
> }
> this.AllSoundOff = function() {
> this.SendMessage(this.sy, "midi,b0,78,0");
> }
> this.SendMessage = function(sy, s) {
> if(this.sy)
> this.sy.postMessage(s, "*");
> }
> }
>
> var synth = new Synth();
> synth.Load('http://imaya.github.io/demo/sf2.js/wml.html');
>
> function playNote(A,B){
> synth.NoteOn(144,A,B);
> }
>
> function stopNote(C){
> synth.NoteOff(128,C);
> }
After this little demonstartion your object is now to take that button, move it to a new file maybe sub.html? that will be called from an iframe and try to make that push work from sub.html
That would be marvelous
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-30 00:40 -0700 |
| Message-ID | <1063872d-6882-4d28-92bc-4bd04df13b36@googlegroups.com> |
| In reply to | #36263 |
Den fredag 29 mars 2019 kl. 21:32:35 UTC+1 skrev Julio Di Egidio: > On Friday, 29 March 2019 21:23:43 UTC+1, Julio Di Egidio wrote: > > On Friday, 29 March 2019 21:19:06 UTC+1, Jonas Thörnvall wrote: > > > Den fredag 29 mars 2019 kl. 21:12:25 UTC+1 skrev Julio Di Egidio: > > > > On Friday, 29 March 2019 21:07:38 UTC+1, Jonas Thörnvall wrote: > > > > > Den fredag 29 mars 2019 kl. 21:04:16 UTC+1 skrev Julio Di Egidio: > > > > > > > > > > I did push all buttons including the porn ones: > > > > > > Uncaught TypeError all over the place. > > > > > > > > > > > > Have you ever managed to get any sound out of any code at all, even just > > > > > > in Chrome, Jonas, or you just a fucking spammer? > > > > > > > > > > I was thinking i have not actually tried it without my midikeyboard hooked > > > > > up.... > > > > > > > > > > But midi should still be initiated or? > > > > > > > > Good, at least a plausible excuse. > > > > > > > > Send me your keyboard by email. > > > > > > Well you are correct Julio, i get this without a keyboard. > > > > > > Uncaught TypeError: Cannot read property 'send' of undefined > > > at sendProgram (UI.js:188) > > > at setTrack (UI.js:83) > > > at init (InitMAIN.js:36) > > > > That's utter bullshit, Jonas, and the final proof that you are not just a crank. > > > > Congratulations. > > No, I had read correctly initially, and this is plausible: that it (sort of) > works with your keyboard attached. > > Anyway you are just way too messy to get to the bottom of this thing. > > I'll try and say it for the last time, and it's an honest suggestion: > > Put together the shortest/simplest example that produces any sound at all. > > Will look forward to it... > > Julio Ok, Julio i fixed the absent midikeyboard issue now you load page and play with keyboard and mouse "but not record or see keystrokes on canvas" using them. But you can test the recording and setting like metronome.
[toc] | [prev] | [next] | [standalone]
| From | Julio Di Egidio <julio@diegidio.name> |
|---|---|
| Date | 2019-03-30 01:37 -0700 |
| Message-ID | <aba3cfca-68f9-49af-9802-6bd03f65d8c4@googlegroups.com> |
| In reply to | #36269 |
On Saturday, 30 March 2019 08:40:51 UTC+1, Jonas Thörnvall wrote: > Ok, Julio i fixed the absent midikeyboard issue now you load page and play > with keyboard and mouse "but not record or see keystrokes on canvas" using > them. But you can test the recording and setting like metronome. Excellent, at least I get the sound now. It's still super ugly and super full of bugs, but nothing that cannot be improved... It should really be rewritten from scratch and properly, but of course I cannot do that (unless you hire me), nor I think you'd just want me to write the code for you, anyway. My little last suggestion for now is that you stop posting kilometres of ramble and ask little, specific, cut-down, carefully focused questions... I'll play with the snippets you have posted earlier though: I'll see if I can make that slightly cleaner... Julio
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-30 03:00 -0700 |
| Message-ID | <83b43888-4dcd-41a3-8986-945dabc1c18d@googlegroups.com> |
| In reply to | #36273 |
Den lördag 30 mars 2019 kl. 09:37:15 UTC+1 skrev Julio Di Egidio: > On Saturday, 30 March 2019 08:40:51 UTC+1, Jonas Thörnvall wrote: > > > Ok, Julio i fixed the absent midikeyboard issue now you load page and play > > with keyboard and mouse "but not record or see keystrokes on canvas" using > > them. But you can test the recording and setting like metronome. > > Excellent, at least I get the sound now. > > It's still super ugly and super full of bugs, but nothing that cannot be > improved... > > It should really be rewritten from scratch and properly, but of course I > cannot do that (unless you hire me), nor I think you'd just want me to > write the code for you, anyway. > > My little last suggestion for now is that you stop posting kilometres of > ramble and ask little, specific, cut-down, carefully focused questions... > > I'll play with the snippets you have posted earlier though: I'll see if I > can make that slightly cleaner... > > Julio Do not worry Julio thus far you have not written a single line of code that make sense, and not answered any question.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-30 03:36 -0700 |
| Message-ID | <0d68e6f9-5806-4883-a61e-d65c3f6f840c@googlegroups.com> |
| In reply to | #36277 |
Den lördag 30 mars 2019 kl. 11:00:30 UTC+1 skrev Jonas Thörnvall: > Den lördag 30 mars 2019 kl. 09:37:15 UTC+1 skrev Julio Di Egidio: > > On Saturday, 30 March 2019 08:40:51 UTC+1, Jonas Thörnvall wrote: > > > > > Ok, Julio i fixed the absent midikeyboard issue now you load page and play > > > with keyboard and mouse "but not record or see keystrokes on canvas" using > > > them. But you can test the recording and setting like metronome. > > > > Excellent, at least I get the sound now. > > > > It's still super ugly and super full of bugs, but nothing that cannot be > > improved... > > > > It should really be rewritten from scratch and properly, but of course I > > cannot do that (unless you hire me), nor I think you'd just want me to > > write the code for you, anyway. > > > > My little last suggestion for now is that you stop posting kilometres of > > ramble and ask little, specific, cut-down, carefully focused questions... > > > > I'll play with the snippets you have posted earlier though: I'll see if I > > can make that slightly cleaner... > > > > Julio > > Do not worry Julio thus far you have not written a single line of code that make sense, and not answered any question. I mean unless i somehow invoke my function call in wrong way it should be a nobrainer that is should work, otherwise they can skip iframe because noone going to use it. No i do not want to simulate that my code is on another server to make iframe work.... It is so fucking idiotic that you can think the whole W3C board is deranged.
[toc] | [prev] | [next] | [standalone]
| From | Julio Di Egidio <julio@diegidio.name> |
|---|---|
| Date | 2019-03-30 05:36 -0700 |
| Message-ID | <8aa365af-4970-44fd-8bc3-1834ea1e11d5@googlegroups.com> |
| In reply to | #36278 |
On Saturday, 30 March 2019 11:36:39 UTC+1, Jonas Thörnvall wrote: <more drivel deleted> OK, I am quite convinced at this point that you are a plain fucking troll: your utter ineptitude and the reiterated provocations just do not square with you solving the nontrivial problem upthread with the synth so quickly. *Troll alert* Julio
[toc] | [prev] | [next] | [standalone]
| From | dr.j.r.stockton@gmail.com |
|---|---|
| Date | 2019-03-30 07:09 -0700 |
| Message-ID | <516f3347-9b58-4b25-b06f-c6c065402767@googlegroups.com> |
| In reply to | #36279 |
On Saturday, 30 March 2019 12:36:22 UTC, Julio Di Egidio wrote: > On Saturday, 30 March 2019 11:36:39 UTC+1, Jonas Thörnvall wrote: > > <more drivel deleted> > *Troll alert* <https://www.google.com/search?client=firefox-b-d&q=%22For+all+you+know%2C+he+may+be+doing+the+same%22> -- (c) John Stockton, near London, UK. Using Google Groups. | Mail: J.R.""""""""@physics.org - or as Reply-To, if any. |
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-30 07:16 -0700 |
| Message-ID | <c08484a0-afce-49c1-a91c-e557afcd8367@googlegroups.com> |
| In reply to | #36279 |
Den lördag 30 mars 2019 kl. 13:36:22 UTC+1 skrev Julio Di Egidio:
> On Saturday, 30 March 2019 11:36:39 UTC+1, Jonas Thörnvall wrote:
>
> <more drivel deleted>
>
> OK, I am quite convinced at this point that you are a plain fucking troll:
> your utter ineptitude and the reiterated provocations just do not square
> with you solving the nontrivial problem upthread with the synth so quickly.
>
> *Troll alert*
>
> Julio
I do not get you Julio, you claim you that iframe work not me, i can not get to work. You ask me to make a minimal example showing it not works. I make one and you get pissed off because it doesn't work?
Try it!!! "IT DOES NOT WORK" iframe is useless from what i can see.
But maybe my syntax is wrong "SO WHY!!!"
Index.html
<frameset cols="50%,50%" >
<frame src="synth.html" name="justloading">
<frame src="" name="extSFsynth">
</frameset>
Synth.html
<HTML>
<HEAD> <script src="synth.js"></script></HEAD>
<BODY>
<table border=1 height=200 width=200><tr><td>
<iframe src="sub.html" width=200 height=200 scrolling="no" frameborder="0" >
</td></tr></table>
</BODY>
</HTML>
sub.html
<HTML>
<BODY>
<button onclick='playNote(56,64)' onmouseout='stopNote(56)'>note 56</button>
</BODY>
</HTML>
synth.js
//NOTE ON Channel 90-9F
//NOTE OFF Channel 80-8F
function Synth() {
this.sy = null;
this.Load = function(url) {
this.sy = window.open(url, "extSFsynth", "width=700,height=700,scrollbars=yes,resizable=yes");
}
this.NoteOn = function(SFM,note, velo) {
this.SendMessage(this.sy, "midi,"+SFM.toString(16)+"," + note.toString(16) + "," + velo.toString(16));
}
this.NoteOff = function(SFM,note) {
this.SendMessage(this.sy, "midi,"+SFM.toString(16)+","+ note.toString(16) + ",0");
}
this.PGMchange = function(SFchan,SFprg) {
console.log(SFchan.toString(16));
this.SendMessage(this.sy, "midi,"+SFchan.toString(16)+","+SFprg.toString(16));
}
this.AllSoundOff = function() {
this.SendMessage(this.sy, "midi,b0,78,0");
}
this.SendMessage = function(sy, s) {
if(this.sy)
this.sy.postMessage(s, "*");
}
}
var synth = new Synth();
synth.Load('http://imaya.github.io/demo/sf2.js/wml.html');
function playNote(A,B){
synth.NoteOn(144,A,B);
}
function stopNote(C){
synth.NoteOff(128,C);
}
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-30 07:25 -0700 |
| Message-ID | <3753ab41-8a58-40a1-b1f5-3399e4c61786@googlegroups.com> |
| In reply to | #36279 |
Den lördag 30 mars 2019 kl. 13:36:22 UTC+1 skrev Julio Di Egidio:
> On Saturday, 30 March 2019 11:36:39 UTC+1, Jonas Thörnvall wrote:
>
> <more drivel deleted>
>
> OK, I am quite convinced at this point that you are a plain fucking troll:
> your utter ineptitude and the reiterated provocations just do not square
> with you solving the nontrivial problem upthread with the synth so quickly.
>
> *Troll alert*
>
> Julio
Sorry but i fucking forgot to write out parent, but with parent this is the error message you get.
sub.html:3 Uncaught DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame.
at HTMLButtonElement.onclick (file:///C:/Users/jonas/Desktop/New%20folder/sub.html:3:82)
But the function calls ***IS TO THE PARENT FRAME*** do you see what i mean there is no crossreference. You just run the code yourself ***WITHOUT*** iframes.
It is the iframe that stop the code from work *WHY??????????" i still call my own function.
***DO YOU SEE WHAT I MEAN*** there should be no difference accessing the frame.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-30 07:32 -0700 |
| Message-ID | <5457b894-b6d7-4986-a343-c0af4842986d@googlegroups.com> |
| In reply to | #36282 |
Den lördag 30 mars 2019 kl. 15:25:28 UTC+1 skrev Jonas Thörnvall: > Den lördag 30 mars 2019 kl. 13:36:22 UTC+1 skrev Julio Di Egidio: > > On Saturday, 30 March 2019 11:36:39 UTC+1, Jonas Thörnvall wrote: > > > > <more drivel deleted> > > > > OK, I am quite convinced at this point that you are a plain fucking troll: > > your utter ineptitude and the reiterated provocations just do not square > > with you solving the nontrivial problem upthread with the synth so quickly. > > > > *Troll alert* > > > > Julio > > Sorry but i fucking forgot to write out parent, but with parent this is the error message you get. > > sub.html:3 Uncaught DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame. > at HTMLButtonElement.onclick (file:///C:/Users/jonas/Desktop/New%20folder/sub.html:3:82) > > But the function calls ***IS TO THE PARENT FRAME*** do you see what i mean there is no crossreference. You just run the code yourself ***WITHOUT*** iframes. > > It is the iframe that stop the code from work *WHY??????????" i still call my own function. > > ***DO YOU SEE WHAT I MEAN*** there should be no difference accessing the frame. Can you just tell me why i can access the frame holding the synth from my parent page but not from the iframe in parent page. I have come to understand now that this is not possible, "yes it is idiotic" but i want to know why i can reach it from parent but not from the iframe in parent. Fucking you are the semiprofessionals understanding the weird syntax not me.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-30 07:46 -0700 |
| Message-ID | <43049cc5-d100-408f-a294-1a615595a0f2@googlegroups.com> |
| In reply to | #36284 |
Den lördag 30 mars 2019 kl. 15:32:46 UTC+1 skrev Jonas Thörnvall: > Den lördag 30 mars 2019 kl. 15:25:28 UTC+1 skrev Jonas Thörnvall: > > Den lördag 30 mars 2019 kl. 13:36:22 UTC+1 skrev Julio Di Egidio: > > > On Saturday, 30 March 2019 11:36:39 UTC+1, Jonas Thörnvall wrote: > > > > > > <more drivel deleted> > > > > > > OK, I am quite convinced at this point that you are a plain fucking troll: > > > your utter ineptitude and the reiterated provocations just do not square > > > with you solving the nontrivial problem upthread with the synth so quickly. > > > > > > *Troll alert* > > > > > > Julio > > > > Sorry but i fucking forgot to write out parent, but with parent this is the error message you get. > > > > sub.html:3 Uncaught DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame. > > at HTMLButtonElement.onclick (file:///C:/Users/jonas/Desktop/New%20folder/sub.html:3:82) > > > > But the function calls ***IS TO THE PARENT FRAME*** do you see what i mean there is no crossreference. You just run the code yourself ***WITHOUT*** iframes. > > > > It is the iframe that stop the code from work *WHY??????????" i still call my own function. > > > > ***DO YOU SEE WHAT I MEAN*** there should be no difference accessing the frame. > > Can you just tell me why i can access the frame holding the synth from my parent page but not from the iframe in parent page. I have come to understand now that this is not possible, "yes it is idiotic" but i want to know why i can reach it from parent but not from the iframe in parent. > > Fucking you are the semiprofessionals understanding the weird syntax not me. Well i now see you are just as clueless as me i throw the shit into main.html block and make a gigantic html file. ****BUT THIS IS WHAT YOU GET WHEN THE BOARD HIRE MORONS TO IMPLEMENT THE SHIT IDEAS THEY GET****
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-30 08:21 -0700 |
| Message-ID | <3cd9f2b1-25bd-4566-920c-d823e8d044f6@googlegroups.com> |
| In reply to | #36285 |
Den lördag 30 mars 2019 kl. 15:46:16 UTC+1 skrev Jonas Thörnvall: > Den lördag 30 mars 2019 kl. 15:32:46 UTC+1 skrev Jonas Thörnvall: > > Den lördag 30 mars 2019 kl. 15:25:28 UTC+1 skrev Jonas Thörnvall: > > > Den lördag 30 mars 2019 kl. 13:36:22 UTC+1 skrev Julio Di Egidio: > > > > On Saturday, 30 March 2019 11:36:39 UTC+1, Jonas Thörnvall wrote: > > > > > > > > <more drivel deleted> > > > > > > > > OK, I am quite convinced at this point that you are a plain fucking troll: > > > > your utter ineptitude and the reiterated provocations just do not square > > > > with you solving the nontrivial problem upthread with the synth so quickly. > > > > > > > > *Troll alert* > > > > > > > > Julio > > > > > > Sorry but i fucking forgot to write out parent, but with parent this is the error message you get. > > > > > > sub.html:3 Uncaught DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame. > > > at HTMLButtonElement.onclick (file:///C:/Users/jonas/Desktop/New%20folder/sub.html:3:82) > > > > > > But the function calls ***IS TO THE PARENT FRAME*** do you see what i mean there is no crossreference. You just run the code yourself ***WITHOUT*** iframes. > > > > > > It is the iframe that stop the code from work *WHY??????????" i still call my own function. > > > > > > ***DO YOU SEE WHAT I MEAN*** there should be no difference accessing the frame. > > > > Can you just tell me why i can access the frame holding the synth from my parent page but not from the iframe in parent page. I have come to understand now that this is not possible, "yes it is idiotic" but i want to know why i can reach it from parent but not from the iframe in parent. > > > > Fucking you are the semiprofessionals understanding the weird syntax not me. > > Well i now see you are just as clueless as me i throw the shit into main.html block and make a gigantic html file. > > ****BUT THIS IS WHAT YOU GET WHEN THE BOARD HIRE MORONS TO IMPLEMENT THE SHIT IDEAS THEY GET**** I just got tired on the shitty syntax and moved the iframe html back to main html document so no mouse and keyboard work in drummachine, because whatever the problem ***with the iframe implementation*** is i do not think it fixable "at least not in a way that make sense". I am back to programming, not fiddle with a syntax that is broken.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-31 02:16 -0700 |
| Message-ID | <6fd5b6e8-98b7-4e13-9e18-026c9179d697@googlegroups.com> |
| In reply to | #36282 |
Den lördag 30 mars 2019 kl. 15:25:28 UTC+1 skrev Jonas Thörnvall: > Den lördag 30 mars 2019 kl. 13:36:22 UTC+1 skrev Julio Di Egidio: > > On Saturday, 30 March 2019 11:36:39 UTC+1, Jonas Thörnvall wrote: > > > > <more drivel deleted> > > > > OK, I am quite convinced at this point that you are a plain fucking troll: > > your utter ineptitude and the reiterated provocations just do not square > > with you solving the nontrivial problem upthread with the synth so quickly. > > > > *Troll alert* > > > > Julio > > Sorry but i fucking forgot to write out parent, but with parent this is the error message you get. > > sub.html:3 Uncaught DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame. > at HTMLButtonElement.onclick (file:///C:/Users/jonas/Desktop/New%20folder/sub.html:3:82) > > But the function calls ***IS TO THE PARENT FRAME*** do you see what i mean there is no crossreference. You just run the code yourself ***WITHOUT*** iframes. > > It is the iframe that stop the code from work *WHY??????????" i still call my own function. > > ***DO YOU SEE WHAT I MEAN*** there should be no difference accessing the frame. Here is the logical conundrum. A=IFRAME B=HTML FRAME C=SYNTH FRAME B ACCESS C EQUAL TRUE A ACCESS B EQUAL TRUE A ACCESS B ACCESS C FALSE Why is it false the call between B AND C is identical, it is only that it is invoked from an IFRAME "A" using parent.onClick() parent.onMouseOut instead of onClick() and onMouseOut()? ***IT DOES NOT MAKE SENSE***
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2019-03-31 11:26 +0200 |
| Message-ID | <XnsAA237459ADB4Feejj99@194.109.6.166> |
| In reply to | #36287 |
=?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall@gmail.com> wrote on 31 Mar 2019 in comp.lang.javascript: > Here is the logical conundrum. > A=IFRAME > B=HTML FRAME > C=SYNTH FRAME > > B ACCESS C EQUAL TRUE > A ACCESS B EQUAL TRUE > A ACCESS B ACCESS C FALSE > > Why is it false the call between B AND C is identical, it is only that > it is invoked from an IFRAME "A" using parent.onClick() > parent.onMouseOut instead of onClick() and onMouseOut()? > > ***IT DOES NOT MAKE SENSE*** YOU are right, YOU are not. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-31 07:07 -0700 |
| Message-ID | <a9524959-6158-4767-9ac8-169705ad2fee@googlegroups.com> |
| In reply to | #36288 |
Den söndag 31 mars 2019 kl. 11:45:06 UTC+2 skrev Evertjan.:
> =?UTF-8?Q?Jonas_Th=C3=B6rnvall?= <jonas.thornvall@gmail.com> wrote on 31
> Mar 2019 in comp.lang.javascript:
>
> > Here is the logical conundrum.
> > A=IFRAME
> > B=HTML FRAME
> > C=SYNTH FRAME
> >
> > B ACCESS C EQUAL TRUE
> > A ACCESS B EQUAL TRUE
> > A ACCESS B ACCESS C FALSE
> >
> > Why is it false the call between B AND C is identical, it is only that
> > it is invoked from an IFRAME "A" using parent.onClick()
> > parent.onMouseOut instead of onClick() and onMouseOut()?
> >
> > ***IT DOES NOT MAKE SENSE***
>
> YOU are right, YOU are not.
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)
Index.html
<frameset cols="50%,50%" >
<frame src="synth.html" name="justloading">
<frame src="" name="extSFsynth">
</frameset>
Synth.html
<HTML>
<HEAD> <script src="synth.js"></script></HEAD>
<BODY>
<table border=1 height=200 width=200><tr><td>
<iframe src="sub.html" width=200 height=200 scrolling="no" frameborder="0" >
</td></tr></table>
</BODY>
</HTML>
sub.html
<HTML>
<BODY>
<button onclick='playNote(56,64)' onmouseout='stopNote(56)'>note 56</button>
</BODY>
</HTML>
synth.js
//NOTE ON Channel 90-9F
//NOTE OFF Channel 80-8F
– dölj citerad text –
function Synth() {
this.sy = null;
this.Load = function(url) {
this.sy = window.open(url, "extSFsynth", "width=700,height=700,scrollbars=yes,resizable=yes");
}
this.NoteOn = function(SFM,note, velo) {
this.SendMessage(this.sy, "midi,"+SFM.toString(16)+"," + note.toString(16) + "," + velo.toString(16));
}
this.NoteOff = function(SFM,note) {
this.SendMessage(this.sy, "midi,"+SFM.toString(16)+","+ note.toString(16) + ",0");
}
this.PGMchange = function(SFchan,SFprg) {
console.log(SFchan.toString(16));
this.SendMessage(this.sy, "midi,"+SFchan.toString(16)+","+SFprg.toString(16));
}
this.AllSoundOff = function() {
this.SendMessage(this.sy, "midi,b0,78,0");
}
this.SendMessage = function(sy, s) {
if(this.sy)
this.sy.postMessage(s, "*");
}
}
var synth = new Synth();
synth.Load('http://imaya.github.io/demo/sf2.js/wml.html');
function playNote(A,B){
synth.NoteOn(144,A,B);
}
function stopNote(C){
synth.NoteOff(128,C);
}
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-30 07:26 -0700 |
| Message-ID | <20325343-97fa-4c92-9a36-f18eab25d176@googlegroups.com> |
| In reply to | #36279 |
Den lördag 30 mars 2019 kl. 13:36:22 UTC+1 skrev Julio Di Egidio: > On Saturday, 30 March 2019 11:36:39 UTC+1, Jonas Thörnvall wrote: > > <more drivel deleted> > > OK, I am quite convinced at this point that you are a plain fucking troll: > your utter ineptitude and the reiterated provocations just do not square > with you solving the nontrivial problem upthread with the synth so quickly. > > *Troll alert* > > Julio But this is what you get when idiots do not understand what they implement.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2019-03-30 00:51 -0700 |
| Message-ID | <dcdceb72-6a2a-4ac0-a54a-ce0b4ecf211d@googlegroups.com> |
| In reply to | #36263 |
Den fredag 29 mars 2019 kl. 21:32:35 UTC+1 skrev Julio Di Egidio: > On Friday, 29 March 2019 21:23:43 UTC+1, Julio Di Egidio wrote: > > On Friday, 29 March 2019 21:19:06 UTC+1, Jonas Thörnvall wrote: > > > Den fredag 29 mars 2019 kl. 21:12:25 UTC+1 skrev Julio Di Egidio: > > > > On Friday, 29 March 2019 21:07:38 UTC+1, Jonas Thörnvall wrote: > > > > > Den fredag 29 mars 2019 kl. 21:04:16 UTC+1 skrev Julio Di Egidio: > > > > > > > > > > I did push all buttons including the porn ones: > > > > > > Uncaught TypeError all over the place. > > > > > > > > > > > > Have you ever managed to get any sound out of any code at all, even just > > > > > > in Chrome, Jonas, or you just a fucking spammer? > > > > > > > > > > I was thinking i have not actually tried it without my midikeyboard hooked > > > > > up.... > > > > > > > > > > But midi should still be initiated or? > > > > > > > > Good, at least a plausible excuse. > > > > > > > > Send me your keyboard by email. > > > > > > Well you are correct Julio, i get this without a keyboard. > > > > > > Uncaught TypeError: Cannot read property 'send' of undefined > > > at sendProgram (UI.js:188) > > > at setTrack (UI.js:83) > > > at init (InitMAIN.js:36) > > > > That's utter bullshit, Jonas, and the final proof that you are not just a crank. > > > > Congratulations. > > No, I had read correctly initially, and this is plausible: that it (sort of) > works with your keyboard attached. > > Anyway you are just way too messy to get to the bottom of this thing. > > I'll try and say it for the last time, and it's an honest suggestion: > > Put together the shortest/simplest example that produces any sound at all. > > Will look forward to it... > > Julio So you have a solution to howto call out from iframe, to the source scripts in main HTMl?
[toc] | [prev] | [next] | [standalone]
Page 4 of 5 — ← Prev page 1 2 3 [4] 5 Next page →
Back to top | Article view | comp.lang.javascript
csiph-web