Page 1 of 1
Posted: 20 Apr 2007, 12:46
by grego mondo
Hello, I'd like to use a piezo captor to tap my tempo, so I plug my piezo into one of my inputs, then have a track playing with the good audio input and a "peak follower" or a "beat follower", and use "beat" or "peak" to get into "create" of a "Create Midi" and plug my out to a "SendMidiBus", then right click on tap, midi learn and punch my piezo but it seems not to learn with midi bus ...
Is there something I can do ??
Posted: 20 Apr 2007, 15:08
by bsork
If I understand you correctly, you are trying to use an audio input to trigger the tap button. If that's the case, you should connect the beat or create output to the tap input of the syncro module. A lot simpler too...
BTW, midi learn is AFAIK only for incomming messages. You could of course send the midi out and back again by real or virtual cables, but I can't really think of any situation where that would be practical, except perhaps for some testing purposes.
Posted: 20 Apr 2007, 18:17
by grego mondo
thanks, work simply and very well.
just use a synchro module !
I still explore the soft and sometimes go much more complicated (I found just a few time ago that I could right click and midi learn instead of building since a midi input with math to scale 0/127 to whatever I wanted -48/+12 for exemple)
Posted: 20 Apr 2007, 19:55
by Vincent
Hi Apocalipse Man!
I've done a small and light script to rescale 0/127 to -48/+12!
I use it sometimes when there is nothing much simpler.
If you like, I insert it in my next post.
About doing thinks too complicated... Using Usine has something to do with psychoanalysis - for me indeed!
Posted: 21 Apr 2007, 17:31
by grego mondo
yes and the good thing about this forum is you have to syntesis your idea (and translate it too, that right) and as in real life, often when you can use the right words to discribe your problem, you solved it half !!
Posted: 21 Apr 2007, 17:34
by grego mondo
I used to do it with math like :
/127
*60
-48
wich worked well, the only thing is if you want to automate 64 midi knobs it take a few time !!
I'm ok to see your script, I don't use any at this time
I used to work with building blocks where you had to mathemise every things you wanted.
Posted: 21 Apr 2007, 18:37
by Vincent
Hi Grego Mondo,
The reason of scripting can be CPU usage. Too much Maths in a patch, it's sometimes greedy.
In fact, it's a 0/127 to -70/12 script translator. I hope you'll manage to put it in order to work with any value you like.
There it is:
Code: Select all
// Paramters declaration
var Input : Tparameter;
var Output: Tparameter;
// initialisation procedure
procedure init;
begin
Input := CreateParam('In',ptDatafader);
SetIsOutput(input,false);
SetMin(input,0);
SetMax(input,127);
SetSymbol(input,'');
SetDefaultValue(input,64);
Output := CreateParam('Out',ptDatafader);
SetIsInput(output,false);
SetMin(output,-70);
SetMax(output,12);
SetSymbol(output,'db');
SetDefaultValue(output,0);
end;
// Main proc
begin
setvalue(Output,(getValue(Input) / 1.548780487804878048780487804878) - 70);
end.
I should have done two constants for the 1.548780.... value and the -70 value, in the line before last one to make them easier to change... It's a quick script... No comments in it, so boring!...
Posted: 21 Apr 2007, 21:16
by grego mondo
thanks vincent
I'll try it and let you know
Posted: 23 Apr 2007, 01:01
by grego mondo
thanks, worked easily !!
I retiped it just to make mistake, find and understand them !!
I think I'm gonna like a lot scripting !!
Posted: 26 Apr 2007, 15:23
by Vincent
grego mondo wrote:I think I'm gonna like a lot scripting !!
He-he-he... Don't forget your music, man!