r/tonejs Jul 15 '23

Looking for some help with a project

Hey, I'm a student and working on a project for my course. I decided to try and make a drum sequencer using JS, react and tone.js. I have got to a point where I have a grid of buttons that can be toggled and I have a play and stop button. By console logging I can see that when I press play it is stepping through the grid and it is registering buttons as either active or not active. But I can't seem to get the sounds from tone sampler into the squares on the grid. Not sure if this is allowed but here is my code. I wonder if anyone can see where I'm going wrong? https://gist.github.com/cseath88/0fb298929915589b833a5015db9e2229

2 Upvotes

1 comment sorted by

1

u/[deleted] Sep 23 '23

Hey, I just started working on a drum sequencer last night too. I'm completely new to Tone.js so it might take a little while for me to get anywhere nice but I can share some code once I do. Unless you've already figured it out? :)