logoalt Hacker News

Show HN: Draw.Audio – A musical sketchpad using the Web Audio API

229 pointsby StreamGobbler11/07/202477 commentsview on HN

Comments

StreamGobbler11/07/2024

Hello HN community!

Out of my love for synthesizers and web development, I created a free audio sequencer called draw.audio, which includes selectable scales, waveforms, effects, LFOs, and more.

While there are other “tone matrix” style webapps out there, I couldn’t find one that quite scratched the itch for a large grid layout, modern design, and easily accessible modulation controls. So that was the inspiration, alongside my addiction to synths and hardware jam-boxes like the Synthstrom Deluge.

Draw.audio uses the Web Audio API without any other frameworks or libraries. I tried to keep it as lightweight as possible. The to-do list includes a tutorial, pattern preset browsing, more audio effects, light visual animations, and open-sourcing it.

In case you'd like tips: • It’s more fun on touch screens, like an iPad. • It's kid friendly! In my limited testing, kids enjoy drawing on it. • The share button generates a direct link to anything you create.

A big thank you to Sheer Havoc for creating the logo and other graphics!

And thank you all for checking it out! I’d love to hear any feedback you have. <3

-Randy (long-time lurker, first time poster, and HN fan from SF)

show 6 replies
mbil11/08/2024

Nice. This made me think of Conway's Game of Life so I made a little mashup of a tone matrix with GoL. https://matthewbilyeu.com/tone-of-life.html

show 1 reply
boomskats11/08/2024

This is probably the use case you least expected to hear, but the first thing i thought of when playing with this is how useful it could be in helping make progress when learning jazz improvisation.

Typically when you're learning improv, you're figuring out what scales work with which chords in which parts of the harmony. Normally you'd start with something like 'xxx liked to use the half-whole diminished scale when leading into the I chord from the dominant', so you'd read that/listen to that bit of a solo, try to remember or look up the scale, practice it a bunch of times until you think you know the notes/fingerings, then try to use those notes in that part of your improvisation for that bar or two (while trying to not just play up and down the scale you just practiced playing up and down), until you eventually internalise the 'feel' of each of those notes in that scale in the context of that part of the harmony.

Of course nothing replaces practice, but that process can be quite offputting as you end up second-guessing a lot of your mistakes before your brain actually goes 'ahh that's what that's supposed to sound/feel like'. Conversely, the UX on this is so effortless that I just thought screw it, I'll try it for a couple of mins. I just drew some patterns, picked a transpose/tempo and hit play while I played the harmony part to something I was working through (spacebar mapping to play/stop/restart ftw, nice), and I ended up wrapping my head around it way quicker than I normally would, with a lot more energy left over. It made remembering/playing that scale by ear afterwards way easier too, was nice and quick to redraw the pattern to only include certain notes to focus on, etc.. Yeah, I probably didn't internalise as much of the muscle memory, but that's not always a terrible thing (stops you just playing up and down the scale), and the app also makes it super easy to save that context as a link in my obsidian notes so i can just come back to it whenever i want to pick up where I left off.

Honestly I was genuinely surprised by how well what you've made mapped to the use case. It kinda makes sense given how trad/bebop jazz improv is mostly just runs of notes of the same duration. Yeah ok it's probably not the only app for this, yeah it's probably not the best one, but it's the one that got me to do the thing I'd been putting off doing for ages, so I thought I'd share. Thank you for making it, really nicely done!

show 1 reply
fassssst11/08/2024

Love it! Related fun toy: http://roland50.studio/

show 5 replies
tertle95011/08/2024

My favorite use of this toy is making something for one scale, and changing the scale. I end up getting these unique ... I'll call them "harmonic textures" each time, even though they're using the same "note pixel" layout. Very intuitive way to experiment with music, and I guess you can make art with it too.

Flower Garden: https://draw.audio/s/hngnldoov

I'm not a fantastic artist, admittedly. And it doesn't help when you're trying to balance that with music! But this is supposed to be a grassy flower garden.

tpoindex11/08/2024

Very fun! In celebration of where are the cool toys are found: https://draw.audio/s/2beyqcyw9

show 1 reply
tiborsaas11/08/2024

Fun little tool, I wish it could export a midi file with the pattern.

Here's some techno :) https://draw.audio/s/lifgm2yl3

show 1 reply
devenson11/08/2024

Cool! -- using the Spectroid Android app, you can see the same image of your music in the waterfall of the spectrogram!

https://schematix.com/~devenson/spectroid.png

show 1 reply
delgaudm11/08/2024

Is the "bounce back and forth mode" supposed to be inconsistent when bouncing off each edge? Bouncing one way appears to add an extra note, when the pattern is resetting.

Example: https://draw.audio/s/z2gcctra8

show 2 replies
saint_yossarian11/08/2024

Nice work! You should tune the control sensitivities though, like with the filter cutoffs the usable range is concentrated in a few pixels on the left.

I guess synths usually use some kind of logarithmic scales?

show 1 reply
lintbrush11/08/2024

This is great work and a really nice take on the concept. As someone else said, midi output would be really cool as this is a great just doodley scratchpad but once you have something great it'd be awesome to build on it.

show 1 reply
creativenolo11/08/2024

I hope it was as fun to build as it is to play with. Nit: I keep fat fingering the controls. Every 2 out of 3 times I touch a control, it collapsed the controls section instead.

Also - I thought the lines beneath the color controls were titles (> etc) and not buttons. I couldn’t figure out how someone shared a link where it played notes from left to right

show 1 reply
woolion11/08/2024

Moonlight Kirby: https://draw.audio/s/x8xihkzei

Very fun!

A small 'bug', folding and unfolding the left panels change the aspect ratio of rectangle pads.

I think it would cool to have a tutorial. I know nothing about music but it could be fun to learn some of it while trying how some patterns sound.

show 1 reply
p2detar11/08/2024

Wow! Amazing job, I could really use this to create some tunes, I miss music making. I wish it had an "export to file" function.

show 1 reply
dmje11/08/2024

This is ACE, love it - thank you for your work.

The only thing I'd love to see is MIDI or audio export....

show 1 reply
wayoverthecloud11/08/2024

Awesome work! I don't have knowledge on music but I like if something makes good sound without knowing the theory behind it, I like it.

It works seamlessly on an old beaten Android phone too. I tried recreating Minecraft music(like Taswell) but couldn't do it well. Wondering if it's at all possible on this.

show 2 replies
matthewhefferon11/07/2024

This is really cool. I just showed my son (10 years old) and he loves it. He is going to try it out on his phone. Thanks for sharing!

show 2 replies
IggleSniggle11/08/2024

From this I learned that, contrary to what I believed, on iOS Safari, websites do boy in fact pause when you change tabs. I was really surprised!

Anyway, I used to do a lot of work in this kind of space, and you've encapsulated all the good parts down into a fantastic distilled pure essence. Wonderfully done!

show 1 reply
deathmonger500011/08/2024

Really nice work! Thanks for sharing this. Odd time signatures would be a nice addition. Thanks again!

show 1 reply
Martinify11/08/2024

Really really thanks for your creation, I love it!

ustad11/08/2024

How do you trigger the audio output for ios (iphone)?

show 1 reply
yashness11/08/2024

Nice one! Can it support selecting area & moving it around?

show 1 reply
jdthedisciple11/08/2024

Feels very befitting for creating mobile ringtones

Reviving151411/08/2024

I love this, really well executed.

tholm11/07/2024

Very fun to play with, Nice UI as well. Well done!

ukuina11/08/2024

Zero to Mass Effect in three seconds!

popalchemist11/07/2024

Nice work. What's the underlying stack?

show 1 reply
interludead11/08/2024

I had a very sad day. This thing helped me relax. Thanks for sharing!

msla11/08/2024

A surprisingly simple pattern can give a pleasing melody:

https://draw.audio/s/9fr7reqry

show 1 reply
nick__m11/07/2024

It is excellent, I love it!

usmanmehmood5511/08/2024

LOVE IT

j4511/08/2024

This is fantastic for kids to create on a screen with instead of consuming mindlessly.

grahamj11/08/2024

Well done! I didn't realize some of this was possible with web tech so thanks for opening my eyes

Cypher11/08/2024

cutee

ryoshu11/08/2024

Love. Love. Love this. Thank you.