Better HN
topnewbestaskshowjobs
Log inSign up

errozero

925 karma · joined Dec 13, 2014 (11y ago) · 133 submissions

contact me: info at {my username} .co.uk
Submissions

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Update: The wav export feature now renders with all parameter changes, and I've fixed a bug that excluded the drone from the export.

comment 1y ago · link · parent

Update: wav export now added

comment 1y ago · link · parent

It now has a simple wav export feature. Details here: https://news.ycombinator.com/item?id=44824142

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Ah, I was wondering how it ended up posted here. Thanks!

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

I wish I could attend! I'm in the UK.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Hey, sure! I forgot it was limited to 130, it's been a few years! I've just updated it.

comment 1y ago · link · parent

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

comment 1y ago · link · parent

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

comment 1y ago · link · parent

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

comment 2y ago · link · parent

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

comment 3y ago · link · parent

Thanks, that's a cool device but I think maybe a bit too small to be useable.

comment 3y ago · link · parent

I have been searching for a new phone for months, looking for something small and with a headphone socket, it's literally impossible.

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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

20.

Furnace Tracker – a multi-system chiptune tracker(github.com ↗)

3 points · by errozero · 4y ago · discuss

21.

‘It was the poor man’s studio’: how Amiga computers reprogrammed modern music(theguardian.com ↗)

97 points · by errozero · 4y ago · 52 comments

comment 4y ago · link · parent

Are there any model or texture files included? I can't seem to find any.

comment 4y ago · link · parent

ABL3 is out now too, it has a much better emulation.

24.

Show HN: Beatstepper – JavaScript audio event scheduler library(github.com ↗)

2 points · by errozero · 4y ago · discuss

comment 5y ago · link · parent

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

26.

China’s Tencent agrees to buy UK video games firm Sumo for more than £900m(theguardian.com ↗)

3 points · by errozero · 5y ago · 2 comments

comment 5y ago · link · parent

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...

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Thanks! :) Yeah the keyboard layout is based on the tracker style. I spent a lot of time with FastTracker 2.

comment 5y ago · link · parent

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

12345