HNHacker News
TopNewBestAskShowJobs

errozero

925 karma · joined December 13, 2014

contact me: info at {my username} .co.uk
submissionscomments
errozero··on 303Gen – 303 acid loops generator
Hey, the scales are just an array of numbers like this

    ['Darkness', [0, 1, 3]],
    ['Darkness2', [0, 1]],
    ['Single', [3]],
    ['Locrian', [0, 1, 3, 5, 6, 8, 10]],
    ['Aeolian', [0, 2, 3, 5, 7, 8, 10]],
    ['Mixolydian', [0, 2, 4, 5, 7, 9, 10]],
    ...
A scale is randomly selected at the start and then notes are randomly selected from that scale in the pattern generation, plus the root note number is added to each one.

So if you had the 'Darkness' scale selected and had the root dropdown set to 0, the notes in this scale would be C, C#, D# which is 0, 1, 3 if you count the keys on a keyboard. If you changed the root to 2, then it would become D, D#, F (2, 3, 5).

Hope that makes sense.

errozero··on 303Gen – 303 acid loops generator
Update: The wav export feature now renders with all parameter changes, and I've fixed a bug that excluded the drone from the export.
errozero··on 303Gen – 303 acid loops generator
Update: wav export now added
errozero··on 303Gen – 303 acid loops generator
It now has a simple wav export feature. Details here: https://news.ycombinator.com/item?id=44824142
errozero··on 303Gen – 303 acid loops generator
I've just added a wav export feature. Currently it only exports with the knob positions as they are when the pattern first generates. You can choose how long the exported audio is.

It's a bit of a hack that re-opens the app in an iframe in the background using an offline audio context.

I'll come back to it at some point and make the export pick up the knob positions but I don't have time right now.

errozero··on 303Gen – 303 acid loops generator
Ah, I was wondering how it ended up posted here. Thanks!
errozero··on 303Gen – 303 acid loops generator
Currently, all you can do is save the url which contains all of the initial randomisation settings when a pattern generates. It doesn't update when moving sliders or anything, it's just the intial settings.

I'll look into adding a wav export feature.

errozero··on 303Gen – 303 acid loops generator
Thank you! It's been a few years so I can't remember exactly without reading through the code but it's something like this:

It uses notes from the selected scale and octave (from the dropdowns). If the pattern is of an even length, say 16, it will split it into 4 chunks of 4, then randomly decide if it should generate new data for the chunk or copy the previous chunk. It uses the repeat slider for the probability on this.

It randomly applies the 303 modifiers (up, down, accent, slide) using probability set with the sliders on the pattern tab.

There's also an 'empty' slider which sets the probablity of an empty note appearing in a chunk.

errozero··on 303Gen – 303 acid loops generator
I wish I could attend! I'm in the UK.
errozero··on 303Gen – 303 acid loops generator
I've just updated this to make it a little bit easier to use on a phone. The knobs are now a bit chunkier and should respond better to touch and the instruments sit vertically instead of horizontally.
errozero··on 303Gen – 303 acid loops generator
Hey, sure! I forgot it was limited to 130, it's been a few years! I've just updated it.
errozero··on 303Gen – 303 acid loops generator
No, but the timekeeping part of it is. I put that code into a small library to use in my music apps: https://github.com/errozero/beatstepper
errozero··on 303Gen – 303 acid loops generator
Hey, I made this a few years ago. I'm suprised to see it posted here today.

It was never finished and I was meaning to add a polyfill for the missing cancelAndHoldAtTime function for Firefox.

Edit: I've just hacked in a quick polyfill

errozero··on Ask HN: Tools or frameworks to build music theory games
I created this scheduler library which can be used to play a sequence of notes, create a metronome, drum machine etc. https://github.com/errozero/beatstepper
errozero··on Ask HN: What apps have you created for your own use?
Here's a couple of web audio things I have worked on and not really shared with anyone. They will both work best in Chrome.

https://303-gen-06a668.netlify.app - A tool to generate randomised 303 acid loops (Chrome only)

https://metronic-studio-0d0680.netlify.app - Unfinished web daw project started a few years ago

errozero··on So Long, Small Phones
Thanks, that's a cool device but I think maybe a bit too small to be useable.
errozero··on So Long, Small Phones
I have been searching for a new phone for months, looking for something small and with a headphone socket, it's literally impossible.
errozero··on A tale of two clocks – Scheduling Web Audio with precision
Hey, sure I'll try... if you mean usage of the library:

It runs your callback every 16th note, slightly before it is actually due to play, this can vary by a few milliseconds each time but that doesn't matter as the actual audio context start time for the note is passed in to the callback, and you use that to actually schedule the events for that 16th note, eg: osc.start(time).

You can schedule 32nd notes etc too by using the stepLength property that is also passed in, time + (stepLength/2) would be a 32nd note.

Hope that makes sense? I do need to write a better description on the github page of what it actually is.

The inner workings of the library itself are mostly just as described in the article with a few tweaks.

errozero··on A tale of two clocks – Scheduling Web Audio with precision
I made a library based on this article which I use as a starting point for all my music app projects. It's useful as the main timing code for things like drum machine and sequencers etc. https://github.com/errozero/beatstepper
errozero··on Wipeout (PSX and Windows Source)
Are there any model or texture files included? I can't seem to find any.
errozero··on Roland 50 Studio
ABL3 is out now too, it has a much better emulation.
errozero··on Mario Paint Masterpiece
Wow, I've just noticed that a song I hear all the time on SomaFM's groove salad station, is mostly made from that Mario Paint track! https://www.youtube.com/watch?v=e_PTaqmlC50
errozero··on WASM SYNTH, or, how music taught me the beauty of math
Because of the mapping of the typing keyboard to musical notes. F would represent E# which doesn't exist on a piano. H should work though. I found a pic that explains the keyboard layout better than I could:

https://sourceforge.net/p/vmpk/shared-keymaps-and-instrument...

errozero··on WASM SYNTH, or, how music taught me the beauty of math
Cool, I like the split keyboard feature. I've not really thought about a license tbh, I'll look into which one would be best and add a note about that. I don't really mind what anyone does with it so maybe MIT would be the one.
errozero··on WASM SYNTH, or, how music taught me the beauty of math
Thanks! :) Yeah the keyboard layout is based on the tracker style. I spent a lot of time with FastTracker 2.
errozero··on WASM SYNTH, or, how music taught me the beauty of math
I made a synth with web audio a few years ago using the built-in oscillator and filter nodes which are actually quite capable when combined.

Synth: http://www.errozero.co.uk/stuff/poly/ Source: https://github.com/errozero/poly-synth

Works best in chrome

errozero··on Ask HN: Show me your half baked project
A web based DAW type app for music production with instrument modules, piano roll etc.

https://errozero-metronic-studio-718699.netlify.app/

Click on the button with the piano icon at the top to test out the piano roll. You can play notes with the typing keyboard.

I got much further than this previously but decided to throw a lot of the code away and start again. I spent a load of time building a custom UI library before starting with things like draggable windows, linked scroll containers, dropdown menus etc.

errozero··on Let's Decode a VST
The file format used in the song files of Rebirth by proppelerhead is similar, they are based on the.iff format created by EA. Propellerhead released a document in the late 90s describing the format, I found a copy in this GitHub repo: https://github.com/nsauzede/jsynth/blob/master/RBS42.txt
errozero··on Ask HN: What projects are you working on now?
I'm rebuilding my Acid Machine web based synth + drum machine app using Vue instead of jQuery and handlebars as it is now. Adding some new features whilst i'm there and making it work on tablets.

I have also been working on a more feature complete web based daw type system but that's been on and off for years.

errozero··on The Making of Underrun – A WebGL Shooter in 13kb of JavaScript
Great idea! I will definitely be using that trick for my next js1k attempt. I have previously defined shorter names but had to write out the original name once.
Page 1 of 4Next →