tempo sync knob value please
This post is deleted!
@d-healey yes it is not very nice but, I have an even more awful code to show you, which works. 32 pad which each make a different chord .. ^^
quick question, What is the difference between a 1 line code and a 600 line code? in the end it works but a simpler and necessarily faster code?
d.healey last edited by d.healey
but a simpler and necessarily faster code?
Not always, but it's much faster to write one line than 600, it's also (usually) easier to understand and maintain in the future. Writing 600 lines instead of one shows that you don't fully understand what you're doing, it's better to be in control of your project so it doesn't run away with you
I'm going to implement the function Christoph suggested so that we can at least have one piece of your code looking decent
But this is simple stuff so you should take the time to learn it now.
With this problem you should be able to solve it with two lines. Think of it this way, you have a bunch of values from 0 to 18 - those could be array indexes.
reg tempos = ["1/1", "1/2D", "1/2", "1/2T", "etc"... Label1.set("text", tempos[value]);
@d-healey It's been really 1 year that I learn, I start to have a small level but not working there every day it is difficult to remember everything.
on your line of code I can understand at first glance but having the idea to do this was not possible without example.
Thank you for your help
@yall With the function that Christoph suggested, that I've just added you'll be able to do this with one line But you'll have to wait for it to be merged.
i just made your code everything works fine but i also keep the Label1.set ("text", Engine.getTempoName (value)); next to me
reg tempos = ["1/1", "1/2D", "1/2", "1/2T", "etc"...]; Label1.set("text", tempos[value]);
Matt_SF last edited by
@matt_sf I was a subscriber but my paypal was blocked in France. I'm waiting for them to reopen it for me
@yall Lots of stuff on YouTube too