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 9y ago · link · parent

This is what I am using for the square wave: https://github.com/errozero/js-303-instrument/blob/master/30...

I can't remember how I found these numbers or what I googled to come across them.

comment 9y ago · link · parent

Haha, sorry about that. I think your preview sounds a lot better than my version and the code is impressive. I need to make a few changes to my app, one of the main ones is the fact that you cant adjust the cutoff whilst the envelope is in progress but I have recently come across this technique which I am going to implement: http://stackoverflow.com/questions/30019666/web-audio-synthe...

My Acid Machine app has been built in a way so that all of the instruments are self contained modules, you could possibly create an instrument that would be compatible with the whole UI and step sequencer etc of my app quite easily.

comment 9y ago · link · parent

Here is the code for my Javascript 303 emulation: https://github.com/errozero/js-303-instrument/blob/master/ac...

It definitely needs some improvement.

Try it out live here: http://errozero.co.uk/acid-machine/

comment 9y ago · link · parent

Your Javascript 303 sounds really good! Are you planning to turn it into a full web app?

65.

Mubert – Algorithmic music generator(play.mubert.com ↗)

1 points · by errozero · 9y ago · discuss

comment 9y ago · link · parent

I have added a randomize feature to the Acid Machine web app. It works by chopping up the pattern into blocks, then goes through the steps in the block and selects a random note (or silence) from the currently selected scale.

Then it moves to the next block and randomly decides whether to re-use the previous block or create a new one. This stops it from sounding completely random in a bad way.

Selecting the Arabic scale creates some interesting patterns.

http://www.errozero.co.uk/acid-machine

comment 9y ago · link · parent

FL Studio has some really good randomize options with lots of different settings built into the piano roll.

comment 9y ago · link · parent

I released the new version of my Acid Machine synth + drum machine web-app just under a month ago. It has made about £200 in the last month.

The web-based version is like a demo, it's free to use but saving and importing is disabled. I'm selling a downloadable desktop app version which has the restrictions removed.

I'm thinking of making it completely free and maybe selling ad-space on there instead.

http://www.errozero.co.uk/acid-machine

comment 10y ago · link · parent

If it was done inside a canvas it would be possible to save it. The effects would not be as simple to create though.

comment 10y ago · link · parent

Code on GitHub: https://github.com/errozero/midi-pong

comment 10y ago · link · parent

Not a great version of Pong, just a demo of using a MIDI controller to play a game really. Only works in Chrome and you'll need a MIDI controller connected before starting Chrome.

72.

Show HN: MIDI Pong – Play Pong with a MIDI Controller(errozero.co.uk ↗)

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

comment 10y ago · link · parent

I meant that it checks the point you clicked on the Y-axis only, then checks where on the Y-axis the mouse has moved to. I did it this way as it is how almost all music programs and vst etc do it.

comment 10y ago · link · parent

Hey HN, this is something I have been working on for most of this year. It started out as a more fully featured web-based daw that would have lots of different instruments with its own plugin format. I got quite far into the project and built a very modular system so it is easy to create more instruments by just dropping in a js file and a view file for the visuals.

It was taking longer than I thought so I decided to create a V2 of my old Acid Machine app using this code as a base.

It's great to see people talking about it after being hidden away on my laptop for so long. If anyone has any technical questions, I would love to answer them. Also.. I am on the lookout for some freelance work at the moment.

comment 10y ago · link · parent

Now I'm really trying to think of ways that could be done in a fast way. Any ideas?

The instruments in Acid Machine 2 are built in a modular way, kind of like a basic vst plugin. This is because I started out trying to make a more fully featured web daw. It would be possible to add in more instruments in the future.

comment 10y ago · link · parent

My mixer channels are a gain node (for input), followed by 2 gain nodes - which are used as fx slots and replaced when an effect is added, the last fx slot connects to another gain node (for channel output) - that then connects to the mixer master gain node.

You could have it as simple as 1 gain node for each channel which you use for input and output to the mixer master gain. This would make it difficult to add fx later though.

comment 10y ago · link · parent

In Acid Machine, I have created a kind of virtual 4 channel mixer, that is the only thing that connects directly to the main destination output. All osc nodes that are generated by an instrument get connected to the instruments master gain node, then that connects to one of the mixer channels. All mixer channels then connect to a master mixer gain, then the output.

If you do it that way, you just need to attach the recorder to the master output of the mixer.

comment 10y ago · link · parent

Nice, I like the simplicity. Your download function is almost exactly the same as my modification to recorderJS, so you could just grab a copy of that and swap out the download function for your code.

comment 10y ago · link · parent

I experimented with the MediaRecorder too but couldn't get anything to work. In the end, I used this: https://github.com/mattdiamond/Recorderjs - It has been abandoned by the author and the forceDownload function does not work anymore so I had to replace that. I'll send you a copy of my version if you like?

comment 10y ago · link · parent

It did take me a while to make a decision about the separate screens. I wanted a more fully featured piano roll screen and couldn't fit it in properly underneath the synth like the old version. I thought about putting the piano roll in a window so that you could still see the controls at the same time. This could be an option in a future update.

comment 10y ago · link · parent

It should show a full screen message on FF to say that it will not work as well as Chrome. It has a continue button to hide the message. Did you see that or did it just show the loading bar straight away?

comment 10y ago · link · parent

I will look into it now that it has been mentioned a few times.

comment 10y ago · link · parent

This is the approach to scheduling I used if anyone is interested: https://www.html5rocks.com/en/tutorials/audio/scheduling/

I also tried to minimize any visual events that cause a repaint on the main instrument screen.

comment 10y ago · link · parent

Thanks for that, I really need to write a little getting started guide or a tutorial video.

comment 10y ago · link · parent

You can use your keyboard number keys to play the drum machine.

I could probably add in keyboard control for the synth knobs, I might add that in a future update. If you have a midi controller, you can control almost everything with the midi learn functionality.

comment 10y ago · link · parent

The tempo does not fluctuate on my setup. That is something I really tried to eliminate. Can I ask what browser, OS and computer spec do you use?

comment 10y ago · link · parent

I did do a lot of back and forth testing with Rebirth, and the VST plugin: ABL3 whilst developing this and specifically whilst setting the max values for the cutoff, resonance and env.mod. - The tricky thing is that they all have an affect on each other, the max resonance is lower when the cutoff is lower for example.

Regarding the rotary controls: These work by measuring the distance in pixels from the point you first clicked to the point the mouse have moved to. I only managed to test this on a 3 different computers so I think if you have a really high resolution, the knobs will move too fast. I'll change this at some point to be percentage based instead of pixel based.

I added the right-click to delete as that is how FL-Studio works, which is my favorite daw. Its handy to keep the left click as you can use it to select a note in the drum editor and then set velocity.

Thanks for checking it out!

88.

Show HN: TB-303 Synth, Drum Machine and Sequencer in Web Audio(errozero.co.uk ↗)

238 points · by errozero · 10y ago · 93 comments

89.

Acid Machine 2 – JavaScript TB303 and Drum Machine Emulator(errozero.co.uk ↗)

2 points · by errozero · 10y ago · discuss

12345