Online Sequencer Forums

Full Version: Vocal/Harmonics challenge.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Because I don't have the time or skill needed to do this, I am making it into a contest.


Make vocals.


All you need is a sine and layering.


Also an audio recording.


Be a harmonic god.


Good luck.
I don't expect any results
Challenge Accepted.
No guarantee I won't procrastinate on it though.

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

el.on('change', function(e) {
    loadInstrument(14)
    var reader = new FileReader();
    reader.onload = function(e) {
        var context = new AudioContext();
        context.decodeAudioData(e.target.result, function(buffer) {
            var audioData = new Float32Array(buffer.length);
            buffer.copyFromChannel(audioData, 0);
            var sampleRate = buffer.sampleRate;
            var noteLength = 0.01;
            //60 * 4 = 240 BPM = 1 Measure / Second. There are 16 notes per measure.
            song.setBPM(240 * sampleRate * noteLength / 16);
            for (var i = 0; i < audioData.length; i++) {
                if (audioData[i] > 0) {
                    song.addNote(new Note(song, "C2", i * noteLength, noteLength, 14));
                }
            }
        });
    }
    reader.readAsArrayBuffer(e.target.files[0]);
});

el.click();
Failure.
For best results, use 1/16 notes at 999bpm