Welcome to %s forums

BrainModular Users Forum

Login Register

remote with midi bus

General Discussion about whatever fits..
Post Reply
grego mondo
Member
Posts: 466
Location: 22110 Rostrenen
Contact:

Unread post by grego mondo » 20 Apr 2007, 12:46

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 ??
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 20 Apr 2007, 15:08

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.
Bjørn S

grego mondo
Member
Posts: 466
Location: 22110 Rostrenen
Contact:

Unread post by grego mondo » 20 Apr 2007, 18:17

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)
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

Vincent

Unread post by Vincent » 20 Apr 2007, 19:55

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!

grego mondo
Member
Posts: 466
Location: 22110 Rostrenen
Contact:

Unread post by grego mondo » 21 Apr 2007, 17:31

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 !!
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

grego mondo
Member
Posts: 466
Location: 22110 Rostrenen
Contact:

Unread post by grego mondo » 21 Apr 2007, 17:34

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.
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

Vincent

Unread post by Vincent » 21 Apr 2007, 18:37

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!...

grego mondo
Member
Posts: 466
Location: 22110 Rostrenen
Contact:

Unread post by grego mondo » 21 Apr 2007, 21:16

thanks vincent

I'll try it and let you know
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

grego mondo
Member
Posts: 466
Location: 22110 Rostrenen
Contact:

Unread post by grego mondo » 23 Apr 2007, 01:01

thanks, worked easily !!
I retiped it just to make mistake, find and understand them !!
I think I'm gonna like a lot scripting !!
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

Vincent

Unread post by Vincent » 26 Apr 2007, 15:23

grego mondo wrote:I think I'm gonna like a lot scripting !!
He-he-he... Don't forget your music, man!

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests