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 › Online Sequencer Discussion
« Previous 1 … 4 5 6 7 8 … 78 Next »

MP3 to midi sound

Pages (2): 1 2 Next »
Thread tools
MP3 to midi sound
Mario5-300-000 Offline
Member
1 Posts:
 
#1
Question  10-02-2021, 02:43 PM
Does anyone know if I can convert stuff like mp3 into a midi key, of if it's even possible using this?


Hello! Smile This is my first signat- This signature has been eaten by an evil kumquat
Reply
Marysamat Offline
⭐⭐⭐⭐⭐⭐
268 Posts:
 
#2
10-02-2021, 02:48 PM
Copy this code into consol:

For going into consol, ctrl + f12

For getting f12, press fn button

In consol, delete code there by pressing ctrl + l

Then, paste code given to you with ctrl + v or right click and paste

To copy code, ctrl + c or right click and copy

For code, copy everything below this sentence:

loadInstrument(13);
var el = $('<input type="file" accept="audio/*">');
$(document.body).append(el);

el.on('change', function(e){
var reader = new FileReader();
reader.onload = function (e) {
var context = new AudioContext();
context.decodeAudioData(e.target.result, function(buffer){
var node = context.createAnalyser();
var resolution = 4;
node.fftSize = 4096;
node.smoothingTimeConstant = 0;
var bufferLength = node.frequencyBinCount;
var dataArray = new Uint8Array(bufferLength);
var audioSource = context.createBufferSource();
audioSource.buffer = buffer;
audioSource.loop = false;
audioSource.connect(node);
var time = 0;
audioSource.start(0);
setInterval(function(){
node.getByteFrequencyData(dataArray);
var f = [];
for (var i = 1; i < dataArray.length - 1; i++) {
var isPeak = dataArray[i] >= dataArray[i-1] && dataArray[i] >= dataArray[i+1];
if (isPeak) {
f.push([i, dataArray[i]]);
}
}
f.sort(function(a, b){return b[1] - a[1]});
for(var i = 0; i < Math.min(f.length, 4); i++) {
var frequency = f[i][0] * context.sampleRate / node.fftSize;
var note = piano[Math.round((piano.length*Math.log(2)+12*Math.log(55/frequency)+Math.log(4))/(Math.log(2)))];
if (note != undefined && f[i][1] > 32) {
song.addNote(new Note(song, note, time/resolution, 1/resolution, 13));
}
}
time++;
}, song.sleepTime/resolution);
setInterval(SequencerView.repaint, 1000);
});
}

reader.readAsArrayBuffer(e.target.files[0]);
});

el.click();


The greatest legacy on earth
  • x1
    • x1
    • value1
Reply
Firebolt391d Away
Can fly you to Hogwarts with great Music
510 Posts:
   
#3
10-02-2021, 02:48 PM (This post was last modified: 10-02-2021, 02:49 PM by Firebolt391d.)
Many users on OS have tried converting mp3s to midis and you can find their sequences. I have done a few. Generally they only work so well.

Yes, there are online converters for converting mp3 and other audio files to midis, but they are not magic. They only can do so well. They divide the spectrum of sounds that they detect up into 88 keys or 120 notes or however many notes midis use, and they convert all the sound into one instrument.

They are very simple algorithms, they cannot detect percussion or different instruments. They convert exactly the frequencies they detect into the exact notes that they are detecting. Because of this, most mp3-to-midi conversion outputs will have notes all over the place. What we hear to be a singer singing one distinct note, the algorithm will hear undertones and variations in the singer's voice and it will yield a more complex result.


Reply
sweetillusion Offline
Banned
5 Posts:
 
#4
02-07-2022, 09:16 AM
Sorry for interfering here, but why do you want to convert a good working format as MP3 to MIDI that nobody uses anymore? If I were you, I would rather upload your music to mp3juice.link and let people download it for free. This will skyrocket your popularity. Provided that your music is really good. It is all about mouth radio these days.


Reply
tbyunomi Offline
trapbeat349
1,363 Posts:
   
#5
02-07-2022, 09:17 AM
Just use a mp3 > midi converter but be cautious as some of these links may contain a virus, stay safe online

PS, dont listen to him above me, hes a bot


Reply
sweetillusion Offline
Banned
5 Posts:
 
#6
02-07-2022, 09:18 AM
(02-07-2022, 09:17 AM)trapbeat349 Wrote: Just use a mp3 > midi converter but be cautious as some of these links may  contain a virus, stay safe online

PS, dont listen to him above me, hes a bot
What makes you think I am a bot???


Reply
Instantly Meatified Offline
2 plus 2 is 4 minus 1 that's 3, quick maths
157 Posts:
   
#7
02-07-2022, 09:20 AM
wav to mid when


Reply
DarrelJohnson Offline
(Banned)
2,676 Posts:
   
#8
02-07-2022, 09:20 AM
(02-07-2022, 09:19 AM)trapbeat349 Wrote: My bad I just come across bots alot and the way this paragraph was written made me think you were a bot

Sorry

It is a robot


- my most popular sequence
Reply
tbyunomi Offline
trapbeat349
1,363 Posts:
   
#9
02-07-2022, 09:22 AM
Oh but they responded what


Reply
DarrelJohnson Offline
(Banned)
2,676 Posts:
   
#10
02-07-2022, 09:24 AM
(02-07-2022, 09:18 AM)sweetillusion Wrote:
(02-07-2022, 09:17 AM)trapbeat349 Wrote: Just use a mp3 > midi converter but be cautious as some of these links may  contain a virus, stay safe online

PS, dont listen to him above me, hes a bot
What makes you think I am a bot???

Explain yourself with OS chat.


- my most popular sequence
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