Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Bringing computers into the home won't change either one, but may revitalize the corner saloon.


devel / comp.lang.javascript / Uncaught TypeError: Failed to execute 'send' on 'MIDIOutput': Overload resolution failed. at recSomeNotes (MAINrecordMid.js:116)

SubjectAuthor
o Uncaught TypeError: Failed to execute 'send' on 'MIDIOutput':Jonas Thörnvall

1
Uncaught TypeError: Failed to execute 'send' on 'MIDIOutput': Overload resolution failed. at recSomeNotes (MAINrecordMid.js:116)

<32427620-cd32-4add-891d-5ce4c8b52627n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17402&group=comp.lang.javascript#17402

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:6214:f2e:: with SMTP id iw14mr880138qvb.21.1636567436327;
Wed, 10 Nov 2021 10:03:56 -0800 (PST)
X-Received: by 2002:aca:604:: with SMTP id 4mr14230181oig.8.1636567436043;
Wed, 10 Nov 2021 10:03:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Wed, 10 Nov 2021 10:03:55 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=84.217.164.86; posting-account=kxPkPAoAAACjJi8w0gL9bnyznPzdw9HW
NNTP-Posting-Host: 84.217.164.86
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <32427620-cd32-4add-891d-5ce4c8b52627n@googlegroups.com>
Subject: Uncaught TypeError: Failed to execute 'send' on 'MIDIOutput':
Overload resolution failed. at recSomeNotes (MAINrecordMid.js:116)
From: jonas.thornvall@gmail.com (Jonas Thörnvall)
Injection-Date: Wed, 10 Nov 2021 18:03:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 81
 by: Jonas Thörnvall - Wed, 10 Nov 2021 18:03 UTC

I have an initiation function for recording, it contains a setInterval call to a countIn function and also a setInterval that start after countIn, without doing the countIn it works flawlessly but as soon the count in "done before" starting recording it all fails with the error messages above. Why?

function recSomeNotes(){
//Recordings are stopped in DrawSCROLLBAR
REALTIME=performance.now()-browserLoadTIME;
while(REALTIME>schedTime){
outportarr[outportindex].send(noteMessage[playPos]);
if (echo && mode=="Play"){
pianoKeypressOut();
}
schedTime=copyEv[playPos]+schedTime;
playPos++;
}
}

function countIn(){
if (jint<8){
if (mvol==1 || mvol==noteval+1) { metvol=120; } else { metvol=50;}
if(SF2PLAY==false){
noteMessage = [153, 77, metvol];
outportarr[outportindex].send(noteMessage);
} else {
synth.NoteOn(153, 77, metvol);
synth.NoteOff(153,77);
}
ctT.fillStyle = "red";
ctT.fillRect(240+prog, 5, 10,10);
prog=prog+15;
jint++;
mvol++;
} else {
clearInterval(stopCount);
recScrollAnime();
browserLoadTIME=performance.now();
}
}

//CALLED WHEN REC PUSHED IN HTML DOCUMENT
function recINIT() {
console.log("recInit()"+activetrack);
mode="Record";
document.getElementById("keystream").value = "";
//If record mode replace remove notes within boundary
if (document.getElementById("recordmode").value == "REPLACE") {
console.log("REMOVING EVENTS");
removeTrackMessages(rectrack);
}
//Remember the active track, before change to temptrack for recording
savetrack=activetrack;
//Temptrack to record is 333 and "after cleanup" move the section into the realtrack.
rectrack=333;
track[rectrack].midiMess.length=0;
buildRecTrack(); //In mixdown
//Which device should playup metronome
metToUse();
drawnlines=0;
prog=0;//?????????
midEvent = 0;
waittime = 0;
myTime=waittime;
mode = "Record";
keepGoing = true;
recordmidi = true;
recProgMess();
recCCMess();
recUIupdate();
reshed=0;schedTime=0;playPos=0;oldPassedTime=0;
jint=0;mvol=1;
stopCount=setInterval(countIn,400);
if(SF2PLAY==false){
stopRec=setInterval(recSomeNotes,3200);
} else {

stopRec=setInterval(SF2RecSomeNotes,3200);
}
}


devel / comp.lang.javascript / Uncaught TypeError: Failed to execute 'send' on 'MIDIOutput': Overload resolution failed. at recSomeNotes (MAINrecordMid.js:116)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor