Online Sequencer Make music online
  • Sequences
  • Members
  • Chat
  • Forum
  • Wiki

Existing user? Sign In Create account
Login at Online Sequencer Forums

Online Sequencer Forums › Online Sequencer › Suggestions
« Previous 1 … 35 36 37 38 39 … 48 Next »

Convert Any Sequence to .ogg!

Pages (2): 1 2 Next »
Thread tools
Convert Any Sequence to .ogg!
Frank Offline
Grey Hat Script Kiddie who can Compose Music
388 Posts:
 
#1
01-04-2019, 11:08 AM (This post was last modified: 01-04-2019, 11:47 AM by Frank.)
Prototype:
Code:
var chunks = [];
var ac = window.audioSystem.audioContext;
var dest = ac.createMediaStreamDestination();
var mediaRecorder = new MediaRecorder(dest.stream);

//connect all the nodes
for (var i in window.audioSystem.gainNodes) {
   var gn = window.audioSystem.gainNodes[i];
    gn.connect(dest);
}

//start at song start
mediaRecorder.start();
window.song.play(0);

//stop at song end
function stop() {
    window.song.stop();
    mediaRecorder.stop();
}
setTimeout(stop, window.song.loopTime * 15000 / bpm);

mediaRecorder.ondataavailable = function(evt) {
   // push each chunk (blobs) in an array
   chunks.push(evt.data);
};
mediaRecorder.onstop = function(evt) {
   // Make blob out of our blobs, and open it.
   var blob = new Blob(chunks, {type: 'audio/ogg; codecs=opus'});
    document.write('<audio controls></audio>');
   document.querySelector("audio").src = URL.createObjectURL(blob);
};
Confirmed for Chrome above works. Jacob_ might want to add UI features to this though. Only works with .ogg, never mind what I said before.


Kim Wrote:##878337 + https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin
Reply
Kirbyderp Offline
kek
509 Posts:
 
#2
01-04-2019, 12:59 PM (This post was last modified: 01-04-2019, 01:02 PM by Kirbyderp.)
Huh, neat.

But yeah it still needs to also catch the reverb & delay.


My Music! | High Quality Rips | Road to Remastery | Project Ultra
Reply
Frank Offline
Grey Hat Script Kiddie who can Compose Music
388 Posts:
 
#3
01-04-2019, 07:20 PM
(01-04-2019, 12:59 PM)Kirbyderp Wrote: Huh, neat.

But yeah it still needs to also catch the reverb & delay.

Oof, it doesn't? For now it's Jacob_'s problem, but I may improve it if that is the case.


Kim Wrote:##878337 + https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin
Reply
Jacob_ Offline
Administrator
343 Posts:
 
#4
01-04-2019, 08:09 PM (This post was last modified: 01-04-2019, 08:09 PM by Jacob_.)
The individual channel nodes are connected to reverb/delay when those are active, so you'd have to consider that. https://onlinesequencer.net/app/audioSystem.js


Reply
EtherBot Offline
Hot Baby
67 Posts:
 
#5
05-09-2019, 12:32 AM
Tried it out but I'm getting an error.

Uncaught ReferenceError: mediaRecorder is not defined
at <anonymous>:1:1


Who invited them?
Reply
Frank Offline
Grey Hat Script Kiddie who can Compose Music
388 Posts:
 
#6
05-09-2019, 02:38 PM
(05-09-2019, 12:32 AM)EtherBot Wrote: Tried it out but I'm getting an error.

Uncaught ReferenceError: mediaRecorder is not defined
   at <anonymous>:1:1

Thanks for telling me the error message! Otherwise I would have guessed you were on Edge, because that browser doesn't support the API I used. However, this error message shows you are either on a different browser (unlikely reason based on error message), you found a weird edge case (likely), or you didn't paste the code correctly (also likely). To further debug this, can you give me steps to replicate this behavior?


Kim Wrote:##878337 + https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin
Reply
Alex_ Offline
The Boy Wonder
252 Posts:
 
#7
05-09-2019, 04:30 PM
If this is finished, could you implement it into the site Jacob_?


Reply
Frank Offline
Grey Hat Script Kiddie who can Compose Music
388 Posts:
 
#8
05-09-2019, 04:38 PM
(05-09-2019, 04:30 PM)Alex! Wrote: If this is finished, could you implement it into the site Jacob_?

Jacob_ has stated to me that this may be illegal (copyrighted soundfonts) and he doesn't want trouble. Sad


Kim Wrote:##878337 + https://js-game.glitch.me + Doesnt take peopel serious if their has badly speling gramer puntuatin
Reply
Lopyt   Away
(Banned)
2,721 Posts:
   
#9
07-23-2019, 11:41 AM
Fox used a thing where you could download the song from the browser using a url. This really helps, since on my phone ypu can't open sequences. If you know what the url is, that would be awesome.

The one bug with it is that with large songs (##1055367) it distorts the crap out of it


Reply
fox Offline
not a mod
400 Posts:
   
#10
11-02-2019, 12:18 PM (This post was last modified: 11-02-2019, 12:18 PM by fox.)
(07-23-2019, 11:41 AM)Sir_Guy Wrote: Fox used a thing where you could download the song from the browser using a url. This really helps, since on my phone ypu can't open sequences. If you know what the url is, that would be awesome.

The one bug with it is that with large songs (##1055367) it distorts the crap out of it
it's frank's website he made for Robo's sequence player. the url is https://midi-sled.glitch.me/ (you put the id of the sequence into the little box and then hit load)


Reply
Pages (2): 1 2 Next »



Users browsing this thread:   1 Guest(s)


  •  Return to Top
  •  Contact Us
  •   Home
  •  Lite mode
© Rush Crafted with ❤ by iAndrew
Powered By MyBB, © 2002-2025 MyBB Group.
Linear Mode
Threaded Mode
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend